O'Reilly logo

DevOps with Windows Server 2016 by Ritesh Modi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required