PowerShell/docker/tests
Andrew 06d3114763 Automation for PS package validation using Docker containers (#5401)
This automation is used for basic validation of PS packages during a release;
Covered configs:

ubuntu14.04
ubuntu16.04
ubuntu17.04
debian.8
debian.9
centos7
fedora25
fedora26
kalilinux
opensuse42.2
During the process Docker files are filled out and executed with Docker build;
During the build PS packages are downloaded onto Docker containers, installed and selected Pester tests from PowerShell Github repo are executed.
2017-11-13 10:25:09 -08:00
..
Templates Automation for PS package validation using Docker containers (#5401) 2017-11-13 10:25:09 -08:00
container.tests.ps1 Add tests to do basic verification of docker images (#4244) 2017-07-19 16:48:54 -07:00
containerTestCommon.psm1 Automation for PS package validation using Docker containers (#5401) 2017-11-13 10:25:09 -08:00
README.md Add tests to do basic verification of docker images (#4244) 2017-07-19 16:48:54 -07:00

Docker tests

Windows and Linux containers

The tests must be run separately on the Windows and Linux docker daemons. You can use the Linux docker daemon on Windows, but that will only test Linux containers not Windows Containers.

To building and basic behavior of the containers

Invoke-Pester

Note: be sure to do this using both the Windows and Linux docker daemon, as the windows.

To test the productions containers

Invoke-Pester -Tag Behavior

To test only building the containers

Invoke-Pester -Tag Build