alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
57 stars 15 forks source link

Validate SHM/SRE for user commands #1921

Closed JimMadge closed 4 months ago

JimMadge commented 4 months ago

:white_check_mark: Checklist

:vertical_traffic_light: Depends on

:arrow_heading_up: Summary

Add checks that Pulumi configuration for SHM/SREs exists. This is a proxy for ensuring the infrastructure exists. It should be more reliable that just checking if the names are used in the DSH configuration, and much lighter weight than checking for particular pieces of infrastructure (either using Azure API or looking through the Pulumi stack).

:closed_umbrella: Related issues

Closes #1879

:microscope: Tests

github-actions[bot] commented 4 months ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  data_safe_haven/commands
  users.py 124, 142, 226, 244
Project Total  

This report was generated by python-coverage-comment-action