diff options
Diffstat (limited to 'test/docker-in-docker')
-rw-r--r-- | test/docker-in-docker/azureDnsAutoDetectionDisabled.sh | 12 | ||||
-rw-r--r-- | test/docker-in-docker/azureDnsAutoDetectionEnabled.sh | 12 | ||||
-rw-r--r-- | test/docker-in-docker/dockerDefaultAddressPool.sh | 12 | ||||
-rw-r--r-- | test/docker-in-docker/scenarios.json | 29 |
4 files changed, 65 insertions, 0 deletions
diff --git a/test/docker-in-docker/azureDnsAutoDetectionDisabled.sh b/test/docker-in-docker/azureDnsAutoDetectionDisabled.sh new file mode 100644 index 0000000..d3f4159 --- /dev/null +++ b/test/docker-in-docker/azureDnsAutoDetectionDisabled.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "dns flag should not be present" test ! "$(ps -ax | grep -E 'dockerd.+\-\-dns')" + +# Report result +reportResults
\ No newline at end of file diff --git a/test/docker-in-docker/azureDnsAutoDetectionEnabled.sh b/test/docker-in-docker/azureDnsAutoDetectionEnabled.sh new file mode 100644 index 0000000..e63a1f3 --- /dev/null +++ b/test/docker-in-docker/azureDnsAutoDetectionEnabled.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "dns flag should be present" ps -ax | grep -E "dockerd.+\-\-dns" + +# Report result +reportResults
\ No newline at end of file diff --git a/test/docker-in-docker/dockerDefaultAddressPool.sh b/test/docker-in-docker/dockerDefaultAddressPool.sh new file mode 100644 index 0000000..8345357 --- /dev/null +++ b/test/docker-in-docker/dockerDefaultAddressPool.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "default address pool setting set" ps -ax | grep -E "dockerd.+base=192.168.0.0/16,size=24" + +# 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..d37053a --- /dev/null +++ b/test/docker-in-docker/scenarios.json @@ -0,0 +1,29 @@ +{ + "dockerDefaultAddressPool": { + "image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18", + "remoteUser": "node", + "features": { + "docker-in-docker": { + "dockerDefaultAddressPool": "base=192.168.0.0/16,size=24" + } + } + }, + "azureDnsAutoDetectionEnabled": { + "image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18", + "remoteUser": "node", + "features": { + "docker-in-docker": { + "azureDnsAutoDetection": true + } + } + }, + "azureDnsAutoDetectionDisabled": { + "image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18", + "remoteUser": "node", + "features": { + "docker-in-docker": { + "azureDnsAutoDetection": false + } + } + } +}
\ No newline at end of file |