diff options
author | Josh Spicer <josh@joshspicer.com> | 2022-10-20 21:25:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 21:25:15 +0300 |
commit | 4d915904488c61c816e3626a53935fe959c26a3f (patch) | |
tree | 82ab0e74953d6749fb59876ef43d099c9df77fec | |
parent | c26c541493a8d4e57bf343d36f72ea06b00c72f2 (diff) |
update test, add stub for dockerDefaultAddressPooladd-test
-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 |