mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-19 00:06:45 +00:00
* 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
22 lines
611 B
PowerShell
22 lines
611 B
PowerShell
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
|
|
}
|
|
}
|
|
} |