summaryrefslogtreecommitdiff
path: root/test/integration/targets/docker_swarm
Commit message (Collapse)AuthorAgeFilesLines
* docker modules: make sure everything works with older docker-py versions ↵Felix Fontein2019-04-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | (#55258) * General test improvements. * Adjust tests to older docker-py versions. * docker_swarm_server_info: work around problems with older docker-py versions * Bump minimal docker-py version for options network_filters and disk_usage. * More general test improvements. * Correct usage of docker_image. * Put files into output directory. * Speed up test. * Remove old check.
* openssl_certificate now has cryptography backend (#53924). (#54880)Felix Fontein2019-04-041-2/+1
|
* docker_swarm: Return UnlockKey (#54490)Hannes Ljungberg2019-04-012-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Return UnlockKey * Add changelog fragment * Add method to check if a parameter exists in diffs * Add method to get swarm unlock key * Add option unlock_key * Only return unlock key when created or changed * Rename difference check * Extend unlock key example * Assert that unlock_key is a string * Fix docker_swarm_info authors * Don’t silence APIErrors * Test unlock_key on unlocked swarm * Catch APIError when retrieving unlock key * Better return value description * Lint * Fix UnlockKey return value documentation Co-Authored-By: hannseman <hannes@5monkeys.se> * Get unlock key safely Co-Authored-By: hannseman <hannes@5monkeys.se> * Return None on empty UnlockKey * Assert swarm_unlock_key is undefined if unqueried * Add documentation about swarm_info unlock_key * Add change log fragment for unlock_key option * Revert "Add change log fragment for unlock_key option" This reverts commit e3cb2325b552e5d14cc3f42b33a86bf3ee84d3b9. * Use generator expression instead * Restart docker more decisively * Use systemctl kill Co-Authored-By: hannseman <hannes@5monkeys.se> * Try to restart docker daemon
* docker_swarm: Add support for default_addr_pool and subnet_size (#54642)Hannes Ljungberg2019-03-311-0/+93
| | | | | | | | * Add support for default_addr_pool and subnet_size * Add changelog fragment * Document options only used on init / join
* Revert "Temporarily skip failing Docker tests on RHEL 7.6."Matt Clay2019-03-271-1/+0
| | | | This reverts commit affde96fa8390cef23cfe1834992ec97e8dbea7b.
* Temporarily skip failing Docker tests on RHEL 7.6.Matt Clay2019-03-261-0/+1
|
* docker: rename docker_*_facts -> docker_*_info (#54124)Felix Fontein2019-03-211-1/+1
| | | | | | | | * Rename docker_*_facts -> docker_*_info. * Add changelog. * Update scenario guide.
* docker_*: enable RHEL8 tests (#53313)Felix Fontein2019-03-052-15/+14
|
* docker_swarm: support older docker-py versions (#53129)Felix Fontein2019-03-044-18/+154
| | | | | | | | | | | | | | | | | | * Decreasing docker_swarm requirements. * Fixing docker-py / docker API version requirements, and some comments. * Add changelog. * Only send parameters specified by user to docker daemon. * Extend labels test: not specifying == keep labels. * Bump minimally required docker-py version for docker_node and docker_node_facts to 2.4.0. * Prevent crashing when publish or healthcheck is not provided. * Similarly to docker_swarm tests, only execute docker_node tests on real VMs and restart docker daemon when tests are done.
* docker_swarm: more integration tests (#53035)Felix Fontein2019-02-275-0/+1171
| | | | | | | | | | | | * Add more tests. * Added tests for CA options. * Don't run in docker-in-docker situations where docker daemon becoming instable is really dangerous. Also, restart docker daemon after tests. * Only run CA tests when openssl_certificate can be run (which is not the case for RHEL7, see #34054). * Add comment on why docker-based CI runs are skipped.
* Fix force when state==present. (#53003)Felix Fontein2019-02-271-0/+23
|
* docker_swarm: extend tests (part I) (#53005)Felix Fontein2019-02-264-135/+154
| | | | | | * Restructure tests. * Allow tests to work when ansible_default_ipv4.address is undefined.
* docker_swarm: add diff support (#52947)Felix Fontein2019-02-261-0/+26
| | | | | | | | * Add diff support to docker_swarm. * Add changelog. * Using diff mode for docker_swarm tests. This improves debugging, since the the module now outputs more information on *why* it did certain actions.
* docker_swarm: make labels work with older docker daemon versions (#52895)Felix Fontein2019-02-251-0/+4
| | | | | | | | * Make labels work with older docker daemon versions. * Fix idempotence detection. * Add changelog.
* docker_swarm: hopefully fix debug CI problems, and fix check mode (#52825)Felix Fontein2019-02-231-8/+51
| | | | | | | | | | | | | | * Let's see some debug output. * Also check LocalNodeState. * Improve tests. * Actually implement check mode. * Add changelog. * Add pretty-printing and more output.
* docker_swarm: fix minimal API version (#49691)Felix Fontein2018-12-101-2/+2
| | | | | | | | * Reduce minimally required docker API version to 1.25, with selective features requiring 1.30. * Adjust test requirements. * Forgot some imports.
* [docker_network] Adding `scope` and `attachable` flags (#49562)Dave Bendit2018-12-061-1/+1
| | | | | Incorporating the abandoned work from PRs #35288 and #45552. Also adding in the version checking from `docker_container.py`, which should be abstracted out to `docker_common.py`.
* docker_* tests: check API version (#48620)Felix Fontein2018-11-192-54/+65
| | | | | | | | | | * Check minimal API and docker-py versions for all docker_* tests. * Improve docker_swarm creation/destruction for tests. * Fail when conditions aren't met. * Don't hardcode address for advertise_addr.
* Add CI platform: rhel/8.0 (#48835)Matt Clay2018-11-161-0/+1
|
* Fix advertise addr (#47608)Thierry Bouvet2018-11-011-13/+0
| | | | | | * Fix issue #46326 * Update example to create a default swarm
* Improve stability of Docker integration tests. (#46005)Matt Clay2018-09-211-0/+5
|
* Docker integration tests: factorize setup (#42306)Pilou2018-08-098-111/+4
| | | | | | | | * Factorize docker_secret & docker_swarm tests setup * failure are only expected inside docker container * docker_swarm: enable RHEL builds
* Update Shippable integration test groups. (#43118)Matt Clay2018-07-231-1/+1
| | | | | | | * Update Shippable integration test groups. * Update integration test group aliases. * Rebalance AWS and Azure tests with extra group. * Rebalance Windows tests with another group.
* Add new module to create/update a docker swarm. (#38280)Thierry BOUVET2018-06-087-0/+177
* Add new module to create/update a docker swarm. * Fix ansible-test sanity * Fix requirements * Fix requirements * Add tag for author * Test integration test. * Fix main.yml * Add linux arch * Add template * Fix test result * Integration test to create/remove a swarm manager * fix join test * Downgrade docker-py * fix rhel * Fix review documentation. * Fix whitespace * Check docker installation. * test docker install * check * Remove docker socket * Fix docker install * Fix sanity test * Rebase * Add docker_swarm maintainer * Fix review * Fix new version. * Add docker default values * Fix description. * Reworked documentation * Fix YAML error * Rebase * Fix example for update state. * Fix idempotent states. Fix states: present/absent. * Fix sanity * Fix variables sanity * Update example for absent state. * fix sanity * Wrap the contents of error message in to_native. Co-authored by: Dag Wieers <dag@wieers.com>