[Windows] Add more docker tests and move K8s tools into single provisioner (#2583)

* Add more docker tests

* Rework tools installation and test

* remove docker tests from tools

* get back kind installation

* transform kind download link to string

* add Add-MachinePathItem after kind installation
This commit is contained in:
Mikhail Timofeev
2021-01-29 11:38:57 +03:00
committed by GitHub
parent 0fa90a6df5
commit 2ee29eddc1
9 changed files with 64 additions and 81 deletions

View File

@@ -0,0 +1,22 @@
Describe "Docker" {
It "<ToolName>" -TestCases @(
@{ ToolName = "docker" }
@{ ToolName = "docker-compose" }
) {
"$ToolName --version" | Should -ReturnZeroExitCode
}
It "docker service is up" {
"docker images" | Should -ReturnZeroExitCode
}
}
Describe "DockerImages" {
Context "docker images" {
$testCases = (Get-ToolsetContent).docker.images | ForEach-Object { @{ ImageName = $_ } }
It "<ImageName>" -TestCases $testCases {
docker images "$ImageName" --format "{{.Repository}}" | Should -Not -BeNullOrEmpty
}
}
}