ActiveDirectoryDsc
ActiveDirectoryDsc copied to clipboard
ActiveDirectoryDsc: Document how to run manual integration tests
As part of the PR #170 integration tests are introduced. THose integration tests cannot be run in AppVeyor as the unit test are, because of the limitation on the AppVeyor build worker.
We should provide a simple guide to how to run the integration tests so they build a lab (when prerequisites are meet).
I suggest we start with Hyper-V and assume there are clean VM's that can be used. Mostly because I have that environment available, and it's part of Windows 10. 🙂
We could add other environments to manual integration tests, like Test-Kitchen, LabBuilder, Lability, etc., and clouds like Azure, AWS, GCP.
I was thinking about the same in the last week. I wanted to do something based on Docker and DSC/ Hyper-V with DSC. I lean more toward Docker - but that's just me.
Can we run a domain controller in docker? I thought we couldn’t do that yet. If we can then I agree docker is the way to go.
That is something i want to try. For testing should be ok- with persistent storage i guess it would work. I’ll report how is my testing going.
If it works, then we could actually run tests in AppVeyor since we can run docker containers there, and the test framework also supports running tests in a container. https://github.com/PowerShell/DscResource.Tests#run-tests-in-a-docker-windows-container
I hope it works.