O'Reilly logo

Pro PowerShell Desired State Configuration: An In-Depth Guide to Windows PowerShell DSC by Ravikanth Chaganti

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

© Ravikanth Chaganti 2018

Ravikanth Chaganti, Pro PowerShell Desired State Configuration, https://doi.org/10.1007/978-1-4842-3483-9_7

7. Validating DSC Resources

Ravikanth Chaganti

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

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