Joffrey F
311ae711d4
Merge pull request #825 from aebm/master
...
Fix auth.load_config bug calling parse_auth
2015-10-27 15:57:00 +01:00
Alejandro Brito Monedero
22da6ace7a
Fix auth.load_config bug calling parse_auth
...
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>
2015-10-27 09:03:28 +01:00
Daniel Nephin
417c80057b
Support unicode commands.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-10-26 17:22:14 -04:00
Joffrey F
93a296fb04
Reorganize test directories
...
More clearly separate unit and integration tests
Allow splitting into multiple files
Cleaner
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-21 16:02:09 -07:00
Joffrey F
0258c6e622
Update `Client.create_volume` to use new endpoint
...
New API endpoint is POST /volumes/create (previously just /volumes)
Since the feature is yet unreleased (RC), no fallback strategy is
implemented.
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-21 13:51:09 -07:00
Joffrey F
51d2125c59
Pull correct version of busybox in integration tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-14 17:37:45 -07:00
Stephen Moore
7f3692ceed
Fix attach method over SSL connections
...
Signed-off-by: Stephen Moore <stephen@delfick.com>
2015-10-14 17:29:31 -07:00
Joffrey F
b1f25317de
Use DOCKER_CONFIG environment variable to look up auth config
...
When provided, default paths are ignored.
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-14 17:26:50 -07:00
Joffrey F
a3a345e2f6
Use url-safe base64 when encoding auth header
...
+ regression test
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-14 17:26:50 -07:00
Joffrey F
147df4d21f
put/get archive implementation
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-14 17:26:50 -07:00
Joffrey F
55a0783f4b
Fix tests
...
Skips were masking some errors / compatibility issues
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-14 17:26:50 -07:00
Aanand Prasad
53589e5f0a
Implement methods for managing networks
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-10-14 17:26:50 -07:00
Joffrey F
a1393ee8ac
Don't break when volume binds contain unicode characters
...
Also includes a few unit tests for utils.convert_volume_binds
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-14 17:26:50 -07:00
Paul Bellamy
19291ee20d
Fix race condition in integration regression tests
...
`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>
2015-10-01 14:05:50 +01:00
Joffrey F
7884ab9fe2
Merge pull request #789 from PierreF/top_ps_args
...
Allow to specify ps_args when listing processes
2015-09-28 14:36:08 -07:00
Joffrey F
d0ccc2e261
Support explicit protocol in Client.port
...
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>
2015-09-28 12:06:10 -07:00
Pierre Fersing
c1577606be
Added test for "top" function
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2015-09-28 11:59:25 +02:00
Aanand Prasad
29b12cf007
_url can take arbitrarily many arguments
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-25 14:25:00 -07:00
Joffrey F
d89b2a01f0
cpu_quota and cpu_period unit tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-24 10:08:02 -07:00
Joffrey F
48d72f6703
Bump default API version
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-23 11:35:57 -07:00
Joffrey F
da2b797323
Improve volume bindings integration test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-22 14:30:03 -07:00
Joffrey F
d6a86e1d69
Fix volumes tests for API version >= 1.20
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-22 14:17:19 -07:00
Aanand Prasad
eec0465832
Make volume binds tests work on any host
...
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>
2015-09-22 11:34:49 -07:00
Aanand Prasad
3d6c91b469
Only pull busybox in integration tests if we don't already have it
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-22 14:25:28 +02:00
Joffrey F
ef0c373f14
Pin busybox version to use in integration tests
...
Removed obsolete non-streaming build test
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-21 15:34:10 -07:00
Joffrey F
8d32631635
Improve volume cleanup logic
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-16 12:55:49 -07:00
Joffrey F
acd5e634ff
Generic skip decorator for low API version accessible to all tests
...
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>
2015-09-16 12:55:13 -07:00
Joffrey F
05267f63d3
Modify unit tests suite to allow mock routes to optionally be method-aware
...
Added mock API routes for volumes API
Add unit tests and integration tests for volume API
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-16 12:54:26 -07:00
Joffrey F
1b798a2901
GroupAdd tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-15 01:58:06 +02:00
Maxime Petazzoni
e5fbc42dcb
Merge pull request #763 from docker/api_splitup
...
API splitup
2015-09-13 08:47:07 -07:00
Joffrey F
c735cc69a0
Split different APIs into several mixins for clarity / easier maintenance
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-11 16:19:29 -07:00
Joffrey F
7e3cdfb3b1
Fixed regression test in py3 environments
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-10 11:37:51 -07:00
Joffrey F
de5aab87b4
Merge pull request #753 from docker/715-user-int-uid
...
Always send a string for the user param in create_container
2015-09-10 10:37:05 -07:00
Joffrey F
b1c2475698
Add hello-world to temp images in pull tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-09 17:10:04 -07:00
Joffrey F
1fb2db4951
Make integration tests more CI-friendly.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-09 17:06:34 -07:00
Joffrey F
fa3082b6cd
Update integration-dind task
2015-09-09 14:49:58 -07:00
Joffrey F
abaf346b49
Make running integration tests with dind possible
2015-09-09 14:49:36 -07:00
Joffrey F
7dce129180
Merge pull request #754 from aanand/default-to-tcp-url-on-windows
...
Default to 127.0.0.1:2375 on Windows
2015-09-01 16:36:32 -07:00
Aanand Prasad
1362938f03
Default to 127.0.0.1:2375 on Windows
...
Following the logic of the Docker client.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-01 16:28:05 -07:00
Joffrey F
1e916a1e83
Test UID validity
2015-08-31 18:35:32 -07:00
Joffrey F
09defa66ba
Always send a string for the user param in create_container
2015-08-31 16:06:52 -07:00
Joffrey F
3d884f9a3c
Test URL construction
2015-08-31 15:01:40 -07:00
Joffrey F
33acb9d2e0
Test has been fixed, remove skip decorator
2015-08-31 13:13:46 -07:00
Joffrey F
ad608baaaf
Merge pull request #747 from aanand/integration-test-fixes
...
Integration test improvements
2015-08-31 13:07:02 -07:00
Aanand Prasad
6c0f7187a8
Integration test improvements
...
- 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>
2015-08-31 12:06:41 -07:00
Joffrey F
9b37120167
Merge pull request #742 from aanand/fix-dockerignore-integration-test
...
Fix .dockerignore integration test
2015-08-27 11:01:47 -07:00
Joffrey F
63df0b9ab3
Merge branch 'master' of github.com:docker/docker-py
2015-08-26 17:02:55 -07:00
Joffrey F
c56c9faacd
Merge branch 'default-cert-path' of https://github.com/aanand/docker-py into aanand-default-cert-path
...
Conflicts:
tests/utils_test.py
2015-08-26 17:00:33 -07:00
Joffrey F
db1a93fd27
Merge pull request #662 from stevenewey/exec_create_user
...
Exec create user
2015-08-26 15:36:47 -07:00
Joffrey F
ddf879cc4c
Merge pull request #721 from aanand/pathspec
...
Better support for .dockerignore
2015-08-26 14:25:09 -07:00