aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Spicer <josh@joshspicer.com>2022-10-20 21:25:15 +0300
committerGitHub <noreply@github.com>2022-10-20 21:25:15 +0300
commit4d915904488c61c816e3626a53935fe959c26a3f (patch)
tree82ab0e74953d6749fb59876ef43d099c9df77fec
parentc26c541493a8d4e57bf343d36f72ea06b00c72f2 (diff)
update test, add stub for dockerDefaultAddressPooladd-test
-rw-r--r--test/docker-in-docker/dockerDefaultAddressPool.sh19
-rw-r--r--test/docker-in-docker/scenarios.json11
-rwxr-xr-xtest/docker-in-docker/test.sh4
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