Closed jemrobinson closed 4 months ago
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
data_safe_haven/external/interface
azure_ipv4_range.py
data_safe_haven/infrastructure/common
transformations.py
16, 31, 39, 47, 80, 88, 96, 104, 112
data_safe_haven/infrastructure/programs/sre
application_gateway.py
tests/infrastructure/programs
resource_assertions.py
9-11
tests/infrastructure/programs/sre
conftest.py
test_application_gateway.py
Project Total
This report was generated by python-coverage-comment-action
@JimMadge I think the kind of abstract test you're thinking of could be better covered by property tests on deployed infrastructure.
:white_check_mark: Checklist
Enable foobar integration
rather than515 foobar
).develop
.:vertical_traffic_light: Depends on
n/a
:arrow_heading_up: Summary
Adds some proof-of-concept Pulumi unit tests for the SRE ApplicationGateway component.
Note that much of what is described in the Pulumi documentation about Mocking does not seem to work with inline programs.
Important notes:
Outputs
should be tested within anapply
loop withrun_with_unknowns
enabled, otherwise they will silently succeed on encountering any unknown valuesresource_assertions.py
) as rawassert
cannot be used inside anapply
looppulumi.runtime.test
or they will silently succeedSREApplicationGateway
now hasself.application_gateway = ...
in its constructor so that we can test the ApplicationGateway resource.:closed_umbrella: Related issues
Closes #1835
:microscope: Tests