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

Create and delete Airlock Review VMs #2740

Merged
merged 25 commits into from
Oct 17, 2022

Conversation

tanya-borisova
Copy link
Contributor

@tanya-borisova tanya-borisova commented Oct 16, 2022

Resolves #2737

What is being addressed

Add endpoints for creating an Airlock Review user resources.
Add cleaning up of these user resources in /review method.
For details on the design, please see the parent issue #2735

The methods can be used so long as the workspace configuration is set up appropriately.

Additionally, made changes to tre-service-guacamole-import-reviewvm and tre-service-guacamole-export-reviewvm to make the correct configuration the default one.

@github-actions
Copy link

github-actions bot commented Oct 16, 2022

Unit Test Results

518 tests  +516   518 ✔️ +517   13s ⏱️ - 1h 5m 39s
    1 suites ±    0       0 💤 ±    0 
    1 files   ±    0       0  -     1 

Results for commit 94fe0c6. ± Comparison against base commit d08fec3.

This pull request removes 2 and adds 518 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_cleans_up_review_user_resources
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.TestAirlockRoutesThatRequireAirlockManagerRights ‑ test_post_create_review_user_resource_returns_200
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireAirlockManagerRights ‑ test_post_create_review_user_resource_returns_400_if_request_is_not_in_review
tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireAirlockManagerRights ‑ test_post_create_review_user_resource_returns_422_if_cannot_find_workspace_service
…

♻️ This comment has been updated with latest results.

@tanya-borisova
Copy link
Contributor Author

/test-extended

@tanya-borisova tanya-borisova marked this pull request as ready for review October 16, 2022 22:59
@github-actions
Copy link

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3261246018 (with refid bfc08187)

(in response to this comment from @tanya-borisova)

@tanya-borisova
Copy link
Contributor Author

@marrobi @damoodamoo This is how creation of the workspace screen looks like now, possibly something here is broken as the description text repeats twice. However it doesn't currently ask for any inputs (maybe that also is a bug?)

image

@tanya-borisova
Copy link
Contributor Author

/test-destroy-env

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@tanya-borisova
Copy link
Contributor Author

/test-extended

@github-actions
Copy link

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3264145051 (with refid bfc08187)

(in response to this comment from @tanya-borisova)

Copy link
Collaborator

@jjgriff93 jjgriff93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really great work! Just some minor suggestions etc., up to you which you want to look at/ignore

api_app/api/routes/airlock.py Outdated Show resolved Hide resolved
api_app/api/routes/airlock.py Outdated Show resolved Hide resolved
api_app/api/routes/airlock.py Outdated Show resolved Hide resolved
api_app/api/routes/airlock.py Outdated Show resolved Hide resolved
api_app/api/routes/airlock.py Show resolved Hide resolved
api_app/api/routes/airlock.py Outdated Show resolved Hide resolved
api_app/api/routes/airlock.py Show resolved Hide resolved
@tanya-borisova
Copy link
Contributor Author

/test-extended

@github-actions
Copy link

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3266580473 (with refid bfc08187)

(in response to this comment from @tanya-borisova)

@tanya-borisova tanya-borisova enabled auto-merge (squash) October 17, 2022 15:47
@tanya-borisova
Copy link
Contributor Author

/test-force-approve

Successful test run in a comment above

@github-actions
Copy link

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 94fe0c6)

(in response to this comment from @tanya-borisova)

@tanya-borisova tanya-borisova merged commit 0d64b67 into main Oct 17, 2022
@tanya-borisova tanya-borisova deleted the tborisova/2735-create-delete-review-vms branch October 17, 2022 18:49
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 endpoint is added for creating Review user resources
2 participants