Skip to content

Commit

Permalink
SK-1749: Fix update test constants step
Browse files Browse the repository at this point in the history
  • Loading branch information
saileshwar-skyflow committed Nov 26, 2024
1 parent 6824379 commit 9656eac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/shared-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ jobs:

- name: Process and Update Test Constants
run: |
echo "${{ secrets.VALID_SKYFLOW_CREDS_TEST }}" > ./tests/service_account/valid_credentials.json
STRING_FORMAT=$(echo "${{ secrets.VALID_SKYFLOW_CREDS_TEST }}" | jq -c .)
DICT_FORMAT=$(echo "${{ secrets.VALID_SKYFLOW_CREDS_TEST }}" | jq .)
CREDS="${{ secrets.VALID_SKYFLOW_CREDS_TEST }}"
CREDS=$(echo "$CREDS" | sed 's/\\n/\n/g')
echo "$CREDS" > ./tests/service_account/valid_credentials.json
STRING_FORMAT=$(echo "$CREDS" | jq -c .)
DICT_FORMAT=$(echo "$CREDS" | jq .)
sed -i "s|VALID_CREDENTIALS_STRING = .*|VALID_CREDENTIALS_STRING = '$STRING_FORMAT'|" ./tests/constants/test_constants.py
sed -i "s|VALID_SERVICE_ACCOUNT_CREDS = .*|VALID_SERVICE_ACCOUNT_CREDS = $DICT_FORMAT|" ./tests/constants/test_constants.py
shell: bash
Expand Down

0 comments on commit 9656eac

Please sign in to comment.