summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Support unspecified protocol in base_url when using TLS894-docker_host_envJoffrey F2016-01-281-0/+5
| | | | | | (assume HTTPS) Signed-off-by: Joffrey F <joffrey@docker.com>
* Raise exceptions for API errors on network connect/disconnectAanand Prasad2016-01-251-0/+6
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Support links when creating containers or connecting to networksAanand Prasad2016-01-203-0/+66
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Merge pull request #880 from docker/813-parse-float-bytesJoffrey F2016-01-181-5/+20
|\ | | | | Handle 64-bit integer values in parse_bytes
| * parse_bytes: Add ability to handle 64-bit integers in py2Joffrey F2016-01-181-5/+20
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Add HttpHeaders support in load_configPavel Kravchenko2016-01-181-0/+24
|/ | | | Signed-off-by: Pavel Kravchenko <kpavel@il.ibm.com>
* Improve host devices supportJoffrey F2016-01-181-1/+60
| | | | | | | | Add unit tests for utils.parse_devices Rewrite documentation Support dict and string format for device declaration Signed-off-by: Joffrey F <joffrey@docker.com>
* Normalise/fix networking API JSON keysAanand Prasad2016-01-183-17/+58
| | | | | | | - Use CamelCase - `auxaddresses` -> `AuxiliaryAddresses` Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Implement support for network-scoped aliasesAanand Prasad2016-01-144-4/+97
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Merge pull request #818 from rmb938/patch-1Aanand Prasad2016-01-052-1/+40
|\ | | | | allow custom ipam options when creating networks
| * allow custom ipam options when creating networksRyan Belgrave2016-01-042-1/+40
| | | | | | | | Signed-off-by: Ryan Belgrave <rmb1993@gmail.com>
* | Update docker network inspect testwenchma2015-12-301-9/+5
|/ | | | | | | | This is based on https://github.com/docker/docker/pull/18928 Related to docker/docker#18626 Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
* 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)