Skip to content

Issue admin token on demand to avoid an expired token in e2e tests#2572

Merged
eladiw merged 13 commits into
mainfrom
elad/issue2546
Sep 12, 2022
Merged

Issue admin token on demand to avoid an expired token in e2e tests#2572
eladiw merged 13 commits into
mainfrom
elad/issue2546

Conversation

@eladiw

@eladiw eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

Resolves #2546

What is being addressed

  1. Fixed API app throwing 500 when getting invalid token.
  2. made e2e tests more stable, but re-issuing the access token when needed.

@eladiw eladiw changed the title draft - admin token is retrieved via direct method call in some of th… Issue admin token on demand to avoid an expired token in e2e tests Sep 8, 2022
@eladiw

eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

⚠️ Cannot run tests as PR is not mergeable. Ensure that the PR is open and doesn't have any conflicts.

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3015867371 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

Unit Test Results

503 tests  +501   501 ✔️ +499   11s ⏱️ - 1h 13m 55s
    1 suites ±    0       2 💤 +    2 
    1 files   ±    0       0 ±    0 

Results for commit 93393c2. ± Comparison against base commit 60057c3.

This pull request removes 2 and adds 503 tests. Note that renamed tests count towards both.
test_airlock ‑ test_airlock_import_flow
test_workspace_services ‑ test_create_guacamole_service_into_base_workspace
tests_ma.test_api.test_errors.test_422_error ‑ test_frw_validation_error_format
tests_ma.test_api.test_errors.test_error ‑ test_frw_validation_error_format
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireAirlockManagerRights ‑ test_post_create_airlock_review_approves_airlock_request_returns_200
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireAirlockManagerRights ‑ test_post_create_airlock_review_input_is_malformed_returns_400
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireAirlockManagerRights ‑ test_post_create_airlock_review_with_event_grid_not_responding_returns_503
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireAirlockManagerRights ‑ test_post_create_airlock_review_with_illegal_status_change_returns_400
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights ‑ test_get_airlock_container_link_cancelled_request_returns_400
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights ‑ test_get_airlock_container_link_in_progress_request_returns_400
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights ‑ test_get_airlock_container_link_no_airlock_request_found_returns_404
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights ‑ test_get_airlock_container_link_no_workspace_request_found_returns_404
…

♻️ This comment has been updated with latest results.

@eladiw

eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3016415474 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/help

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

Hello!

You can use the following commands:
    /test - build, deploy and run smoke tests on a PR
    /test-extended - build, deploy and run smoke & extended tests on a PR
    /test-extended-aad - build, deploy and run smoke & extended AAD tests on a PR
    /test-shared-services - test the deployment of shared services on a PR build
    /test-force-approve - force approval of the PR tests (i.e. skip the deployment checks)
    /test-destroy-env - delete the validation environment for a PR (e.g. to enable testing a deployment from a clean start after previous tests)
    /help - show this help

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/test-destroy-env

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

Destroying PR test environment (RG: rg-tre6c7829a2)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3016677144)

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

Destroying branch test environment (RG: rg-tre627f899e)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3016677144)

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

Branch test environment destroy complete (RG: rg-tre627f899e)

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

PR test environment destroy complete (RG: rg-tre6c7829a2)

@eladiw

eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3016823757 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/test-destroy-env

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

Destroying PR test environment (RG: rg-tre6c7829a2)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3017338115)

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

Destroying branch test environment (RG: rg-tre627f899e)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3017338115)

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

Branch test environment destroy complete (RG: rg-tre627f899e)

@eladiw

eladiw commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3017439046 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@github-actions

github-actions Bot commented Sep 8, 2022

Copy link
Copy Markdown

PR test environment destroy complete (RG: rg-tre6c7829a2)

@eladiw

eladiw commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3030711680 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@github-actions

Copy link
Copy Markdown

Destroying branch test environment (RG: rg-tre627f899e)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3032037492)

@github-actions

Copy link
Copy Markdown

Branch test environment destroy complete (RG: rg-tre627f899e)

@github-actions

Copy link
Copy Markdown

PR test environment destroy complete (RG: rg-tre6c7829a2)

@eladiw

eladiw commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3032092031 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

/test-destroy-env

@github-actions

Copy link
Copy Markdown

Destroying branch test environment (RG: rg-tre627f899e)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3032204857)

@github-actions

Copy link
Copy Markdown

Destroying PR test environment (RG: rg-tre6c7829a2)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3032204857)

@github-actions

Copy link
Copy Markdown

Branch test environment destroy complete (RG: rg-tre627f899e)

@github-actions

Copy link
Copy Markdown

PR test environment destroy complete (RG: rg-tre6c7829a2)

@eladiw

eladiw commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3032272619 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3032498244 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3032507600 (with refid 6c7829a2)

(in response to this comment from @eladiw)

1 similar comment
@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3032507600 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3033016018 (with refid 6c7829a2)

(in response to this comment from @eladiw)

1 similar comment
@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3033016018 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@eladiw

eladiw commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

/test-extended

@eladiw eladiw enabled auto-merge (squash) September 11, 2022 22:03
@eladiw

eladiw commented Sep 12, 2022

Copy link
Copy Markdown
Contributor Author

/test

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3034606049 (with refid 6c7829a2)

(in response to this comment from @eladiw)

@eladiw eladiw merged commit 913f11a into main Sep 12, 2022
@eladiw eladiw deleted the elad/issue2546 branch September 12, 2022 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API returns 500 on an expired access token

2 participants