@@ -2,30 +2,12 @@ name: v2 Integration tests
22
33on :
44 workflow_dispatch :
5- inputs :
6- environment :
7- description : ' Environment to run the tests against'
8- type : choice
9- required : true
10- default : ' dev'
11- options :
12- - dev
13- - staging
145 workflow_call :
15- inputs :
16- environment :
17- default : ' staging'
18- required : false
19- type : string
206 secrets :
217 FIREBOLT_CLIENT_ID_STG_NEW_IDN :
228 required : true
239 FIREBOLT_CLIENT_SECRET_STG_NEW_IDN :
2410 required : true
25- FIREBOLT_CLIENT_ID_NEW_IDN :
26- required : true
27- FIREBOLT_CLIENT_SECRET_NEW_IDN :
28- required : true
2911
3012jobs :
3113 integration-tests :
@@ -44,24 +26,14 @@ jobs:
4426 python -m pip install --upgrade pip
4527 pip install ".[dev]"
4628
47- - name : Determine env variables
48- run : |
49- if [ "${{ inputs.environment }}" == 'staging' ]; then
50- echo "CLIENT_ID=${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}" >> "$GITHUB_ENV"
51- echo "CLIENT_SECRET=${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}" >> "$GITHUB_ENV"
52- else
53- echo "CLIENT_ID=${{ secrets.FIREBOLT_CLIENT_ID_NEW_IDN }}" >> "$GITHUB_ENV"
54- echo "CLIENT_SECRET=${{ secrets.FIREBOLT_CLIENT_SECRET_NEW_IDN }}" >> "$GITHUB_ENV"
55- fi
56-
5729 - name : Setup database and engine
5830 id : setup
5931 uses : firebolt-db/integration-testing-setup@v2
6032 with :
61- firebolt-client-id : ${{ env.CLIENT_ID }}
62- firebolt-client-secret : ${{ env.CLIENT_SECRET }}
63- account : " developer "
64- api-endpoint : " api.${{ inputs.environment }} .firebolt.io"
33+ firebolt-client-id : ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
34+ firebolt-client-secret : ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
35+ account : ${{ vars.FIREBOLT_ACCOUNT }}
36+ api-endpoint : " api.staging .firebolt.io"
6537
6638 - name : Restore cached failed tests
6739 id : cache-tests-restore
@@ -73,13 +45,13 @@ jobs:
7345
7446 - name : Run integration tests
7547 env :
76- CLIENT_ID : ${{ env.CLIENT_ID }}
77- CLIENT_SECRET : ${{ env.CLIENT_SECRET }}
48+ CLIENT_ID : ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
49+ CLIENT_SECRET : ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}
7850 DATABASE_NAME : ${{ steps.setup.outputs.database_name }}
7951 ENGINE_NAME : ${{ steps.setup.outputs.engine_name }}
8052 STOPPED_ENGINE_NAME : ${{ steps.setup.outputs.stopped_engine_name }}
81- FIREBOLT_BASE_URL : " api.${{ inputs.environment }} .firebolt.io"
82- ACCOUNT_NAME : " developer "
53+ FIREBOLT_BASE_URL : " api.staging .firebolt.io"
54+ ACCOUNT_NAME : ${{ vars.FIREBOLT_ACCOUNT }}
8355 run : |
8456 pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/integration
8557
0 commit comments