This repository has been archived by the owner on Mar 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from rn/test-reorg
Reorganise the test to follow 'docker <command>'
- Loading branch information
Showing
74 changed files
with
63 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SUMMARY: Check that docker image inspect works | ||
# LABELS: | ||
# REPEAT: | ||
|
||
Set-PSDebug -Trace 2 | ||
|
||
$imageName = "hello-world" | ||
|
||
docker image pull --platform linux $imageName | ||
if ($lastexitcode -ne 0) { | ||
exit 1 | ||
} | ||
|
||
$output = [string] (& docker inspect $imageName 2>&1) | ||
if ($lastexitcode -ne 0) { | ||
$output | ||
exit 1 | ||
} | ||
Write-Output "Output of docker inspect of the image:" | ||
$output | ConvertFrom-Json | ConvertTo-Json | ||
|
||
exit 0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# SUMMARY: Check that docker container inspect works | ||
# LABELS: | ||
# REPEAT: | ||
|
||
Set-PSDebug -Trace 2 | ||
|
||
$imageName = "hello-world" | ||
$containerName = "inspect_test" | ||
|
||
docker container run --platform linux --name $containerName $imageName | ||
if ($lastexitcode -ne 0) { | ||
exit 1 | ||
} | ||
|
||
$output = [string] (& docker container inspect $containerName 2>&1) | ||
if ($lastexitcode -ne 0) { | ||
$output | ||
docker rm --force $containerName | ||
exit 1 | ||
} | ||
Write-Output "Output of docker inspect of the container:" | ||
$output | ConvertFrom-Json | ConvertTo-Json | ||
|
||
docker container rm --force $containerName | ||
if ($lastexitcode -ne 0) { | ||
exit 1 | ||
} | ||
exit 0 |
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,8 @@ if ($lastexitcode -ne 0) { | |
} | ||
exit 1 | ||
} | ||
|
||
if (Test-Path $fileName) { | ||
Remove-Item -Path $fileName -Force | ||
} | ||
exit 0 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.