summaryrefslogtreecommitdiff
path: root/tests/integration_test.py
Commit message (Collapse)AuthorAgeFilesLines
* put/get archive implementationJoffrey F2015-10-081-0/+85
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix testsJoffrey F2015-10-081-3/+2
| | | | | | Skips were masking some errors / compatibility issues Signed-off-by: Joffrey F <joffrey@docker.com>
* Implement methods for managing networksAanand Prasad2015-10-051-0/+104
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Fix race condition in integration regression testsPaul Bellamy2015-10-011-1/+1
| | | | | | | | `docker port` and inspect do not return ports for containers which are not running. Because the container command is `true`, sometimes that exits before the inspect is called. Signed-off-by: Paul Bellamy <paul.a.bellamy@gmail.com>
* Merge pull request #789 from PierreF/top_ps_argsJoffrey F2015-09-281-0/+38
|\ | | | | Allow to specify ps_args when listing processes
| * Added test for "top" functionPierre Fersing2015-09-281-0/+38
| | | | | | | | Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
* | Support explicit protocol in Client.port792-fix-ports-commandJoffrey F2015-09-281-0/+25
|/ | | | | | | | | User can now specify a protocol in Client.port using the port/proto syntax. Default port is now TCP instead of UDP (to match the behavior of `docker port`) when no proto is specified. Regression test Signed-off-by: Joffrey F <joffrey@docker.com>
* Bump default API versionapi_1.20_supportJoffrey F2015-09-231-1/+0
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Improve volume bindings integration testJoffrey F2015-09-221-21/+7
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix volumes tests for API version >= 1.20Joffrey F2015-09-221-13/+38
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Make volume binds tests work on any hostAanand Prasad2015-09-221-74/+76
| | | | | | | | | | | Instead of creating the test directory directly on the host, create it by starting a container with the directory bind-mounted, so that it doesn't matter whether the daemon is local, in a VM or remote. This removes the need to make /tmp a volume in the test container, and to share it with the dind container. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Only pull busybox in integration tests if we don't already have itAanand Prasad2015-09-221-2/+6
| | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* Pin busybox version to use in integration testsJoffrey F2015-09-211-97/+65
| | | | | | Removed obsolete non-streaming build test Signed-off-by: Joffrey F <joffrey@docker.com>
* Improve volume cleanup logic744-volume-api-supportJoffrey F2015-09-161-4/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Generic skip decorator for low API version accessible to all testsJoffrey F2015-09-161-8/+8
| | | | | | | | | | Add simpler version comparison functions Add decorator to enforce minimum version in API methods Fix utils imports Add minimum_version decorators on API methods that needed it GroupAdd test requires API version >= 1.20 Signed-off-by: Joffrey F <joffrey@docker.com>
* Modify unit tests suite to allow mock routes to optionally be method-awareJoffrey F2015-09-161-1/+69
| | | | | | | Added mock API routes for volumes API Add unit tests and integration tests for volume API Signed-off-by: Joffrey F <joffrey@docker.com>
* GroupAdd testsJoffrey F2015-09-151-0/+35
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fixed regression test in py3 environments1.4.0-releaseJoffrey F2015-09-101-1/+4
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #753 from docker/715-user-int-uidJoffrey F2015-09-101-0/+6
|\ | | | | Always send a string for the user param in create_container
| * Test UID validity715-user-int-uidJoffrey F2015-08-311-1/+4
| |
| * Always send a string for the user param in create_containerJoffrey F2015-08-311-0/+3
| |
* | Add hello-world to temp images in pull testsci-fixesJoffrey F2015-09-091-0/+2
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Make integration tests more CI-friendly.Joffrey F2015-09-091-16/+10
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Make running integration tests with dind possibleJoffrey F2015-09-091-3/+4
|/
* Test has been fixed, remove skip decoratorJoffrey F2015-08-311-1/+0
|
* Merge pull request #747 from aanand/integration-test-fixesJoffrey F2015-08-311-45/+79
|\ | | | | Integration test improvements
| * Integration test improvementsAanand Prasad2015-08-311-45/+79
| | | | | | | | | | | | | | | | | | | | | | - Fix the setup step (the process has changed now that we're using pytest) - Skip tests that are unstable - Make better use of build caching Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Merge pull request #742 from aanand/fix-dockerignore-integration-testJoffrey F2015-08-271-15/+21
|\ \ | |/ |/| Fix .dockerignore integration test
| * Fix .dockerignore integration testAanand Prasad2015-08-261-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | - There was a typo (".dockerginore"), which meant that the exclusion of the .dockerignore file itself wasn't being tested. - Some of the file names were non-descriptive. - The test was inspecting the output of the build process, rather than running 'ls' in a new container, which meant it was full of extra output, and would fail when there was a cache hit. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Merge pull request #662 from stevenewey/exec_create_userJoffrey F2015-08-261-0/+34
|\ \ | | | | | | Exec create user
| * \ Merge branch 'master' into exec_create_userStephen Newey2015-08-121-17/+37
| |\ \
| * | | Add test for root user as default exec_create behaviourStephen Newey2015-07-021-0/+17
| | | |
| * | | Add support for user on exec_create.Stephen Newey2015-06-301-0/+17
| | | |
* | | | Test valid no args for log configMazz Mosley2015-08-261-2/+41
| | | | | | | | | | | | | | | | Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
* | | | Remove validation of supported log driversMazz Mosley2015-08-261-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By having this hardcoded list of log drivers, it is a bottleneck to us supporting more log drivers. The daemon already validates if a log driver is valid or not, so rather than duplicating that validation, let's pass the log_driver along. This allows support for new/more log drivers as they become supported in docker without having to wait for both docker-py and docker-compose to support them. Keeping the current list of log driver types for backwards compatibility. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
* | | | Fix log driver integration testMazz Mosley2015-08-261-20/+15
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By using `json-file` as the use case we can run this without needing to be on a machine with syslog installed. Even if syslog was installed, this test was still failing as the `log_opt` of 'key1' is an invalid option. This test is slightly different style to the others, it hopefully includes an example of how to space out tests for increased readability, we construct our tests in 3 phases(generally) and include a space imbetween them: - setup - perform action - assertions Expanded variable names is important for readability/clarity. Also reduced the number of assertions to focus on the logic we're testing. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
* | | Ensure Makefile still run tests properly / tests are run in container as ↵Joffrey F2015-08-251-1/+1
| | | | | | | | | | | | expected
* | | Call Client.create_host_config because the old call is deprecatedBryan Boreham2015-08-251-12/+12
| |/ |/| | | | | Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
* | nit: parenthesis alignmentJoffrey F2015-07-291-6/+12
| |
* | Add netmode (required by docker)John Howard2015-07-281-10/+18
| | | | | | | | Signed-off-by: John Howard <jhoward@microsoft.com>
* | Fix integration tests.Paul Bellamy2015-07-211-2/+2
| | | | | | | | | | | | Forgot to update them in 33e1a58 Signed-off-by: Paul Bellamy <paul.a.bellamy@gmail.com>
* | Update all client instances in integration tests to use DOCKER_HOSTPhil Estes2015-07-141-3/+4
| | | | | | | | | | | | | | | | | | | | | | In testing Docker master with the latest docker-py release, a few new tests exist which don't set the base_url, which is not the default unix socket location when Docker's integration tests are running. Also, there is no guarantee syslog can be reached from a test container so I wrapped that test with the NOT_ON_HOST skip logic. Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
* | Fix Unix socket adapter bug with double slash in path + regression testfix_647Joffrey F2015-06-301-2/+7
|/
* Fix stop timeout bugfix_649Joffrey F2015-06-241-0/+5
|
* Fixed integration testJoffrey F2015-06-181-1/+1
|
* Added deprecation warning for host config in startJoffrey F2015-05-081-282/+0
|
* Fixes for #586Joffrey F2015-05-061-0/+2
|
* Exec API testsJoffrey F2015-04-271-6/+31
|
* Added tests for log_config paramlogconfig-supportJoffrey F2015-04-241-1/+26
|
* Handle ID truncate on client side in containers list (and changed default ↵client_side_truncJoffrey F2015-04-221-4/+8
| | | | from True to False)