aboutsummaryrefslogtreecommitdiff
path: root/test-scenarios
diff options
context:
space:
mode:
Diffstat (limited to 'test-scenarios')
-rw-r--r--test-scenarios/install_jupyterlab.sh12
-rw-r--r--test-scenarios/scenarios.json19
2 files changed, 31 insertions, 0 deletions
diff --git a/test-scenarios/install_jupyterlab.sh b/test-scenarios/install_jupyterlab.sh
new file mode 100644
index 0000000..2a4aaa3
--- /dev/null
+++ b/test-scenarios/install_jupyterlab.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+check "version" jupyter lab --version
+check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_notebook_config.py
+
+# Report result
+reportResults
diff --git a/test-scenarios/scenarios.json b/test-scenarios/scenarios.json
index e97b853..bbb61e7 100644
--- a/test-scenarios/scenarios.json
+++ b/test-scenarios/scenarios.json
@@ -16,5 +16,24 @@
}
}
]
+ },
+ "install_jupyterlab": {
+ "image": "mcr.microsoft.com/vscode/devcontainers/base:focal",
+ "remoteUser": "vscode",
+ "features": [
+ {
+ "id": "common",
+ "options": {
+ "username": "vscode"
+ }
+ },
+ {
+ "id": "python",
+ "options": {
+ "install_jupyterlab": true,
+ "configure_jupyterlab_allow_origin": "*"
+ }
+ }
+ ]
}
} \ No newline at end of file