ticketmaster / poshspec

Infrastructure Testing DSL running in Pester
MIT License
183 stars 32 forks source link

New resources and fix for scriptblock parsing #3

Closed devblackops closed 8 years ago

devblackops commented 8 years ago

Adds the following resources:

This also makes a small change to Get-PoshspecParam that fixes a bug I was seeing when the scriptblock implementing the test included strings like the code below:

$expression = {Get-CimInstance -ClassName Win32_Group -Filter "Name = '$Target'"}
cdhunt commented 8 years ago

I debated doing a "Folder" function since "File" works for folders as well, but that makes it clear what you are testing. I think it would also be useful to be able to test if a specific users is or isn't part of a local group. Thank you for adding additional scriptblock processing logic.