Skip to content

Commit

Permalink
gh action test
Browse files Browse the repository at this point in the history
  • Loading branch information
alperdedeoglu committed Oct 21, 2024
1 parent 7958815 commit c501d7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/test/subscription-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c501d7a

Please sign in to comment.