ActiveDirectoryDsc icon indicating copy to clipboard operation
ActiveDirectoryDsc copied to clipboard

ActiveDirectoryDsc: Document how to run manual integration tests

Open johlju opened this issue 5 years ago • 4 comments

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.

johlju avatar May 11 '19 17:05 johlju

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.

SSvilen avatar May 13 '19 19:05 SSvilen

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.

johlju avatar May 13 '19 19:05 johlju

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.

SSvilen avatar May 13 '19 21:05 SSvilen

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.

johlju avatar May 14 '19 05:05 johlju