From c501d7a9dfe15c6eac5fe366668f3c6dba5e788f Mon Sep 17 00:00:00 2001 From: Alper Date: Tue, 22 Oct 2024 01:06:10 +0200 Subject: [PATCH] gh action test --- code/test/subscription-test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/test/subscription-test.sh b/code/test/subscription-test.sh index ccb8f71..ca5692a 100644 --- a/code/test/subscription-test.sh +++ b/code/test/subscription-test.sh @@ -196,13 +196,13 @@ validate_osb_registration() { local MAX_ATTEMPTS=3 local ATTEMPT=0 local INTERVAL=5 # Time in seconds between attempts - local TIMEOUT=15 # Total timeout in seconds + local TIMEOUT=30 # Total timeout in seconds local START_TIME=$(date +%s) - echo "Validating OSB registration for $CF_APP_NAME..." + echo "Validating OSB registration for $BROKER_NAME..." while (( ATTEMPT < MAX_ATTEMPTS )); do - RESPONSE=$(btp --format json list services/offering --subaccount "$SUBACCOUNT_GUID" --fields-filter "name eq '$BROKER_NAME'") + RESPONSE=$(btp --format json list services/offering --subaccount "$SUBACCOUNT_GUID" --fields-filter "name eq 'susaas-api-$CF_SPACE-$CF_ORG'") # Check if the response contains a valid offering SERVICE_OFFERING_ID=$(echo "$RESPONSE" | jq -r '.[0].id')