Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 13 commits into from
Sep 12, 2022

Conversation

eladiw
Copy link
Contributor

@eladiw eladiw commented Sep 8, 2022

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
Copy link
Contributor Author

eladiw commented Sep 8, 2022

/test

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

🤖 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
Copy link
Contributor Author

eladiw commented Sep 8, 2022

/test-extended

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

🤖 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
Copy link

github-actions bot commented Sep 8, 2022

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
Copy link
Contributor Author

eladiw commented Sep 8, 2022

/test-extended

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

🤖 pr-bot 🤖

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

(in response to this comment from @eladiw)

@eladiw
Copy link
Contributor Author

eladiw commented Sep 8, 2022

/help

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

🤖 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
Copy link
Contributor Author

eladiw commented Sep 8, 2022

/test-destroy-env

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

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

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

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

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

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

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

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

@eladiw
Copy link
Contributor Author

eladiw commented Sep 8, 2022

/test-extended

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

🤖 pr-bot 🤖

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

(in response to this comment from @eladiw)

@eladiw
Copy link
Contributor Author

eladiw commented Sep 8, 2022

/test-destroy-env

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

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

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

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

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

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

@eladiw
Copy link
Contributor Author

eladiw commented Sep 8, 2022

/test-extended

@github-actions
Copy link

github-actions bot commented Sep 8, 2022

🤖 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
Copy link

github-actions bot commented Sep 8, 2022

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

@eladiw
Copy link
Contributor Author

eladiw commented Sep 11, 2022

/test-extended

@github-actions
Copy link

🤖 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

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@eladiw
Copy link
Contributor Author

eladiw commented Sep 11, 2022

/test-extended

@github-actions
Copy link

🤖 pr-bot 🤖

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

(in response to this comment from @eladiw)

@eladiw
Copy link
Contributor Author

eladiw commented Sep 11, 2022

/test-destroy-env

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@eladiw
Copy link
Contributor Author

eladiw commented Sep 11, 2022

/test-extended

@github-actions
Copy link

🤖 pr-bot 🤖

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

(in response to this comment from @eladiw)

@eladiw
Copy link
Contributor Author

eladiw commented Sep 11, 2022

/test

@github-actions
Copy link

🤖 pr-bot 🤖

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

(in response to this comment from @eladiw)

@eladiw
Copy link
Contributor Author

eladiw commented Sep 11, 2022

/test

@github-actions
Copy link

🤖 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

🤖 pr-bot 🤖

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

(in response to this comment from @eladiw)

@eladiw
Copy link
Contributor Author

eladiw commented Sep 11, 2022

/test-extended

@github-actions
Copy link

🤖 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

🤖 pr-bot 🤖

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

(in response to this comment from @eladiw)

@eladiw
Copy link
Contributor Author

eladiw commented Sep 11, 2022

/test-extended

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

eladiw commented Sep 12, 2022

/test

@github-actions
Copy link

🤖 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