diff options
Diffstat (limited to 'test/docker-in-docker')
-rw-r--r-- | test/docker-in-docker/dockerDefaultAddressPool.sh | 19 | ||||
-rw-r--r-- | test/docker-in-docker/scenarios.json | 11 | ||||
-rwxr-xr-x | test/docker-in-docker/test.sh | 4 |
3 files changed, 34 insertions, 0 deletions
diff --git a/test/docker-in-docker/dockerDefaultAddressPool.sh b/test/docker-in-docker/dockerDefaultAddressPool.sh new file mode 100644 index 0000000..00e414d --- /dev/null +++ b/test/docker-in-docker/dockerDefaultAddressPool.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "version" docker --version + +check "ps" docker ps + +check "run hello world" docker run hello-world + +# Asserts specific to manually setting dockerDefaultAddressPool +# TODO + +# Report result +reportResults
\ No newline at end of file diff --git a/test/docker-in-docker/scenarios.json b/test/docker-in-docker/scenarios.json new file mode 100644 index 0000000..e56df8e --- /dev/null +++ b/test/docker-in-docker/scenarios.json @@ -0,0 +1,11 @@ +{ + "dockerDefaultAddressPool": { + "image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18", + "remoteUser": "node", + "features": { + "docker-in-docker": { + "dockerDefaultAddressPool": "192.168.0.0/16,size=24" + } + } + } +}
\ No newline at end of file diff --git a/test/docker-in-docker/test.sh b/test/docker-in-docker/test.sh index 3a802b5..f81218c 100755 --- a/test/docker-in-docker/test.sh +++ b/test/docker-in-docker/test.sh @@ -8,5 +8,9 @@ source dev-container-features-test-lib # Definition specific tests check "version" docker --version +check "ps" docker ps + +check "run hello world" docker run hello-world + # Report result reportResults
\ No newline at end of file |