summaryrefslogtreecommitdiff
path: root/tests/unit/fake_api.py
Commit message (Collapse)AuthorAgeFilesLines
* Workaround requests resolving our unix socket URL on macosx.Matthieu Nottale2018-02-261-1/+1
| | | | Signed-off-by: Matthieu Nottale <matthieu.nottale@docker.com>
* Refuse API version < 1.21 ; Remove associated code pathscleanup_deprecatedJoffrey F2018-01-311-12/+27
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1727 from mbelang/join-swarn-default-listen-addressJoffrey F2017-12-181-0/+6
|\ | | | | Add join_swarm default listen address
| * Add join_swarm default listen addressMaxime Belanger2017-08-291-0/+6
| | | | | | | | | | | | | | | | Since the docker CLI adds a default listen address (0.0.0.0:2377) when joining a node to the swarm, the docker-py api will support the same behavior to easy configuration. Signed-off-by: Maxime Belanger <maxime.b.belanger@gmail.com>
| * client.containers.run returns None if none of json-file or journald logging ↵Artem Bolshakov2017-08-071-0/+6
| | | | | | | | | | | | drivers used Signed-off-by: Artem Bolshakov <either.free@gmail.com>
* | Do not interrupt streaming when encountering 0-length framesJoffrey F2017-11-071-1/+3
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | client.containers.run returns None if none of json-file or journald logging ↵Artem Bolshakov2017-08-171-0/+6
|/ | | | | | drivers used Signed-off-by: Artem Bolshakov <either.free@gmail.com>
* Adds a 'labels' property to the image modelFrank Sachsenheim2017-04-151-0/+1
| | | | Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
* Adds a 'labels' property to the container modelFrank Sachsenheim2017-04-151-1/+1
| | | | | | | | The Docker API seems to respond with a 'null' value for the 'Labels' attribute from containers that were created with older Docker versions. An empty dictionary is returned in this case. Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
* Scope is added in volume after docker 1.12徐俊杰2016-12-081-3/+6
| | | | | | | | | | | | | | | | | | | Signed-off-by: pacoxu <paco.xu@daocloud.io> add ut test for volume scope and no specified name create Signed-off-by: Paco Xu <paco.xu@daocloud.io> try to fix ut failure of volume creation Signed-off-by: Paco Xu <paco.xu@daocloud.io> try to fix ut failure of volume creation Signed-off-by: Paco Xu <paco.xu@daocloud.io> Scope is added in volume after docker 1.12 Signed-off-by: pacoxu <paco.xu@daocloud.io> Scope is added in volume after docker 1.12 Signed-off-by: pacoxu <paco.xu@daocloud.io>
* Add new user-focused APIBen Firshman2016-11-221-5/+98
| | | | | | See #1086 Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Merge pull request #1230 from LabattFoodService/updateNodeJoffrey F2016-11-071-0/+9
|\ | | | | enable setting of node labels #1225
| * enable setting of node labels #1225Nathan Shirlberg2016-09-271-0/+9
| | | | | | | | | | | | | | | | Added update_node function to enable setting labels on nodes. This exposes the Update a Node function from the Docker API and should enable promoting/demoting manager nodes inside a swarm. Signed-off-by: Nathan Shirlberg <nshirlberg@labattfood.com>
* | Update tests to avoid failures on Windows platformsJoffrey F2016-10-141-0/+3
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix unit test which doesn't do anythingBen Firshman2016-09-071-31/+0
| | | | | | | It also overrode the fake API inspect endpoint with a broken response. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Fix licensesBen Firshman2016-09-051-14/+0
| | | | | | | * Complete main LICENSE * Remove unnecessary licenses from individual files Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* volumes,create: support adding labelsTomas Tomecek2016-07-131-1/+4
| | | | | | Fixes #1102 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
* Unit test for Client.update_container methodJoffrey F2016-02-231-0/+7
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Reorganize test directoriesreorganize_testsJoffrey F2015-10-211-0/+542
More clearly separate unit and integration tests Allow splitting into multiple files Cleaner Signed-off-by: Joffrey F <joffrey@docker.com>