summaryrefslogtreecommitdiff
path: root/tests/integration/api_swarm_test.py
Commit message (Collapse)AuthorAgeFilesLines
* xfail test_init_swarm_data_path_addrSebastiaan van Stijn2019-07-121-0/+1
| | | | | | | | | | | This test can fail if `eth0` has multiple IP addresses; E docker.errors.APIError: 400 Client Error: Bad Request ("interface eth0 has more than one IPv6 address (2001:db8:1::242:ac11:2 and fe80::42:acff:fe11:2)") Which is not a failiure, but depends on the environment that the test is run in. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Add support for rotate_manager_unlock_keyHannes Ljungberg2019-05-011-0/+13
| | | | Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
* Merge pull request #2296 from hannseman/swarm-init-responseJoffrey F2019-05-011-1/+3
|\ | | | | Return node id on swarm init
| * Return node id on swarm initHannes Ljungberg2019-05-011-1/+3
| | | | | | | | Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
* | Add swarm support for data_addr_pathHannes Ljungberg2019-05-011-0/+4
|/ | | | Signed-off-by: Hannes Ljungberg <hannes@5monkeys.se>
* Split monolithic integration tests into individual tests.Barry Shapira2019-03-221-24/+25
| | | | | | | | | The integration tests require restarting the swarm once for each test. I had done so manually with self.init_swarm(force_new_cluster=True) but that wasn't resetting the swarm state correctly. The usual test teardown procedure cleans up correctly. Signed-off-by: Barry Shapira <barry@whiterabbit.ai>
* Check API version before setting swarm addr pool.Barry Shapira2019-03-221-9/+14
| | | | | | | | | | | Also corrected a documentation error: the default API version from constants is currently 1.35, not 1.30 as was sometimes listed. Signed-off-by: Barry Shapira <barry@whiterabbit.ai> Removed accidental whitespace. Signed-off-by: Barry Shapira <barry@whiterabbit.ai>
* Added arguments to creeate a swarm with a custom address pool and subnet size.Barry Shapira2019-03-221-0/+23
| | | | Signed-off-by: Barry Shapira <barry@whiterabbit.ai>
* Update tests to properly dispose of client instances in tearDownJoffrey F2018-11-011-2/+1
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Merge pull request #1798 from docker/unlock_swarm_supportJoffrey F2017-11-201-0/+11
|\ | | | | Unlock swarm support
| * Add unlock methods to Swarm modelunlock_swarm_supportJoffrey F2017-11-071-5/+6
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Add unlock_swarm and get_unlock_key to APIClientJoffrey F2017-11-071-0/+10
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
| * Update SwarmSpec to include new parametersJoffrey F2017-11-031-0/+38
| | | | | | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* | Remove test_update_swarm_nameSebastiaan van Stijn2017-11-141-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | Docker currently only supports the "default" cluster in Swarm-mode, and an upcoming SwarmKit release will produce an error if the name of the cluster is updated, causing the test to fail. Given that renaming the cluster is not supported, this patch removes the test Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* | Update SwarmSpec to include new parametersJoffrey F2017-11-071-0/+38
|/ | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* update swarm remove test status code from 500 to >= 400allencloud2017-05-181-1/+1
| | | | Signed-off-by: allencloud <allen.sun@daocloud.io>
* update docker-py test status code from 500 to 400allencloud2017-05-131-1/+1
| | | | Signed-off-by: allencloud <allen.sun@daocloud.io>
* Add support for force_update in TaskTemplateJoffrey F2017-01-271-3/+3
| | | | | | Add min version checks in create_service and update_service Signed-off-by: Joffrey F <joffrey@docker.com>
* Prevent Swarm address conflictsjenkinsfileJoffrey F2016-12-081-15/+13
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Implement swarm node removalremove_nodeJoffrey F2016-12-071-0/+17
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Split out base integration test for APIClientBen Firshman2016-11-221-2/+2
| | | | | | So the cleanup stuff can be reused for model tests. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Rename Client to APIClientBen Firshman2016-11-221-0/+161
Signed-off-by: Ben Firshman <ben@firshman.co.uk>