Environment unit tests
After provisioning the resources, it is important to test them. Tests should be executed on these resources to verify that they are provisioned successfully, configured according to given values, and are in the expected desired state.
Chapter 5, Building a Sample Application, introduced the OnlinePharmacy.Configuration project within the overall sample solution. This project contains the Tests folder containing both unit and operational validation tests.
Pester was introduced in Chapter 3, DevOps Automation Primer. It is used to execute the test cases defined in this section. The UnitTests folder contains all the Pester tests. The test cases are defined in PowerShell script files, one for each resource that should be tested. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access