It seems like it has taken me forever to post this one. I had this one almost ready but then I asked few questions around, read a lot of posts and had to rewrite the pieces of the post, to sum it all it has been an eye opening when trying to test PowerShell code which interacts with Infrastructure. Below pic depicts my state at this point ( revelation to a whole new world). [ credits : movie "V for Vendetta"] In the last post , we laid the foundation for our Function. Go back and check the code their as we start from where we left off. In this post we dive straight into the third context for our Pester tests : Context "User Creation" It should return Object when -Passthru specified (New addition) It should take OU Path from template User. It should only copy allowed set of attributes from the User (by default). It should allow copying a subset of allowed set of attributes . Note - ...
Infra + Dev's ramblings