summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Modify unit tests suite to allow mock routes to optionally be method-awareJoffrey F2015-09-163-44/+334
| | | | | | | 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>
* Merge pull request #763 from docker/api_splitupMaxime Petazzoni2015-09-131-2/+2
|\ | | | | API splitup
| * Split different APIs into several mixins for clarity / easier maintenanceJoffrey F2015-09-111-2/+2
| | | | | | | | 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>
* | Update integration-dind task756-containerized-integrationJoffrey F2015-09-091-18/+0
| |
* | Make running integration tests with dind possibleJoffrey F2015-09-093-5/+28
| |
* | Merge pull request #754 from aanand/default-to-tcp-url-on-windowsJoffrey F2015-09-011-4/+12
|\ \ | | | | | | Default to 127.0.0.1:2375 on Windows
| * | Default to 127.0.0.1:2375 on WindowsAanand Prasad2015-09-011-4/+12
| |/ | | | | | | | | | | Following the logic of the Docker client. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | Test URL construction697-stricter-url-constructionJoffrey F2015-08-311-0/+22
|/
* 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 branch 'master' of github.com:docker/docker-pyJoffrey F2015-08-261-0/+34
|\ \
| * \ 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-124-83/+267
| | |\ \
| | * | | 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
| | | | |
* | | | | Merge branch 'default-cert-path' of https://github.com/aanand/docker-py into ↵Joffrey F2015-08-261-4/+34
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | aanand-default-cert-path Conflicts: tests/utils_test.py
| * | | | Default to ~/.docker if DOCKER_CERT_PATH is emptyAanand Prasad2015-07-211-4/+36
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | | | Merge pull request #721 from aanand/pathspecJoffrey F2015-08-263-20/+202
|\ \ \ \ \ | | | | | | | | | | | | Better support for .dockerignore
| * | | | | Better support for .dockerignoreAanand Prasad2015-08-263-20/+202
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Support all basic pattern forms: file, directory, *, ?, ! - Fix handling of wildcard patterns and subdirectories - `*/a.py` should match `foo/a.py`, but not `foo/bar/a.py` - Fix handling of directory patterns with a trailing slash - make sure they're handled equivalently to those without one - Fix handling of custom Dockerfiles - make sure they go in the tarball Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | | | Don't remove LogConfig.types shortcutJoffrey F2015-08-261-2/+6
| | | | |
* | | | | 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-262-14/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge branch 'pytest' of https://github.com/aanand/docker-py into aanand-pytestJoffrey F2015-08-253-230/+108
|\ \ \ \
| * | | | Use pytest helpers to assert exceptions and deprecated warningsAanand Prasad2015-08-252-218/+104
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
| * | | | Run tests with pytestAanand Prasad2015-08-253-12/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | | | Merge pull request #735 from aanand/test-network-mode-versionJoffrey F2015-08-251-5/+7
|\ \ \ \ \ | | | | | | | | | | | | Explicitly test NetworkMode logic in create_host_config
| * | | | | Explicitly test NetworkMode logic in create_host_configAanand Prasad2015-08-251-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | | | | Merge pull request #736 from aanand/propagate-exceptions-in-testsJoffrey F2015-08-251-661/+347
|\ \ \ \ \ \ | | |/ / / / | |/| | | | Stop catching Exception in tests where it isn't expected
| * | | | | Stop catching Exception in tests where it isn't expectedAanand Prasad2015-08-251-661/+347
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | The test runner will report on the exception anyway, so it's redundant. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
* | | | | Call Client.create_host_config because the old call is deprecatedBryan Boreham2015-08-251-12/+12
|/ / / / | | | | | | | | | | | | Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
* | | | Merge pull request #732 from docker/version-dependent-hostconfigAanand Prasad2015-08-252-49/+63
|\ \ \ \ | | | | | | | | | | Version dependent hostconfig
| * | | | Adapt tests to new create_host_config usageJoffrey F2015-08-242-49/+63
| | | | |
* | | | | Split the entrypoint string to shell-like syntax.Colin Huang2015-08-251-2/+2
|/ / / /
* | | | Added support for cgroup parentMohit Soni2015-08-241-0/+18
| | | | | | | | | | | | | | | | Clean up cgroup_parent usage
* | | | Fixed #726 issue where split_port was checking `len(None)`Mark Adams2015-08-191-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | - Fixed #726 by adding a check for None in split_port - Also switched to using a _raise_invalid_port() function to replace multiple slightly differing ValueErrors for invalid port
* | | | Added full path parse_host unit testallow-path-in-hostJoffrey F2015-08-171-1/+4
| |_|/ |/| |
* | | Merge pull request #698 from docker/jhowardmsft-14530-netmodeJoffrey F2015-08-102-11/+25
|\ \ \ | | | | | | | | `network_mode` now necessary in `host_config`
| * | | Fixed empty_host_config testJoffrey F2015-07-291-1/+1
| | | |