| training | new training - Trevor Sullivan
New Training: Infrastructure Testing with PowerShell and Pester Testing Framework
In this 9-video, DevOps training, CBT Nuggets trainer Trevor Sullivan covers how you can leverage Pester to monitor infrastructure.
Watch this new PowerShell training.
Pester is an open source testing framework for PowerShell. While its primary purpose is to provide unit testing for PowerShell code, it can also be used for generic testing purposes.
Applying a test-driven model to infrastructure monitoring naturally helps you document your environment. You can also infer intent by examining the contents of a test suite. Storing your infrastructure tests as code allows you to version control your environmental monitoring tools, track changes over time, and easily revert changes that break desired functionality.
Some examples of automated infrastructure tests are as follows.
- Ping default gateway, with less than "X" milliseconds response time
- Monitor for an HTTP 200 OK status code from a production website
- Ensure firewall rules are not modified on managed routers
- Verify that cloud costs do not get out of control
There are many other scenarios in which you can apply similar techniques for infrastructure monitoring, using a test-driven approach.
After taking this CBT Nuggets skill, you'll know how to ensure the Pester module is up-to-date on your system, and how to write Pester tests. We'll specifically cover how to implement some simple assertions to validate that ping response times are less than a given threshold. You'll also learn how to use PowerShell to perform validation testing and performance testing against HTTP endpoints.
This training includes:
- 9 videos
- 1 hour of training
Watch a video from the series:
Start learning Pester for infrastructure monitoring today!