features/test/python/install_additional_jupyterlab.sh
Chuck Lantz 3020d6da64
Fix python feature issue #258, improve tests, fix oryx bug (#261)
* Fix #258, improve tests, fix oryx bug
* Drop Debian 9 from tests given it is out of support
2022-11-07 12:46:23 -06:00

24 lines
568 B
Bash
Executable file

#!/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