From a0380ffa9e33c680cca0ce11940ebb552e3fbb66 Mon Sep 17 00:00:00 2001 From: Toby Buckley <74737385+tobuck-aws@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:54:35 -0700 Subject: [PATCH] docs: Fixes #16 - Documentation issue for testing deployment (#17) * Fixes #16 Fixes the test for onboarding new tenants from the command line. - No longer sends Tenant ID when creating a Tenant - Now just tests creation by getting all tenants (vs. tenant with ID) * removed unused TENANT_ID --- docs/public/README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/public/README.md b/docs/public/README.md index b6d9a0f..7749d83 100644 --- a/docs/public/README.md +++ b/docs/public/README.md @@ -470,7 +470,6 @@ PASSWORD="INSERT PASSWORD HERE" # Change this to a real email if you'd like to log into the tenant TENANT_EMAIL="tenant@example.com" CONTROL_PLANE_STACK_NAME="ControlPlaneStack" -TENANT_ID="$RANDOM" TENANT_NAME="tenant$RANDOM" CLIENT_ID=$(aws cloudformation list-exports --query "Exports[?Name=='ControlPlaneIdpDetails'].Value" | jq -r '.[0]' | jq -r '.idp.clientId') @@ -507,12 +506,10 @@ CONTROL_PLANE_API_ENDPOINT=$(aws cloudformation describe-stacks \ DATA=$(jq --null-input \ --arg tenantName "$TENANT_NAME" \ --arg tenantEmail "$TENANT_EMAIL" \ - --arg tenantId "$TENANT_ID" \ '{ "tenantName": $tenantName, "email": $tenantEmail, "tier": "basic", - "tenantId": $tenantId, "tenantStatus": "In progress" }') @@ -524,9 +521,9 @@ curl --request POST \ --data "$DATA" echo "" # add newline -echo "retrieving tenant..." +echo "retrieving tenants..." curl --request GET \ - --url "${CONTROL_PLANE_API_ENDPOINT}tenants/${TENANT_ID}" \ + --url "${CONTROL_PLANE_API_ENDPOINT}tenants" \ --header "Authorization: Bearer ${ID_TOKEN}" \ --silent | jq