Last active
October 6, 2021 18:09
-
-
Save zionyx/13e4311777f8db94d573bd9cb131e892 to your computer and use it in GitHub Desktop.
Container Structure Test docker test on Windows with Linux containers command: `docker run -v //var/run/docker.sock:/var/run/docker.sock -v "$(pwd):/work" gcr.io/gcp-runtimes/container-structure-test:latest test -i ubuntu:latest -c /work/command-test.yaml`
This file contains hidden or 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
schemaVersion: "2.0.0" | |
commandTests: | |
- name: "git cli" | |
command: "git" | |
args: ["--version"] | |
expectedOutput: ["git version 2.25.1"] | |
- name: "Check path" | |
command: "pwd" | |
# args: | |
# - -c | |
# - | | |
# echo hello && | |
# echo world | |
exitCode: 0 | |
expectedOutput: ["/"] | |
- name: "pwsh" | |
command: "pwsh" | |
args: ["--version"] | |
expectedOutput: ["PowerShell 7.1.4"] | |
fileExistenceTests: | |
- name: "license" | |
path: "/etc/secret" | |
shouldExist: true | |
permissions: "-r--r--r--" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment