Commit Graph

1253 Commits

Author SHA1 Message Date
Joffrey F 0932ac230b Add devices param to the hostconfig documentation
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-14 17:26:50 -07:00
Joffrey F 9697923bca Update changelog and bump version to 1.5.0
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 6a66a2248d Docs: Remove float from valid cpu_shares types
Fixes #775

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
Joffrey F d141976303 Add minimum_version decorators on NetworkApi methods
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
mnowster 1c97c691bf Merge pull request #797 from paulbellamy/test-race-condition
Fix race condition in integration regression tests
2015-10-01 15:39:47 +01:00
mnowster 81bf8e6809 Merge pull request #790 from aanand/shorter-stack-traces
Shorter stack traces in tests
2015-10-01 14:34:48 +01: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 f51ae4b309 Merge pull request #793 from docker/792-fix-ports-command
Support explicit protocol in Client.port
2015-09-28 14:35:47 -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
Joffrey F 5e331a55a8 Merge branch 'aanand-url-variable-args' 2015-09-25 14:25:20 -07: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
Aanand Prasad 95f42d1631 Shorter pytest stack traces
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-25 20:17:25 +02:00
Aanand Prasad b2c4228bb8 Move pytest default options into pytest.ini
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-25 20:16:57 +02:00
Pierre Fersing 2d4a71df2e Allow to specify ps_args when listing processes
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2015-09-25 16:58:27 +02:00
Aanand Prasad 26e22bbd39 Merge pull request #770 from docker/cpu_cfs_opts_support
Support for cpu_quota and cpu_period
2015-09-25 09:52:38 +02:00
Joffrey F 3c5185c199 Check API version when using cpu_period and cpu_quota
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-24 10:08:02 -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 3ee30ed5e4 Add support for cpu_quota and cpu_period in host_config
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-24 10:08:02 -07:00
Joffrey F 02f330d8dc Merge pull request #765 from docker/api_1.20_support
Support API version 1.20
2015-09-23 15:32:00 -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 4f992904f0 Merge pull request #786 from ibuildthecloud/missing-api
Add docker.api to setup packages
2015-09-22 16:29:09 -07:00
Darren Shepherd 10055eb9dd Add docker.api to setup packages
Signed-off-by: Darren Shepherd <darren@rancher.com>
2015-09-22 16:08:33 -07:00
Joffrey F 4475310eea Merge pull request #777 from rutsky/patch-2
specify default value of stream parameter of exec_start()
2015-09-22 15:02:24 -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
Joffrey F 8c270dfdf0 Merge pull request #780 from docker/contributing
[WIP] Contributing guidelines
2015-09-22 14:06:20 -07:00
Joffrey F 50a33542c8 Merge branch 'aanand-integration-test-fixes' 2015-09-22 11:35: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 72b8a295db Amend version of contributing.md from feedback
- Add OS info request in reporting issues section
- Add PR subsection about clear, logical commits
- Add section describing how to set up a dev environment

Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-21 15:35:29 -07:00
Joffrey F c4153c9c87 Add flake8 make task
Fix 'make test' task to run a complete series of tests

Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-21 15:35:28 -07:00
Joffrey F d13ab45bb1 Contributing document draft
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-21 15:35:28 -07: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 b3ccdfbf4f Merge pull request #781 from docker/coverage-pin
Force coverage dependency to a version supporting py3.2
2015-09-21 14:57:27 -07:00
Joffrey F 946f176d70 Force coverage dependency to a version supporting py3.2
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-21 14:30:44 -07:00
Joffrey F dd36fae131 Merge pull request #772 from rutsky/patch-1
add missing dots at ends of command descriptions
2015-09-18 17:12:52 -07:00
Joffrey F 9d1f95715a Merge pull request #779 from rutsky/patch-4
fix network_mode 'none' value
2015-09-18 17:12:42 -07:00
Vladimir Rutsky 46dd94d1f3 fix network_mode 'none' value
Signed-off-by: Vladimir Rutsky <vladimir@rutsky.org>
2015-09-18 02:58:04 +03:00
Vladimir Rutsky 74a3242b80 specify default value of stream parameter of exec_start()
Signed-off-by: Vladimir Rutsky <vladimir@rutsky.org>
2015-09-18 02:20:09 +03:00
Joffrey F e7ad536168 Merge pull request #764 from docker/744-volume-api-support
Volume API support
2015-09-16 13:55:25 -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 ea9e13ff2b Detail which exception is thrown by remove_volume
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