diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2023-01-04 22:52:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 22:52:05 +0300 |
commit | eef35a4399a17546051fc5597440d38c36022f06 (patch) | |
tree | cdcd9e78f9403a39219e3129871e373af1b6909d /test/docker-outside-of-docker | |
parent | 6c76a7b4883a2639cedf805ed786b5b84100841d (diff) |
Rename "docker-from-docker" to "docker-outside-of-docker" (#373)
* Rename to "docker-outside-of-docker"
* rename test folder
Diffstat (limited to 'test/docker-outside-of-docker')
-rw-r--r-- | test/docker-outside-of-docker/docker_init.sh | 15 | ||||
-rw-r--r-- | test/docker-outside-of-docker/scenarios.json | 11 | ||||
-rwxr-xr-x | test/docker-outside-of-docker/test.sh | 14 |
3 files changed, 40 insertions, 0 deletions
diff --git a/test/docker-outside-of-docker/docker_init.sh b/test/docker-outside-of-docker/docker_init.sh new file mode 100644 index 0000000..2164921 --- /dev/null +++ b/test/docker-outside-of-docker/docker_init.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +check "docker-init-exists" bash -c "ls /usr/local/share/docker-init.sh" +check "log-exists" bash -c "ls /tmp/vscr-docker-from-docker.log" +check "log-contents-for-success" bash -c "cat /tmp/vscr-docker-from-docker.log | grep 'Success'" +check "log-contents" bash -c "cat /tmp/vscr-docker-from-docker.log | grep 'Proxying /var/run/docker-host.sock to /var/run/docker.sock for vscode'" +check "docker-ps" bash -c "docker ps" + +# Report result +reportResults
\ No newline at end of file diff --git a/test/docker-outside-of-docker/scenarios.json b/test/docker-outside-of-docker/scenarios.json new file mode 100644 index 0000000..804b522 --- /dev/null +++ b/test/docker-outside-of-docker/scenarios.json @@ -0,0 +1,11 @@ +{ + "docker_init": { + "image": "mcr.microsoft.com/devcontainers/base", + "remoteUser": "vscode", + "features": { + "docker-outside-of-docker": { + "version": "latest" + } + } + } +} diff --git a/test/docker-outside-of-docker/test.sh b/test/docker-outside-of-docker/test.sh new file mode 100755 index 0000000..517737a --- /dev/null +++ b/test/docker-outside-of-docker/test.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "version" docker --version +check "docker-init-exists" bash -c "ls /usr/local/share/docker-init.sh" +check "docker-ps" bash -c "docker ps" + +# Report result +reportResults
\ No newline at end of file |