Closed jemrobinson closed 2 months ago
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
data_safe_haven/external/api
credentials.py
211-214
Project Total
This report was generated by python-coverage-comment-action
What's the error this catches? is it the one where it says the device code has expired?
@craddm : I've added a traceback example in the top-level comment
Yep, been meaning to report this one. LGTM
:white_check_mark: Checklist
Enable foobar integration
rather than515 foobar
).develop
.:vertical_traffic_light: Depends on
n/a
:arrow_heading_up: Summary
Catch a Graph API timeout exception when deploying
Full traceback without this fix
```bash $ hatch run dsh sre deploy fuschia You are logged into the Azure CLI as: user: James Robinson (aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee) tenant: turing.ac.uk (11111111-2222-3333-4444-555555555555) Are these details correct? [y/n] (y): y Go to https://microsoft.com/devicelogin in a web browser and enter the code GM98MDND2 at the prompt. Use global administrator credentials for your Entra ID directory to sign-in. ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ /path/to/code/data_safe_haven/commands/sre.py: │ │ 69 in deploy │ │ │ │ 66 │ │ │ config=sre_config, │ │ 67 │ │ │ pulumi_config=pulumi_config, │ │ 68 │ │ │ create_project=True, │ │ ❱ 69 │ │ │ graph_api_token=graph_api.token, │ │ 70 │ │ ) │ │ 71 │ │ # Set Azure options │ │ 72 │ │ stack.add_option( │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ context = Context( │ │ │ │ │ admin_group_name='ADMIN GROUP NAME', │ │ │ │ │ subscription_name='SUBSCRIPTION NAME', │ │ │ │ │ description='DESCRIPTION', │ │ │ │ │ name='projects' │ │ │ │ ) │ │ │ │ force = False │ │ │ │ graph_api =