File tree Expand file tree Collapse file tree 2 files changed +19
-13
lines changed Expand file tree Collapse file tree 2 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 4141 steps :
4242 - uses : actions/checkout@v4
4343 - name : Debug OIDC Claims
44- if : ${{ env.RUN_INTEGRATION_TESTS == 'true' && runner.os == 'Linux' }}
45- uses : github/actions-oidc-debugger@v1
46- with :
44+ if : ${{ env.RUN_INTEGRATION_TESTS == 'true' }}
45+ # TODO: Switch to `steve-todorov/oidc-debugger-action@v1` once it's working
46+ run : |
47+ TOKEN_JSON="$(curl -fsSL -H "Authorization: bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:?}" "${ACTIONS_ID_TOKEN_REQUEST_URL:?}&audience=${audience:?}")"
48+ ID_TOKEN="$(echo "${TOKEN_JSON:?}" | jq -r .value)"
49+ echo "${ID_TOKEN:?}" | awk -F. '{print $2}' | base64 -d 2>/dev/null | jq -r
50+ env :
4751 audience : sts.amazonaws.com
4852 - name : Assume AWS role
4953 if : ${{ env.RUN_INTEGRATION_TESTS == 'true' }}
Original file line number Diff line number Diff line change 462462 @testset " Glacier" begin
463463 @test AWSServices. glacier isa RestJSONService
464464
465+ function wait_for_vault_deletion (vault_name)
466+ timedwait (60 ; pollint= 5 ) do
467+ result = Glacier. list_vaults (" -" )
468+ available_vault_names = [v[" VaultName" ] for v in result[" VaultList" ]]
469+ return ! (vault_name in available_vault_names)
470+ end
471+ end
472+
465473 @testset " high-level" begin
466474 timestamp = _now_formatted ()
467475 vault_names = [" aws-jl-test-01---$timestamp " , " aws-jl-test-02---$timestamp " ]
500508 end
501509 end
502510
503- result = Glacier. list_vaults (" -" )
504- res_vault_names = [v[" VaultName" ] for v in result[" VaultList" ]]
505-
506- for vault in vault_names
507- @test ! (vault in res_vault_names)
511+ for vault_name in vault_names
512+ @test wait_for_vault_deletion (vault_name) === :ok
508513 end
509514 end
510515
548553 end
549554 end
550555
551- result = AWSServices. glacier (" GET" , " /-/vaults" )
552- res_vault_names = [v[" VaultName" ] for v in result[" VaultList" ]]
553-
554- for vault in vault_names
555- @test ! (vault in res_vault_names)
556+ for vault_name in vault_names
557+ @test wait_for_vault_deletion (vault_name) === :ok
556558 end
557559 end
558560 end
You can’t perform that action at this time.
0 commit comments