aboutsummaryrefslogtreecommitdiff
path: root/test/python/install_additional_jupyterlab.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/install_additional_jupyterlab.sh')
-rw-r--r--test/python/install_additional_jupyterlab.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/python/install_additional_jupyterlab.sh b/test/python/install_additional_jupyterlab.sh
new file mode 100644
index 0000000..d48bb46
--- /dev/null
+++ b/test/python/install_additional_jupyterlab.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+# Always run these checks as the non-root user
+user="$(whoami)"
+check "user" grep vscode <<< "$user"
+
+# Check for an installation of JupyterLab
+check "version" jupyter lab --version
+
+# Check location of JupyterLab installation
+packages="$(python3 -m pip list)"
+check "location" grep jupyter <<< "$packages"
+
+# Check for correct JupyterLab configuration
+check "config" grep ".*.allow_origin = '*'" /home/vscode/.jupyter/jupyter_server_config.py
+
+# Report result
+reportResults