Commit Graph

46 Commits

Author SHA1 Message Date
Ayaz Salikhov
12b618c5da Unify docker usage in tests 2022-01-22 00:46:20 +02:00
romainx
1d8d7df242 Default to JupyterLab
Introduce a new `JUPYTER_CMD` option
2022-01-19 12:15:54 +01:00
Ayaz Salikhov
2a1316c9ac Add some typing to tests 2022-01-18 19:13:17 +03:00
Ben Mares
edd0bf71a6 Log before assert 2021-12-14 22:40:45 +01:00
Ben Mares
8958ba7592 Warn if NB_USER not jovyan and can't rename home 2021-12-14 21:12:09 +01:00
Ben Mares
c772e98ac7 Fix spurious error messages with altered uid 2021-12-14 21:12:09 +01:00
Ben Mares
709206ac87 Check base-notebook test logs for ERROR/WARNING 2021-12-14 21:12:08 +01:00
Ayaz Salikhov
058229dc3a Add non-root test 2021-11-15 16:11:58 +03:00
Ayaz Salikhov
b6ab91a606 Fix an example 2021-11-12 19:45:28 +03:00
Erik Sundell
ee0105a8a5 start.sh: JUPYTER_ENV_VARS_TO_UNSET introduced
Allow you to define variables to be unset before running the command
that start.sh is supposed to start. These variables will still be
available in the hooks run before.
2021-11-11 22:48:20 +01:00
Erik Sundell
018e5fc962 start.sh: tests, docs, and refinements 2021-11-08 16:29:11 +01:00
pre-commit-ci[bot]
7494214259 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-09-15 14:57:47 +00:00
Thijs Walcarius
891ddbc106 Add test for copying of hidden folder
Test if the hidden `.jupyter` folder is properly copied when the user is changed via `NB_USER` environment variable. This folder should exist as `jupyter notebook --generate-config` is executed to generate `/home/jovyan/.jupyter/jupyter_notebook_config.py` .

Test for fix #1466 for issue #1465.
2021-09-15 16:56:02 +02:00
rigzba21
d29e6c25ac adding rv check to test 2021-08-06 16:11:00 -04:00
rigzba21
0dbce4526e removing rsync dependency, using cp -R instead, reducing wait time in test 2021-08-06 14:55:58 -04:00
rigzba21
9d9b76909d fixing bashate and flake8 errors 2021-08-06 13:19:39 -04:00
pre-commit-ci[bot]
437e736c7d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-08-06 16:25:29 +00:00
rigzba21
364e5de012 updating test description 2021-08-06 12:11:30 -04:00
rigzba21
c5fe6a1f5f adding test to check if container deleted files on container bind mount 2021-08-06 07:53:49 -04:00
Erik Sundell
411663b5d4 black style tweaks: add trailing commas 2021-06-28 22:07:26 +02:00
Erik Sundell
962a630f53 Apply suggestions from code review
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
2021-06-28 22:07:26 +02:00
Erik Sundell
fe3968efe0 pre-commit: run black autoformatter on all files 2021-06-28 22:07:23 +02:00
Steven Stetzler
127f3bfe0b shuffle workdir option in tests 2020-11-10 21:48:08 +00:00
Ayaz Salikhov
e3085ca89e Merge branch 'master' into asalikhov/py_codestyle 2020-09-28 06:37:23 +03:00
romainx
39dc7752e8 Fixed test test_cli_args
Changed `""` into `''` to pass an empty token. Seems to be linked to this warning:
```
/opt/conda/lib/python3.8/site-packages/traitlets/traitlets.py:2195: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '' instead of "''" – or use CUnicode.
```

Added debug information (ouput of the command line).
2020-09-10 20:00:24 +02:00
Ayaz Salikhov
530e2b3834 Merge branch 'master' into asalikhov/py_codestyle 2020-08-16 20:02:40 +03:00
Peter Parente
0f1ebea3c7 Fix missing container wait in test 2020-07-30 07:50:16 -04:00
Ayaz Salikhov
94cd03d6b9 Fix python codestyle 2020-07-04 18:30:53 +02:00
romainx
5519470151 Fix comment 2020-05-21 21:28:11 +02:00
romainx
bcf1f53229 Fix #1077
* Documentation `common.md` updated
* `test_nb_user_change` test written
2020-05-02 17:25:14 +02:00
romainx
45d51e3b42 Bump to spark 2.4.5 + minor improvements 2020-02-11 21:30:47 +01:00
Brett Randall
e29f669fb8 Added CHOWN_EXTRA test.
Signed-off-by: Brett Randall <javabrett@gmail.com>
2019-03-20 15:10:09 +11:00
Richard Darst
fc72be36ad Update group handling: set primary gid, leave suplemental with group users
- If NB_GID is set, it is likely that files created should have NB_GID
  as their gid (if it doesn't matter, then this change is irrelevant.
  If it does matter, the liklihood that 100 matches with what the user
  wants is low).
- When NB_GID is set, create a new group with that gid.  Then, set
  this as the primary gid of the user.  Set the user's supplemental
  gids to NB_GID,100.
2018-08-02 10:27:29 +03:00
Peter Parente
19f1bd92f4 Fix second test_gid_change expectation 2018-06-29 08:33:12 -04:00
Peter Parente
611526cdc4 Fix test_gid_change expectation 2018-06-28 22:29:59 -04:00
Chris Zubak-Skees
27cf7035ec Fix to check dict status code response in test_container_options 2018-02-04 13:01:28 -05:00
Bonnotte, Nicolas
c6c6819a6e Add /bin to sudo secure_path 2018-01-18 17:51:06 +01:00
Peter Parente
a3cfda28da Verify path prefix in test 2018-01-04 22:51:16 -05:00
Peter Parente
6fa67cc500 Append $CONDA_DIR/bin to sudo secure_path
Retain behavior when su was used instead
2018-01-04 00:09:07 -05:00
Peter Parente
fb01654930 Fix test to use bash for multiple commands 2017-12-29 19:37:07 -05:00
Peter Parente
240285841a Remove mount permissions test
Not really testing a docker-stacks feature, only
that docker host permissions work
2017-12-16 23:03:26 -05:00
Peter Parente
167a0cb0c4 Fix mount test on CI 2017-12-02 22:03:44 -05:00
Peter Parente
803dc0c75b Fix bogus assert, add mount test 2017-12-01 22:52:00 -05:00
Peter Parente
b9139131da Tests for NB_UID, NB_GID, GRANT_SUDO options
* Improve test container teardown
* Fix needless groupmod when NB_GID is unchanged
2017-11-30 00:15:17 -05:00
Peter Parente
8a59d74813 Refactor to share fixtures with option tests 2017-11-28 23:57:05 -05:00
Peter Parente
6ba0d59446 Add placeholder tests for base-notebook 2017-11-27 23:28:11 -05:00