diff options
author | Shikanime Deva <shikalegend@gmail.com> | 2023-08-10 02:20:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 02:20:27 +0300 |
commit | 9e75db9a1dbcc245f94707c0917470143c17595b (patch) | |
tree | bc8d73cd6c7347ce10ced021cbda9ae9ce54bd81 /test | |
parent | f2594c5cc85e18450a31865f8387c8dc064006f2 (diff) |
Avoid unexpected shell expansion (#645)feature_node_1.2.1
* Avoid unexpected shell expansion
* Add install Node with ZSH as default test
* Fix LTS only work on >bionic
* Bump Node feature version
* Remove huge universal image on scenarios
Diffstat (limited to 'test')
-rw-r--r-- | test/node/scenarios.json | 20 | ||||
-rwxr-xr-x | test/node/zsh_default.sh | 12 |
2 files changed, 23 insertions, 9 deletions
diff --git a/test/node/scenarios.json b/test/node/scenarios.json index 6112a6e..5524f5c 100644 --- a/test/node/scenarios.json +++ b/test/node/scenarios.json @@ -17,21 +17,23 @@ } } }, - "version_none": { - "image": "mcr.microsoft.com/devcontainers/base", - "remoteUser": "vscode", + "zsh_default": { + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "node": { - "version": "none" + "version": "lts" + }, + "common-utils": { + "configureZshAsDefaultShell": true } } }, - "install_node_on_universal_image": { - "image": "mcr.microsoft.com/devcontainers/universal", - "remoteUser": "codespace", + "version_none": { + "image": "mcr.microsoft.com/devcontainers/base", + "remoteUser": "vscode", "features": { "node": { - "version": "19.1.0" + "version": "none" } } }, @@ -43,4 +45,4 @@ } } } -} +}
\ No newline at end of file diff --git a/test/node/zsh_default.sh b/test/node/zsh_default.sh new file mode 100755 index 0000000..c7c9e57 --- /dev/null +++ b/test/node/zsh_default.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +# Optional: Import test library +source dev-container-features-test-lib + +# Definition specific tests +check "nvm" bash -c ". /usr/local/share/nvm/nvm.sh && nvm install 10" + +# Report result +reportResults |