Skip to content

Commit

Permalink
Update functional_test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
scrungus authored Aug 14, 2024
1 parent cd7ff5a commit 51be4a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/functional_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ echo "Resource Provider URL: $RESOURCE_PROVIDER_ID"

# 2. Add resource classes
echo "Adding resource classes:"
VCPU_ID=$(curl -s -X POST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" -d '{"name": "VCPU"}' http://$SITE:$PORT/resource_class/ | jq -r '.id')
MEMORY_ID=$(curl -s -X POST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" -d '{"name": "MEMORY_MB"}' http://$SITE:$PORT/resource_class/ | jq -r '.id')
DISK_ID=$(curl -s -X POST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" -d '{"name": "DISK_GB"}' http://$SITE:$PORT/resource_class/ | jq -r '.id')
VCPU_ID=$(curl -s -X POST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" -d '{"name": "VCPU"}' http://$SITE/resource_class/ | jq -r '.id')
MEMORY_ID=$(curl -s -X POST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" -d '{"name": "MEMORY_MB"}' http://$SITE/resource_class/ | jq -r '.id')
DISK_ID=$(curl -s -X POST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" -d '{"name": "DISK_GB"}' http://$SITE/resource_class/ | jq -r '.id')
echo "Resource Class IDs: VCPU=$VCPU_ID, MEMORY_MB=$MEMORY_ID, DISK_GB=$DISK_ID"

# 3. Add an account
Expand All @@ -128,7 +128,7 @@ ACCOUNT_ID=$(curl -s -X POST -H "$AUTH_HEADER" -H "$CONTENT_TYPE" -d \
"name": "Test Account",
"email": "[email protected]"
}' \
http://$PORT/account/ | jq -r '.url')
http://$SITE/account/ | jq -r '.url')
echo "Account URL: $ACCOUNT_ID"

PROJECT_ID="20354d7a-e4fe-47af-8ff6-187bca92f3f9"
Expand Down

0 comments on commit 51be4a1

Please sign in to comment.