summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Don't expect non-zero exit code when stopping a containerstop_test_updateJoffrey F2015-12-231-6/+0
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #863 from thomasboyt/fast-exclude-pathsAanand Prasad2015-12-162-6/+11
|\ | | | | Don't descend into ignored directories when building context
| * Improve get_paths performance by not descending into ignored directoriesThomas Boyt2015-12-082-6/+11
| | | | | | | | Signed-off-by: Thomas Boyt <thomas@ledgerx.com>
* | Treat 'index.docker.io' repo names as 'docker.io'Aanand Prasad2015-12-101-4/+27
| | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Refactor resolve_authconfig testsAanand Prasad2015-12-101-32/+51
| | | | | | | | | | | | | | The structure of the fake config dictionary was not reflective of what actual parsed config looks like. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Fix remove_volume return valueSumit Sahrawat2015-12-102-4/+2
| | | | | | | | Signed-off-by: Sumit Sahrawat <sumit.sahrawat.apm13@iitbhu.ac.in>
* | Allow providing options when creating networksSumit Sahrawat2015-12-101-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Following the spec: http://docs.docker.com/engine/reference/api/docker_remote_api_v1.21/#create-a-network I have added an Options argument to create_network. This opens up the possibility of creating isolated containers with no internet access programmatically. We require such facilities in https://github.com/jupyter/tmpnb/issues/187. Signed-off-by: Sumit Sahrawat <sumit.sahrawat.apm13@iitbhu.ac.in>
* | Merge pull request #868 from jstewmon/config-stop-signalJoffrey F2015-12-081-0/+19
|\ \ | |/ |/| added stop_signal to create container config
| * added stop_signal to create container configJonathan Stewmon2015-12-031-0/+19
| | | | | | | | Signed-off-by: Jonathan Stewmon <jstewmon@rmn.com>
* | incorporate feedbackDustin Falgout2015-12-042-16/+5
| | | | | | | | Signed-off-by: Dustin Falgout <dustin@falgout.us>
* | Use new methods to raise exceptions in create_host_config.Dustin Falgout2015-12-031-0/+17
| | | | | | | | | | | | | | Added tests for the new methods. Closes #840 Signed-off-by: Dustin Falgout <dustin@falgout.us>
* | allow interactive execTomas Tomecek2015-12-033-47/+79
| | | | | | | | Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* | tests,integration: ensure container is removed if start failsTomas Tomecek2015-12-021-1/+1
|/ | | | Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* fix typo filter param for `volumes`Nicolas Delaby2015-12-011-0/+12
| | | | | | https://docs.docker.com/engine/reference/api/docker_remote_api_v1.21/#list-volumes Signed-off-by: Nicolas Delaby <nicolas.delaby@lock8.me>
* Add tests for new cases covered by parse_repository_tag860-deprecate-resolve-repo-nameJoffrey F2015-11-241-14/+46
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Update auth.resolve_repository_nameJoffrey F2015-11-231-7/+28
| | | | | | | | | | | More relaxed version that matches the constraints imposed by the current version of the docker daemon. Few unit tests to verify the new cases. Client.pull was trying to set the tag value when it wasn't supposed to, fixed now. utils.parse_repository_tag is simpler and supports @sha... notation Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix integration-dind-ssl make task852-independent-integrationJoffrey F2015-11-181-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Move methods/classes used by all integration tests to helpers.pyJoffrey F2015-11-1810-178/+179
| | | | | | | Ensure setup_module is called at session level, making the test suite not order dependent. Test files can be invoked independently. Signed-off-by: Joffrey F <joffrey@docker.com>
* Wrong key name in stats testJoffrey F2015-11-181-1/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge branch 'oom-kill-disable-pr' of https://github.com/schu/docker-py into ↵Joffrey F2015-11-181-1/+8
|\ | | | | | | schu-oom-kill-disable-pr
| * create_host_config: allow setting oom_kill_disableMichael Schubert2015-11-101-1/+8
| | | | | | | | Signed-off-by: Michael Schubert <schu@schu.io>
* | Merge pull request #832 from aebm/masterJoffrey F2015-11-181-0/+30
|\ \ | | | | | | Fix #627
| * | Fix #627Alejandro Brito Monedero2015-10-291-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Docker-py couldn't pull private images if the account have non ascii chars in either user or password. It that case an exception ending with no auth credentials. Instead docker client (golang) don't suffer this issue. Also add a test to check the login or password even with non ascii char have a valid auth dictionary Signed-off-by: Alejandro Brito Monedero <abrito@alea-soluciones.com>
* | | Merge pull request #805 from sourcelair/enhancement/stats-no-streamDaniel Nephin2015-11-171-0/+31
|\ \ \ | | | | | | | | Add support for non-stream stats of containers
| * | | Add test for streaming statsAntonis Kalipetis2015-10-221-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | Also, fix typo in non-streaming stats. Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
| * | | Add integration test for stats no-streamAntonis Kalipetis2015-10-221-0/+17
| | | | | | | | | | | | | | | | Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
* | | | Merge pull request #834 from lots0logs/814-host-config-mem-swapDaniel Nephin2015-11-161-0/+32
|\ \ \ \ | | | | | | | | | | Add support for MemorySwappiness to client.create_host_config()
| * | | | Dont include mem_swappiness when testing use of str valuesDustin Falgout2015-11-051-2/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Dustin Falgout <dustin@falgout.us>
| * | | | Incorporates feedback from and closes #814Dustin Falgout2015-11-051-0/+33
| | |/ / | |/| | | | | | | | | | Signed-off-by: Dustin Falgout <dustin@falgout.us>
* | | | Merge pull request #851 from docker/remove-ci-transition-filesJoffrey F2015-11-122-17/+0
|\ \ \ \ | | | | | | | | | | Remove unused files
| * | | | Remove unused filesremove-ci-transition-filesJoffrey F2015-11-122-17/+0
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | | Merge pull request #850 from docker/mnowster-test-no-log-driver-specifiedJoffrey F2015-11-121-2/+0
|\ \ \ \ \ | |/ / / / |/| | | | Rebased #798
| * | | | Merge branch 'test-no-log-driver-specified' of ↵mnowster-test-no-log-driver-specifiedJoffrey F2015-11-121-2/+0
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/mnowster/docker-py into mnowster-test-no-log-driver-specified Signed-off-by: Joffrey F <joffrey@docker.com>
| | * | | | Remove skip testMazz Mosley2015-10-011-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It has been reported that the bug in docker has now been fixed so we can re-instate this test. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
* | | | | | Merge pull request #796 from v-boyko/feature/logs_sinceDaniel Nephin2015-11-121-0/+35
|\ \ \ \ \ \ | | | | | | | | | | | | | | Support the 'since' option in the 'containers/<id>/logs' endpoint (API upgrade)
| * \ \ \ \ \ Merge upstream branch 'master' into feature/logs_sinceViacheslav Boiko2015-11-0528-3256/+3903
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | Signed-off-by: Viacheslav Boiko <v.e.boyko@gmail.com>
| * | | | | | Support the 'since' option in the 'containers/<id>/logs' endpointViacheslav Boiko2015-10-021-0/+34
| | |_|/ / / | |/| | | | | | | | | | | | | | | | Signed-off-by: Viacheslav Boiko <v.e.boyko@gmail.com>
* | | | | | Merge pull request #848 from docker/845-fixJoffrey F2015-11-121-18/+31
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Client.logs(tail=0) now shows no past logs (expected behavior)
| * | | | | Client.logs(tail=0) now shows no past logs (expected behavior)Joffrey F2015-11-121-18/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add test confirming the new behavior. Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | | | Add build integration test checking stderr shows up in streamJoffrey F2015-11-111-0/+19
|/ / / / / | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | | Update buildargs test to avoid race condition838-updateJoffrey F2015-11-101-2/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | | Support 'buildargs' parameter for docker 1.9.Leonty2015-11-101-0/+15
| |_|_|/ |/| | | | | | | | | | | Signed-off-by: Leonty Balovnev <tigreavecdesailes@gmail.com>
* | | | Bump default API version to 1.21bump_api_version_121Joffrey F2015-11-041-14/+17
| |/ / |/| | | | | | | | | | | | | | | | | Update Makefile to run tests against dind 1.9.0 Update network tests to account for latest API changes Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Merge pull request #830 from docker/fix-links-create-testJoffrey F2015-10-281-1/+1
|\ \ \ | | | | | | | | Use network_mode=bridge when testing links
| * | | Use network_mode=bridge when testing linksJoffrey F2015-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Links are only compatible with network mode bridge. New versions of docker only create env entries when network mode is properly set. Signed-off-by: Joffrey F <joffrey@docker.com>
* | | | Merge pull request #827 from coreypobrien/lessbindingJoffrey F2015-10-281-45/+53
|\ \ \ \ | |/ / / |/| | | Move container volume bind tests to their own class
| * | | Move container volume bind tests to their own classCorey O'Brien2015-10-271-45/+53
| | | | | | | | | | | | | | | | Signed-off-by: Corey O'Brien <coreypobrien@gmail.com>
* | | | Fix py3.2 test failure and unicode behaviorJoffrey F2015-10-271-5/+9
|/ / / | | | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | | Merge pull request #825 from aebm/masterJoffrey F2015-10-271-0/+29
|\ \ \ | | | | | | | | Fix auth.load_config bug calling parse_auth
| * | | Fix auth.load_config bug calling parse_authAlejandro Brito Monedero2015-10-271-0/+29
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | When load_config found and auths section it didn't call parse_auth only with the auths section. Instead it called parse_auth with all the configuration. There is also a test to check this case Signed-off-by: Alejandro Brito Monedero <alejandro.monedero@gmail.com>