paugier
e520b900bf
Add a Mercurial contentprovider
...
MyBinder could support Mercurial repositories
See https://github.com/jupyterhub/binderhub/issues/1148
2020-09-04 15:14:04 +02:00
Min RK
5179447aea
Merge pull request #928 from gesiscss/configdirtest
...
little improvement for testing binder_dir
2020-08-17 10:24:10 +02:00
Tim Head
4e3016981d
Unrecognised and invalid lines don't disable optimisation
...
Lines in requirements files that we don't recognise or are syntax errors
do not disable our "optimised" build process.
2020-08-17 08:01:20 +02:00
Tim Head
a7ab636441
Add additional test cases and robuster parsing
2020-08-13 14:29:50 +02:00
Tim Head
6d2b129ed8
Handle requirements.txt with `--pre` lines
...
This is a global flag which our inspection of requirements.txt files
should ignore as it doesn't imply a local reference.
2020-08-13 14:00:16 +02:00
Min RK
60555b1d05
update repo URLs for jupyterhub/repo2docker
2020-08-10 09:33:05 +02:00
Tim Head
f5a7711af5
Update snapshot date for simple R test
2020-07-30 16:37:29 +02:00
Tim Head
fc9891b541
Upgrade custom test infrastructure for pytest 6.0.0
2020-07-30 15:15:56 +02:00
Simon Li
72fbd65649
validate_image_name: mention lowercase, fix formatting
2020-07-27 20:32:34 +01:00
Kenan Erdogan
00ec28441d
merge similar test cases and use equal instead of in
2020-07-08 17:58:30 +02:00
Tim Head
df77a99ce1
Make the memory limit test simpler
...
Instead of checking that a build which allocates too much memory does
fail, we now only check that we pass the correct arguments to the Docker
API client. It seems reasonable to rely on the docker client working and
doing the right thing. This solves a problem where our CI is flakey
because the kernel of the VM the tests run on doesn't support this.
2020-06-12 19:03:48 +02:00
Tim Head
bbc3ee02c0
Merge pull request #882 from hwine/GH-881_make_macOS_docker_work
2020-04-27 16:20:20 +02:00
Hal Wine
69f4663700
Fix test_env.py
...
This works around an issue where the temp directory can not be added to
Docker. In this case, the directory is immediately deleted, and does not
occupy significant disk space. There should be no impact to the move.
2020-04-22 21:33:13 -07:00
Hal Wine
a09e523fd4
Expand test cases to cover current Docker handling
...
Examination of docker's handling showed a few additional cases were
needed.
2020-04-19 16:44:06 -07:00
Hal Wine
6f59fdb20f
Refactor to eliminate need for volume mount
...
This change allows, imo, the test to be clearer, and should also speed
up the test.
2020-04-19 16:41:11 -07:00
Hal Wine
af5d9c7129
Add failing test for bare env argument value
2020-04-18 09:59:35 -07:00
Tim Head
27bca4a351
Add reported failing spec
2020-03-27 15:32:00 +01:00
Tim Head
110d34d041
Improve handling of pip arguments when detecting local dependencies
2020-03-27 15:28:19 +01:00
Tim Head
5ef65f9806
Formatting changes only
2020-03-27 15:15:14 +01:00
YuviPanda
798ba4f4bd
Fix conda test to account for newer conda
2020-03-04 22:12:38 +05:30
Tim Head
26542dfc85
Merge pull request #851 from manics/mran-latest
...
[MRG] If looking for latest MRAN URL try earlier snapshots too
2020-02-24 10:19:09 +01:00
Simon Li
6a07a48b2d
Test R latest MRAN date handling
2020-02-22 11:29:59 +00:00
Simon Li
39f6fc2790
unit test for utils.execute_cmd no EOL
2020-02-16 14:26:54 +00:00
Chris Holdgraf
900d280561
[MRG] add Hydroshare as a content provider ( #800 )
...
[MRG] add Hydroshare as a content provider
2020-02-03 10:52:48 -07:00
Tim Head
356ea10868
Merge pull request #840 from minrk/py38
...
Python 3.8 support
2020-01-30 16:10:37 +01:00
Min RK
7d20da1d04
add test for py38
2020-01-30 11:53:16 +01:00
Uwe L. Korn
5421e09d2b
Make tests/conda/r/verify excutable
2020-01-30 10:51:47 +01:00
Uwe L. Korn
ffbc7c0a6b
Add tests for r-in-conda
2020-01-30 08:15:42 +01:00
Scott Black
02d0107510
Merge remote-tracking branch 'upstream/master' into hydroshare-content-provider
2020-01-29 10:14:01 -07:00
Min RK
a337ee8020
update node10 test to reflect the removal of conda nodejs
2020-01-29 16:38:24 +01:00
Tim Head
4598a08ff9
Remove a test of legacy buildpack
2020-01-25 07:42:14 +01:00
Tim Head
9cfdb9b5f4
Add test for deprecated legacy buildpack
...
Tests that the legacy buildpack raises exceptions when it is triggered.
2020-01-25 07:35:00 +01:00
Scott Black
0c15cb1251
cleanup tests and formatting
2019-12-07 13:34:49 -07:00
Scott Black
cb7bb0bb43
remove test parameterization and use fix regex match
2019-12-06 17:36:50 -07:00
Scott Black
776d538689
update tests and code to follow best practices pointed out in review
2019-12-06 16:31:59 -07:00
David Brochart
56e6c116f3
Add test
2019-11-05 18:01:06 +01:00
Scott Black
d657453b3f
update hydroshare version fetch to assume timestamp is in utc
2019-10-01 11:16:34 -06:00
pughdr
d64f050d34
Bumped conda version to 4.7.12
2019-10-01 11:25:10 +03:00
Scott Black
dddc45acfb
reformatting with lint
2019-09-30 13:50:24 -06:00
Scott Black
21e61f3099
add hydroshare resource versioning and raise exception fetch fails
2019-09-25 14:37:19 -06:00
Scott Black
d89f3a66aa
update hydroshare content provider to doi and add tests
2019-09-25 09:59:44 -06:00
Tim Head
bfbec349c2
[MRG] Add support for installing different versions of R ( #772 )
...
[MRG] Add support for installing different versions of R
2019-09-18 08:15:11 +02:00
Kacper Kowalik (Xarthisius)
4df4fd6ab4
Download individual files instead of zip bundle
2019-09-17 15:44:56 -05:00
Kacper Kowalik (Xarthisius)
a2f8228b15
Match DV hosts based on netloc instead of url
2019-09-16 15:03:12 -05:00
Kacper Kowalik (Xarthisius)
8edafd0d07
Add tests
2019-09-13 13:42:41 -05:00
Daniel Nüst
a40e1799bd
fix content_id for Figshare
2019-09-11 13:45:16 +02:00
Daniel Nüst
f1ec646d2e
add support for Figshare versions > 9
2019-09-11 13:18:20 +02:00
Daniel Nüst
698b8a1d7e
try to improve test coverage
2019-09-11 13:17:48 +02:00
Daniel Nüst
b2b75600c0
handle versions in Figshare properly
2019-09-09 08:37:02 +02:00
Daniel Nüst
b2b6030492
initialize hosts as instance variable
2019-09-08 21:39:48 +02:00
Tim Head
d8c8259343
Raise exception for unsupported R versions
2019-09-08 17:19:50 +02:00
Daniel Nüst
e6cd4b19d9
reuse hosts definition in Zenodo tests
2019-09-08 14:51:17 +02:00
Daniel Nüst
0e4029bb8d
add Figshare content provider
...
moving common functions to a DoiProvider
2019-09-08 14:51:17 +02:00
Min RK
f47acaa1bd
use getpass.getuser instead of os.getlogin
...
os.getlogin doesn't work everywhere (can raise OSError, inappropriate ioctl for device)
2019-09-08 11:54:22 +02:00
Tim Head
eae42740b6
Add tests for R version handling
2019-09-08 07:25:10 +02:00
Min RK
8ef5faa2ab
Merge pull request #779 from nuest/docker_daemon_logmessage
...
add explicit log message on failing Docker connection
2019-09-07 14:07:03 +02:00
Min RK
4f428c3055
Merge pull request #681 from Xarthisius/abspath_in_scripts
...
[MRG] Allow absolute paths in build_script_files. Fixes #673
2019-09-07 12:33:14 +02:00
Daniel Nüst
b3f82db558
exit and show clean error message (no log) if docker connection fails
2019-09-07 12:16:41 +02:00
Daniel Nüst
c8cd3269c0
add explicit log message on failing Docker connection, see #774
2019-09-07 09:22:00 +02:00
GeorgianaElena
75f4a70fec
Black refactor
2019-08-30 11:26:48 +03:00
GeorgianaElena
5e4932b704
Added test for open_guess_encoding
2019-08-30 11:06:53 +03:00
Tim Head
d72c60182a
Merge pull request #728 from scottyhq/nopip
...
[MRG] switch pip packages to conda-forge in conda buildpack
2019-08-05 10:21:14 +02:00
Samnan Rahee
6efe82b9b7
rewrite /test/units/test_semver.py using @pytest.mark.parametrize fixes #615
2019-08-02 15:08:43 +06:00
Scott Henderson
cfaa552cb4
node test for system package and conda-forge
2019-07-31 22:52:24 +00:00
Scott Henderson
5ea4c29b83
bump conda minor version to 4.7.10 and refreeze
2019-07-29 17:30:50 +00:00
Tim Head
e24e5d91ca
Add test for R buildpack's get_preassemble_script_files
2019-07-23 18:23:30 +02:00
Min RK
009d09815a
test local pip requirements
2019-07-18 14:40:17 +02:00
David R. Pugh
399b339a4a
[WIP] Version bump Conda from 4.6.14 to 4.7.5 ( #719 )
...
Version bump conda to 4.7.5
Co-authored-by: pughdr <david.pugh@kaust.edu.sa>
2019-07-12 18:50:11 +02:00
Min RK
bbe2b961ad
bump xeus-cling in tests
...
so we don't have an old env relying on the free channel
2019-07-09 16:12:22 +02:00
Tim Head
b5a506e0b7
Switch to binder-examples/requirements for our tests
2019-07-06 15:30:21 +02:00
Kacper Kowalik (Xarthisius)
f80fb4b39b
Handle root user case more gracefully. Fixes #696
...
If user_id is root, exit only from cmdline. Raise exception if r2d was
invoked as a library.
2019-06-28 11:46:01 -05:00
Kacper Kowalik (Xarthisius)
24234d9365
Allow absolute paths in build_script_files. Fixes #673
2019-06-28 08:44:11 -05:00
Tim Head
6e93cb06a4
Merge pull request #649 from consideRatio/pipenv-support
...
[MRG/REVIEW] Support Pipfile / Pipfile.lock with pipenv
2019-06-26 07:26:35 +02:00
Erik Sundell
0ff737df1b
Fix typo
...
Co-Authored-By: Tim Head <betatim@gmail.com>
2019-06-25 09:17:30 +02:00
Erik Sundell
efff66b81b
Fix typo
...
Co-Authored-By: Tim Head <betatim@gmail.com>
2019-06-25 09:17:04 +02:00
Erik Sundell
e5160e4b3f
Autoformatting
2019-06-23 06:38:31 +02:00
Erik Sundell
578fca9273
Add test for using py2 with pipfile
2019-06-23 05:45:25 +02:00
Tim Head
70819410f1
[MRG] Generalize Zenodo content provider to support other Invenio repositories ( #704 )
...
[MRG] Generalize Zenodo content provider to support other Invenio repositories
2019-06-21 09:48:52 +02:00
Tom Morrell
93147888c5
Reformatting and better tests
2019-06-20 13:22:17 -07:00
Tom Morrell
6d785404fb
Typo
2019-06-19 08:38:24 -07:00
Tom Morrell
55b19b8369
Typo
2019-06-18 15:30:37 -07:00
Tom Morrell
87f33e3b6a
Full generalization and support for CaltechDATA
2019-06-18 15:11:06 -07:00
Erik Sundell
c30337097e
Autoformatting applied
2019-06-18 00:38:06 +02:00
Min RK
9463b3bf8c
verify lfs files
2019-06-13 13:53:18 +02:00
Erik Sundell
6de7a8c97a
Black formatting applied
2019-06-04 09:14:32 +02:00
Erik Sundell
e58b5c316e
Merge remote-tracking branch 'upstream/master' into pipenv-support
2019-06-04 08:53:56 +02:00
Tim Head
8b004e06dc
Apply auto formatting
...
Apologies to anyone finding this commit via git blame or log
run the autoformatting by
pre-commit run --all-files
2019-06-03 21:37:25 +02:00
Tim Head
71a78986c2
Add external test for Zennodo provider
2019-05-30 08:33:12 +02:00
Tim Head
363c962efd
Add a urlopen helper to Zenodo content provider
...
Use a helper function to inject a default user-agent header into every
request we make.
2019-05-29 22:27:09 +02:00
Tim Head
8fe9c71826
Mock urlopen calls during Zenodo tests
2019-05-29 22:27:09 +02:00
Tim Head
ec8659e62f
Add tests for Zenodo content provider
2019-05-29 22:27:09 +02:00
Yuvi Panda
c7658dbc45
Merge pull request #695 from betatim/update-nodejs-test
...
[MRG] Update verification of Node install
2019-05-29 12:12:25 -07:00
Tim Head
60004a29de
Update verification of Node install
...
Instead of checking the minor version as well only check the major
version of npm
2019-05-29 10:21:03 +02:00
Min RK
9bf2e13832
test `conda install` in the default env in postBuild
2019-05-24 11:04:47 +02:00
Tim Head
02e0de8717
Add test that default username is picked
2019-05-23 09:45:28 +02:00
Erik Sundell
5367f80541
Test Pipfile in binder-dir with Setup.py
2019-05-12 17:45:17 +02:00
Erik Sundell
2b0aa99d84
Merge remote-tracking branch 'upstream/master' into pipenv-support
2019-05-12 15:44:10 +02:00
Erik Sundell
10e9bb9bf6
extract pipfile: move tests
2019-05-12 15:08:40 +02:00
Kacper Kowalik (Xarthisius)
caef6686d1
Do not try to build the image with root as the primary user
...
Fixes #267 and #395
2019-05-09 13:06:02 -05:00
Tim Head
e66f0af23c
Revert "[MRG] Do not try to build the image with root as the primary user."
2019-05-09 13:14:32 +02:00
Kacper Kowalik (Xarthisius)
7d948bda8d
Do not try to build the image with root as the primary user
...
Fixes #267 and #395
2019-05-08 14:55:43 -05:00
Tim Head
032baf6d04
Add check to `build()` for memory limit type
2019-05-08 14:23:43 +02:00
Tim Head
9f44075839
Fix cache-from tests to pass memory limit as integer
2019-05-08 13:20:10 +02:00
Tim Head
5adc4b257e
Update base image used for memory limit checks
2019-05-07 19:12:34 +02:00
Tim Head
92d69010c7
Merge pull request #652 from betatim/fix-memory-limit
...
[MRG] Fix handling of memory limit command line argument
2019-04-30 21:34:52 +02:00
yuvipanda
c0a33b340b
Add test for integral --build-memory-limit
2019-04-30 10:46:09 -07:00
Tim Head
5e67e3c743
Support .binder directory ( #653 )
...
Support .binder directory
2019-04-30 18:29:38 +02:00
Joseph Hamman
6de4c5ea6b
add unit tests for binder dir
2019-04-30 08:35:58 -07:00
Tim Head
e2c7de8d19
Update Julia tests for new conda env path
2019-04-30 08:43:19 +02:00
Min RK
2acf0974c3
miniconda is 4.6.14
2019-04-26 16:25:41 +02:00
Min RK
186e1bbc5d
repo-path verifies conda prefix
2019-04-26 16:15:40 +02:00
Min RK
51f15ee7bd
update some tests with new expectations
...
- conda is not importable in the frontmost python
- sys.executable is in $NB_PYTHON_PREFIX (this was true before, but it's value has changed)
2019-04-25 16:51:05 +02:00
Min RK
5f285b74e8
verify conda activation (and thereby entrypoint)
...
in tests/conda/simple
use pytest for better error reporting
2019-04-25 16:11:23 +02:00
Erik Sundell
b80aba447c
Add Pipfile + binder-folder tests
2019-04-21 23:45:27 +02:00
Erik Sundell
4bde9f05c3
Add Pipfile.lock to py36 test
2019-04-21 23:26:21 +02:00
Erik Sundell
330ac775d3
Add Pipfile + runtime.txt test
2019-04-21 21:46:52 +02:00
Erik Sundell
97c26641c3
Optimize Pipfile + environment.yml test
...
Why install a big package when we can install a trivial one?
2019-04-21 17:34:29 +02:00
Erik Sundell
e107360d97
Improve Pipfile + requirements.txt test
...
Previously we did not check that requirements.txt was ignored properly,
now we do.
2019-04-21 17:33:44 +02:00
Erik Sundell
d019f4980a
Clarify Pipfile + Pipfile.lock test
2019-04-21 17:32:46 +02:00
Erik Sundell
a59e169e2f
Fix the Pipfile + setup.py tests
...
Apparently testing to import the package will work no matter what as we
will find it locally so setup.py may not need to run. By adding a small
dependency I could check if the dependency is installed and now the
tests actually tests what they should.
2019-04-21 17:30:36 +02:00
Erik Sundell
d9e58c2634
Fix test description
2019-04-21 14:59:38 +02:00
Erik Sundell
d8cfc50c50
Add test for Pipfile + Pipfile.lock
...
We want to use the more specific version, Pipfile.lock, if it is
available. Are we ignoring the Pipfile if it is, as we should?
2019-04-21 14:55:00 +02:00
Erik Sundell
dff18e840d
Add test for Pipfile + setup.py
...
We want to ignore the setup.py file if it is around along with a
Pipfile.
2019-04-21 14:53:05 +02:00
Erik Sundell
4b74a13364
Rethink setup.py with Pipfile
...
As setup.py can be explicitly installed or not from a Pipfile I reasoned
that it should not be installed by default after pipenv has used
relevant Pipfiles.
2019-04-21 14:51:11 +02:00
Erik Sundell
4c69bf1dfd
Add tests for Pipenv
2019-04-21 01:06:37 +02:00
David Hoese
ec6973c5fd
Fix git submodule test sha comparison
2019-04-08 08:26:44 -05:00
David Hoese
4bd1d23469
Add tests for git submodule handling
2019-04-08 08:09:23 -05:00
Tim Head
053a623f13
Merge pull request #612 from davidanthoff/change-julia-env-handling
...
Use JULIA_PROJECT env variable to activate julia env
2019-03-29 07:58:01 +01:00
Tim Head
649225166a
Update test of editable flag
...
For some reason the notebook server doesn't exit when we send the
SIGTERM signal to the container and as a result waiting for the
container to shutdown leads to an exit code of 137 (the notebook server
gets kill by SIGKILL).
2019-03-23 22:07:36 +01:00
David Anthoff
7105a8a3ef
Merge branch 'master' into change-julia-env-handling
2019-03-21 12:49:17 -07:00
David Anthoff
5c627cde78
Remove IJulia kernel location tests from julia legacy
2019-03-13 17:41:10 -07:00
David Anthoff
8f29686fb6
Add tests for IJulia kernel location
2019-03-13 09:14:05 -07:00
Tim Head
da9fed483d
Add a lot of tests for the Julia semver matcher
2019-03-08 08:12:36 +01:00
David Anthoff
ab0221e457
Use JULIA_PROJECT env variable to activate julia env
2019-03-06 10:35:16 -08:00
Tim Head
f718f9c51d
Fix version typo
2019-03-06 12:02:04 +01:00
David Anthoff
0bbfb7c57d
Use proper version specifier in julia Project.toml test
2019-03-05 20:51:16 -08:00
David Anthoff
606bc4cb1e
Update julia README files
2019-03-05 19:50:52 -08:00
David Anthoff
92e4121d67
Set file execution bit on julia tests
2019-03-05 08:42:08 -08:00
David Anthoff
02c531dc50
Update julia tests
2019-03-05 08:40:40 -08:00
David Anthoff
3ba4c5766b
Merge branch 'master' into reorg-julia
2019-03-04 21:31:12 -08:00
yuvipanda
e0fcd4a55d
Add test for environment.yml + --target-repo-dir
...
conda sometimes puts stuff in $HOME - specifically under .conda/ -
that might cause package installs to fail due to permission mismatches.
Ref https://github.com/jupyter/repo2docker/issues/604
2019-03-04 22:11:24 +05:30
David Anthoff
d09634cd74
Fix julia test
2019-03-01 22:12:29 -08:00
David Anthoff
7d7f238be1
Fix julia test
2019-02-27 21:06:42 -08:00
David Anthoff
77fd0dbf29
Fix julia test
2019-02-27 20:48:59 -08:00
David Anthoff
9c2b66d7b0
Enable a julia test again
2019-02-26 08:50:16 -08:00
David Anthoff
dc661f292d
Test a bugfix
2019-02-25 19:23:21 -08:00
David Anthoff
671836e1da
Rename julia tests
2019-02-25 15:55:26 -08:00
Min RK
41a9375984
Merge pull request #592 from betatim/freeze-tests
...
[MRG] Add tests for setting Python version during freeze
2019-02-25 10:56:22 +01:00
Tim Head
b581060ebf
Fix typo in julia test README
...
Co-Authored-By: davidanthoff <anthoff@berkeley.edu>
2019-02-24 09:07:06 -08:00
David Anthoff
a0801ac86f
Update julia test file permissions
2019-02-24 09:06:13 -08:00
David Anthoff
892d93c5f4
Update tests for more julia versions
2019-02-23 18:02:14 -08:00
Tim Head
ffed59a56d
Add tests for setting Python version during freeze
2019-02-23 15:03:44 +01:00
Tim Head
397695bbaa
Merge pull request #539 from yuvipanda/v3.7
...
Bump default python version to 3.7
2019-02-21 11:06:03 +01:00
Gladys Nalvarte
7609e7f0aa
Update build method in docker and legacy files
2019-02-19 10:45:48 +01:00
Gladys Nalvarte
5bf2eadcf8
Exposes CPU limit
2019-02-15 14:57:58 +01:00
yuvipanda
6d14754c35
Bump tag used to test requirements example
2019-02-12 20:49:26 -08:00
yuvipanda
d8f8c781b2
Bump python default version to 3.7
2019-02-11 12:49:58 -08:00
Tim Head
9766c95455
Merge pull request #576 from minrk/pin-conda-more
...
pin conda during Python-switch step
2019-02-10 12:28:25 +01:00
Tim Head
89027c68c7
Update checked conda version
2019-02-10 11:01:05 +01:00
Tim Head
e218a329f5
Merge pull request #573 from GladysNalvarte/nodejs_inst
...
npm installation
2019-02-08 18:20:26 +01:00
Min RK
7ade437de4
add a verification that conda version is correct
...
this isn't linked to the version in the file, so will need to be updated in sync
2019-02-08 12:46:53 +01:00
Gladys Nalvarte
8c6329de61
npm installation
2019-02-07 15:36:00 +01:00
Min RK
a69145fcdd
missing quotes in GIT_CREDENTIAL_ENV
...
echo without quotes removes newline, echo with quotes preserves it.
Previously failing test added
2019-01-31 10:48:18 +01:00
yuvipanda
da267be7ac
Remove redundant Julia test
...
This is the equivalent to the pyplot-requirements test,
so just do one rather than 2.
2019-01-18 00:20:07 -08:00
yuvipanda
a3b7e95594
Support requirements.txt & runtime.txt with Julia
...
The comment about Julia only working with CondaBuildPack
hasn't been true since we switched to using conda for getting
our pythons. This change allows people to use requirements.txt
with Julia, rather than forcing them to use environment.yaml
2019-01-17 17:23:54 -08:00
Tim Head
5385b71275
Merge pull request #555 from yuvipanda/julia-packages
...
Set JULIA_DEPOT_PATH
2019-01-17 10:29:53 +01:00
yuvipanda
3c9f31edc3
Add test for JULIA_DEPOT_PATHt
2019-01-16 22:42:36 -08:00
Yuvi Panda
9eb78c34ab
Merge pull request #534 from betatim/test-test-test
...
[MRG] Add tests for port mapping conversion
2018-12-22 10:46:16 -08:00
Yuvi Panda
18e9d2f817
Merge pull request #511 from betatim/cached-builds-take2
...
[MRG] Add caching of already built repositories
2018-12-21 22:19:28 -08:00
Tim Head
27a05d455e
Use a minimal hand-crafted Dockerfile for speed
...
Instead of installing the normal stack just install the notebook server
and launch it to check for the launch URL being output correctly.
2018-12-21 19:55:49 +01:00
Tim Head
9e6dc8f7d7
Update tests and add invalid port spec tests
2018-12-21 17:59:42 +01:00
Tim Head
7067663763
Add tests for port mapping conversion
2018-12-21 15:58:56 +01:00
Tim Head
e7018d7ca5
Add caching of already built repositories
...
Add tests for image caching
Adjust tests and main app for cached builds
Remove obsolete command-line handling
Remove print statement from test
Fix subdirectory handling
Put back exception instead of sys.exit()
2018-12-21 11:20:51 +01:00
yuvipanda
29407aa83f
Put ${REPO_PATH}/.local/bin in PATH too
2018-12-18 11:50:35 -08:00
yuvipanda
21154d3b86
Use REPO_DIR rather than REPO_PATH
...
https://github.com/jupyter/repo2docker/pull/507#issuecomment-448184651
is a good justification
2018-12-18 11:50:35 -08:00
yuvipanda
66f025720e
Add simple python test for --repo-path
...
extra-args.yaml placed in a test directory can be used
to pass extra arguments to the repo2docker command.
2018-12-18 11:50:24 -08:00
James Bourbeau
4f72fd8c94
Remove f-string in test
2018-12-18 09:29:28 -06:00
Min RK
aca4259534
update port tests
...
use repo2docker directly, not as a subprocess
2018-12-17 14:23:02 +01:00
Min RK
22de9f40d0
get unittests passing again
...
fix some relative paths, temporary dirs, etc.
2018-12-17 13:11:45 +01:00
Min RK
a5d5e77ad1
move unittests into tests/unit directory
...
for easier test discovery so we don't skip tests without realizing
2018-12-17 13:06:28 +01:00
yuvipanda
3a85fb814b
Use pytest's capsys to test for stdout values
...
Works better with pytest's output capturing system
2018-12-14 13:30:22 -08:00
yuvipanda
0a1d9e3d5f
Add test for valid & invalid docker image names
2018-12-14 13:15:33 -08:00
yuvipanda
183d504515
Add test for cleanup_checkout
2018-12-14 13:15:33 -08:00
yuvipanda
a44aed7664
Add some argument parsing tests
...
And fix the one bug discovered in this process
2018-12-14 13:15:33 -08:00
yuvipanda
769efb8a69
Add test for proper failure when ref isn't found in git repo
2018-12-14 13:15:33 -08:00
yuvipanda
e1ead75302
Move argument parsing out of Repo2Docker class
...
Argument parsing should only be used when calling from
the command line, and not be deeply tied into the class
itself. This makes it easier for folks to just set
traitlets on an empty class and start it, without having to
deal with passing arguments.
This breaks how people might already be using Repo2Docker as
a library, so should not be part of 0.7
2018-12-14 13:15:33 -08:00
James Bourbeau
db00d4982c
Use "local" label for local directory
2018-12-13 17:12:09 -06:00
James Bourbeau
2448730b75
Refactor test to use mock
2018-12-13 16:40:39 -06:00
James Bourbeau
a55a3f6d30
Add test for BuildPack label rendering
2018-12-13 13:34:57 -06:00
James Bourbeau
99b1e7548a
Update test_labels.py
2018-12-13 12:43:45 -06:00
James Bourbeau
5ff24d960b
Add test_labels
2018-12-12 22:05:35 -06:00
Tim Head
69cd760e07
Merge pull request #494 from yuvipanda/util-tests
...
Add unit tests for repo2docker/utils.py
2018-12-11 13:05:08 +01:00
yuvipanda
bf8836243c
Add test for ByteSpecification validation
2018-12-10 23:19:13 -08:00
yuvipanda
b441176a6a
Add test for utils.chdir
2018-12-10 23:13:56 -08:00
yuvipanda
30e69bccee
Add unit test for execute_cmd in repo2docker.utils
2018-12-10 23:06:25 -08:00
yuvipanda
d035483d1c
Add tests for Docker & Legacy Docker buildpacks
2018-12-10 22:46:06 -08:00
yuvipanda
47335f44c7
Add tests for cache_from functionality
2018-12-10 11:25:47 -08:00
Yuvi Panda
c489f54a05
Merge pull request #448 from betatim/nix-experiment
...
[MRG] Switch to BaseImage for nix build pack
2018-11-12 13:56:30 -08:00
Tim Head
58cbe1797d
Merge pull request #457 from nuest/stencila
...
Updates for Stencila
2018-11-09 13:56:23 +01:00
Tim Head
a8aee884e9
Add executable flag to verify script
2018-11-09 11:14:30 +01:00
Tim Head
28a11ab3de
Fix comment typos
2018-11-09 08:20:24 +01:00
Tim Head
fcab15b092
Add a test for nix using a binder subidrectory
2018-11-09 08:12:56 +01:00
Tim Head
d427fdfd52
Add test and support for binder sub-directory
2018-11-09 08:12:53 +01:00
Tim Head
046b744785
Inherit from BaseImage instead of BuildPack
2018-11-09 08:12:33 +01:00
nuest
490962e08d
split up Stencila tests to not run into timeouts on Travis CI
2018-11-06 21:27:18 +01:00
nuest
c2b17d599e
add tests pyjp vs. py for Stencila, make Stencila tests more specific
2018-11-05 21:10:13 +01:00
nuest
7e8450fcee
more detailed check for Stencila + Python test
2018-10-30 10:33:21 +01:00
nuest
24def164ed
verify R installation for r-markdown with Stencila
2018-10-29 20:52:05 +01:00
Chris Ostrouchov
1e3630cc10
Feature: Adding nix support for repo2docker
...
test url: https://gitlab.com/costrouc/nix-binder-example
2018-10-17 16:32:40 -04:00
Tim Head
b1dcbbe996
Adjust sub-directory tests after changing CWD behaviour
2018-10-16 13:46:00 +02:00
Tim Head
df7251dff6
Add context manager to change working dir
...
The context manager takes care of restoring the current working
directory when we are done. This is useful when the directory we set as
working directory stops existing.
2018-10-16 13:29:59 +02:00
Tim Head
4e1eff5f1b
Switch repository used to test sub-directory support
...
Using a repository that contains invlid instructions in the root of the
repository so that the test for subdirectory support will fail if
repo2docker doesn't actually switch into the requested sub-directory.
2018-10-16 13:28:08 +02:00
Tim Head
71903721d9
Add tests for local content provider
2018-10-16 08:04:13 +02:00
Tim Head
02b41948dd
Add tests for Git content provider
2018-10-16 08:04:13 +02:00
yuvipanda
18f11b8c1f
[WIP] base contentproviders commit
...
Very much a WIP, but some thougts on how we can support more
than just git.
2018-10-16 08:04:13 +02:00
Derek Ludwig
4f1dc9ce27
add comment
2018-10-15 10:59:16 -07:00
Derek Ludwig
405abf4a98
update tests
2018-10-15 10:58:00 -07:00
Derek Ludwig
2d2738b6db
Merge remote-tracking branch 'upstream/master'
2018-10-15 10:21:41 -07:00
Tim Head
86b32d511d
PEP8 styling
2018-10-12 16:33:16 +02:00
Tim Head
126e22d3e0
Check beginning of the string only for Julia
...
Only uses the beginning of the string to determine which version of
Python we use in Julia
2018-10-12 11:55:14 +02:00
Evert Rol
754edd01c4
Move test fixture to conftest.py
2018-10-08 15:36:45 +02:00
Evert Rol
871b0629a4
Remove dockerfile/editable test from main tests
...
The dockerfile test is used by test_editable, but should not be used
by the generated tests. Removing the verify script will prevent it
being run as part of the generated tests.
2018-10-08 15:36:45 +02:00
Evert Rol
c834e27686
Add test for host file creation in edit mode
...
This will test whether an externally (host) created file is seen
inside the container. This means starting the container, creating a
temporary file on the host, then running a simple verification command
(`ls`) to detect the file. Once the temporary file is removed on the
host side, it should be removed in the container as well.
2018-10-08 15:36:45 +02:00
Evert Rol
6847e71670
Add test for editable option
...
This test only verifies the option one way: a change inside the
container (a new file) is reflected in the local host repository
outside the container.
A further test where a modification at the host level is reflected in
the container, is still neede.
2018-10-08 15:36:45 +02:00
Tim Head
d95f7dc328
Merge pull request #420 from evertrol/clone-depth-1
...
Speed up cloning by using a depth of 1 if there is no refspec
2018-10-05 10:27:22 +02:00
Evert Rol
67cf0e6e8d
Add test for clone depth
...
Adds test for the use of a clone depth of 1 for cases where no refspec
is used. This relies on an external source (an existing test
repository), so may break easier.
2018-10-05 09:36:32 +02:00
Tim Head
32e5ef2a2b
Merge pull request #393 from NHDaly/julia_version_customization
...
Julia v1.0 support: Add option to specify julia version in REQUIRE
2018-10-01 14:59:01 +02:00
Nathan Daly
7fbb0f9964
Add JULIA_BINDDIR environment variable for julia v0.7+
...
Add tests for the ENVIRONMENT VARIABLES to the julia unit tests.
2018-09-30 22:33:40 -04:00
Derek Ludwig
19578801a1
Fix documentation
2018-09-27 09:07:27 -07:00
Nathan Daly
55b84234f2
Update comments in README
2018-09-27 11:32:40 -04:00
Tim Head
2ebc87b250
Merge pull request #405 from minrk/37
...
Support python 3.7
2018-09-27 10:35:10 +02:00
Derek Ludwig
3ef8b4e934
Cannot import from conftest
2018-09-26 15:33:52 -07:00
Derek Ludwig
2e63ec8704
add subdir test
2018-09-26 10:55:55 -07:00
Bastian Greshake Tzovaras
1f5469feb5
use getwd() to find path instead of "."
2018-09-23 22:15:43 +03:00
Bastian Greshake Tzovaras
49b393e9a2
chmod x verify DESCRIPTION
2018-09-23 01:06:34 +03:00
Bastian Greshake Tzovaras
4a1b504dd2
add description test to this repo
2018-09-20 16:11:11 +03:00
Bastian Greshake Tzovaras
56ca910a40
fix R DESCRIPTION installation
2018-09-18 16:10:12 +03:00
Min RK
ead7f4b000
test py37
2018-09-17 11:05:40 +02:00
Tim Head
6f624201b3
Make verify script executable
2018-09-15 10:05:25 +02:00
Tim Head
2fedda0828
Update postBuild+start test case
...
This test was missing a start script, added it. Updated the README to
explain what the test case was doing.
2018-09-15 09:28:19 +02:00
Tim Head
d9ed775dca
Make verify script executable for Python2 test
2018-09-15 09:28:19 +02:00
Tim Head
07b1b82f27
Update node tests to match versions actually installed
2018-09-15 09:28:19 +02:00
Tim Head
535e77a1d6
Switch order of local repository test collection
...
Feels more natural to first attempt building the image and then running
the verify script in it.
Changed the name of the two tests to make it easier to see which test
failed (verify or build).
2018-09-15 08:53:03 +02:00
Tim Head
16079b9981
Compare to empty string when start script test fails
2018-09-15 08:53:03 +02:00
Nathan Daly
29b15b325c
Update buildpacks/julia.py to support julia 0.7+!
...
Adds julia v0.7/v1.0 support to repo2docker.
2018-09-07 13:16:13 -04:00
Nathan Daly
5dd08daa42
Added test for manually setting the version number
2018-09-07 13:15:46 -04:00
Tim Head
a1df2ebda2
Make `verify` check both server and kernel environments
2018-08-18 13:01:18 +02:00
Tim Head
0ef79326e5
Escape environment variable when using Python string formatting
2018-08-18 12:50:31 +02:00
Tim Head
286f56c391
Split out tests, tweak docs, and a style change
...
This splits out the test for the launch script from the postBuild script
test. Makes some adjustments to the documentation of the launch script
functionality and applies some pythonista styling.
2018-08-15 17:10:53 +02:00
Joseph Hamman
da0ed1eee0
Merge branch 'master' of github.com:jupyter/repo2docker into feature/launch_script
2018-08-13 14:12:12 -06:00