© Ravikanth Chaganti 2018
Ravikanth ChagantiPro PowerShell Desired State Configurationhttps://doi.org/10.1007/978-1-4842-3483-9_7

7. Validating DSC Resources

Ravikanth Chaganti1 
(1)
Saideep Helicon, Bengaluru, India
 

In Chapter 6, you learned how to author DSC resource modules. You also learned how to write MOF-based and class-based DSC resources. To learn these concepts, you created the HostsFile resource, used it in a configuration script, and enacted it. In this entire scenario, you assumed that it worked. It worked, of course, because the code in the examples was tested for basic functionality before putting it in the chapter.

There is a formal way to approach testing of DSC resources and modules. In this chapter, you will learn exactly that. You ...

Get Pro PowerShell Desired State Configuration: An In-Depth Guide to Windows PowerShell DSC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.