summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/docker_container (follow)
Commit message (Collapse)AuthorAgeFilesLines
* docker_container: change behavior for one-port container ranges to be same ↵Felix Fontein2020-02-031-0/+66
| | | | | | | | | | as docker CLI (#66382) * Adjust docker_container behavior for one-port container ranges to be similar to docker CLI. * Add changelog. * Add documented examples for ports:.
* Fix 'container_default_behavior: no_defaults'. (#66601)Felix Fontein2020-01-311-0/+118
|
* docker_container: pass volumes only for anonymous volumes (#66600)Felix Fontein2020-01-301-0/+5
| | | | | | | | | | * Simplify code. * Only pass anonymous volumes. * Add changelog and update porting guide. * Add integration tests.
* Testing: Add support for AIX platform (#65802)Yanis Guenane2020-01-301-0/+1
|
* Expand Shippable test matrix. (#66912)Matt Clay2020-01-291-1/+1
| | | | | | | * Add 2 CI groups for AWS. * Add 1 CI group for vmware. * Add 1 CI group for CS. * Add 1 CI group for posix.
* docker_container: configure removal wait timeout (#66144)Felix Fontein2020-01-041-11/+52
| | | | | | | | | | | | | | * Add support for timeout while waiting for state. * Allow to limit removal wait time. * Add changelog. * Forgot version_added. * Add some check mode tests. * Use removal_wait_timeout in tests.
* docker_container: add support for --cpus (#64683)Felix Fontein2019-11-241-0/+57
| | | | | | | | * Add support for --cpus. * Adjust PR #. * Add version_added.
* docker_container: deprecate trust_image_content (#63420)Felix Fontein2019-10-181-6/+0
| | | | | | | | * Deprecate trust_image_content. * Add changelog. * Mention it has never been used; removed test stub.
* docker_container: improve image finding / change detection (#62971)Felix Fontein2019-10-041-1/+27
| | | | | | | | | | | | | | | | | | * Improve image finding / change detection. * Checked wrong object. * Improve behavior. (Let docker daemon sort this out.) * Add changelog. * Add simple test. * Fix image name. * Use new docker_image params. * Rewrite.
* docker_container: fix idempotency for network IP addresses (#62928)Felix Fontein2019-09-302-1/+190
| | | | | | | | | | | | | | | | | | | | * Specifying IP addresses needs API version 1.22 or newer. * Simplify code. * Use IPAMConfig.IPv*Address instead of IPAddress and GlobalIPv6Address. * Add changelog. * Fix syntax errors. * Add integration test. * Don't rely on netaddr. * Normalize IPv6 addresses before comparison. * Install netaddr, and use it.
* docker_container: add mount endpoint collision detection (#60384)Felix Fontein2019-08-161-0/+36
| | | | | | | | * Add mount endpoint collision detection. * Add changelog. * Fix error.
* [docker_container] Adding support for `mounts` option (#49808)Dave Bendit2019-08-022-191/+404
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [WIP][docker_container] Adding support for `mounts` option Fixes #42054 * Adjusting to current standards. * Add changelog. * Adjust types. * Cleanup. * Add idempotency checks for mounts. * Improve diff for mounts. * Linting. * Python 2.6 compatibility. * Fix error message formatting. * Move mounts and volumes tests into own file. * Add set of mount tests. * Golang's omitempty for bool omits false values. * Simplify sanity checks. Correct order of volume_options sanitization and usage. * Fix key. * Fix check. * Add tests where both volumes and mounts show up. * Add collision test.
* docker_container: fix port bindings with IPv6 addresses (#59715)Felix Fontein2019-08-021-0/+13
| | | | | | | | * Pass IPv6 addresses for port bindings without square brackets. * Add changelog. * Add test.
* Re-enable docker_container tests (#59425)Felix Fontein2019-07-232-1/+1
| | | | Mark dependent container's ipc_mode as shareable
* Mark Docker tests unstable (#59408)Sam Doran2019-07-231-0/+1
| | | | | | | | | * Mark Docker tests unstable - docker_swarm is unstable on RHEL 8 - docker_container is unstable on RHEL 7 * Disable docker_container test.
* Adjust tests to new error messages for older docker-py versions. (#58253)Felix Fontein2019-06-231-12/+24
|
* Fix assignments in docker tests. (#57249)Felix Fontein2019-05-316-7/+7
|
* docker_container: fix container creation with networks_cli_compatible=yes ↵Felix Fontein2019-05-281-0/+3
| | | | | | | | | | (#56687) * Fix behavior. * Add changelog. * Add simple test to prevent #56620.
* [docker] support the lookup of images by digest (#56649)Jakob Ackermann2019-05-211-0/+42
| | | | | | | | | | | | | | | | | | * [docker] images: add support for lookup by sha256 digest Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [tests] docker image by digest: work on a minimal test case Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * [docker] group branch conditions per lookup Co-Authored-By: Felix Fontein <felix@fontein.de> * [misc] add a news fragment for the added digest lookup for docker images Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
* oom_killer and oom_score_adj are available since docker-py 1.8.0. (#56012)Felix Fontein2019-05-051-18/+0
| | | | | | * oom_killer and oom_score_adj are available since docker-py 1.8.0. * Add changelog.
* docker_container: use restart() API function instead of stop/start sequence ↵Felix Fontein2019-05-032-110/+121
| | | | | | | | | | | | | | | | (#55894) * Improve container restart. * Adjust tests. * Add changelog. * Quote options. * Move tests for restart/recreate options to start/stop tests. * Fix changelog name.
* docker modules: make sure everything works with older docker-py versions ↵Felix Fontein2019-04-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | (#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.
* docker_container: improve log_options idempotency by converting to string ↵Felix Fontein2019-04-131-1/+5
| | | | | | | | | | | | | | | | (#54955) * Warn when log_options values are not strings. * Add changelog. * Improve message. * Improve formatting and formulation of other messages. * Add test for warning. * Trying double escaping.
* 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-271-0/+1
|
* docker_container: add networks_cli_compatible option (#54198)Felix Fontein2019-03-252-184/+549
| | | | | | | | | | | | | | | | | | | | | | * Adding networks_cli_compatible option. * Move network tests into own test file. * Extend tests (for networks_cli_compatible=no). * Adding tests for networks_cli_compatible=yes. * There seems to be no way to create a container without at least one network attached. * Integrate networks / purge_networks with comparisons. * Speed up tests. * Removing double dot. * Add changelog. * Use comparisons value only if the networks option has been specified. purge_networks on the other hand also removes networks if it has not been specified.
* docker: rename docker_*_facts -> docker_*_info (#54124)Felix Fontein2019-03-211-8/+8
| | | | | | | | * Rename docker_*_facts -> docker_*_info. * Add changelog. * Update scenario guide.
* Add shippable/posix/group4/ for CI. (#53816)Matt Clay2019-03-151-1/+1
|
* Only use ports in the range 9001-9060.Felix Fontein2019-03-152-44/+44
|
* docker_container: show warnings, fix/improve tests (#53440)Felix Fontein2019-03-114-66/+69
| | | | | | | | | | | | | | | | | | * Output warnings from docker daemon on container create and update. * Accept warning for blkio_weight instead of idempotency. * Value quoting. * Avoid loop variable conflict. * Add changelog. * Make one test case faster. * Add 'Docker warning: ' prefix. * Add a generalized warning reporting function.
* Rebalance docker_* integration tests.Matt Clay2019-03-071-1/+1
|
* docker_*: enable RHEL8 tests (#53313)Felix Fontein2019-03-051-1/+0
|
* Simplify docker_*_facts return names (#51939)Felix Fontein2019-03-051-11/+11
| | | | | | * Simplify docker_*_facts return names. * Adjust regular return values of modules to match style of docker_*_facts modules.
* Don't die when kernel memory accounting is not supported by runc build. (#53163)Felix Fontein2019-03-011-0/+5
|
* docker: provide alternatives to ansible_facts results (#51192)Felix Fontein2019-02-181-11/+11
| | | | | | * Try to stop using ansible_facts for docker modules. * Stop using facts returned from regular modules.
* [docker_container] Failing on non-string env values (#49843)Dave Bendit2018-12-141-0/+20
| | | | | | | | | | | | * [docker_container] Failing on non-string env values Fixes #49802 * Clarify failure message Co-Authored-By: DBendit <David@ibendit.com> * Fixup from review
* [docker_container] Fixes idempotency checks for network_mode (#49797)Dave Bendit2018-12-121-1/+34
| | | Fixes #49794
* Support for pids_limit parameter in docker_container module (#49319)Akshay Gaikwad2018-12-031-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | * Support for pids_limit parameter in docker_container module This add pids_limit parameter support in docker_container module Fixes #43337 Signed-off-by: Akshay <akshay@localhost.localdomain> * Add changelog for pids_limit parameter Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com> * Remove unnecessary lines of code The map is needed if the names are different. Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com> * Update pids_limit option tests It also run for docker-py < 1.10.0 Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
* docker_* tests: check API version (#48620)Felix Fontein2018-11-191-0/+3
| | | | | | | | | | * 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.
* docker_* modules: improve diff (#48546)Felix Fontein2018-11-195-0/+82
| | | | | | | | | | | | | | | | | | | | | | * Add difference tracking tool * Improve --diff mode for docker_container. * Improve diffs of sets by ordering the sets. * Rewrite imports, get rid of HAS_DOCKER_PY_x variables and use docker_version instead. * Rename container -> active (more generic). * Add --diff for docker_volume. Change old diff output. * Add --diff for docker_network. Change old diff output. * Add --diff for docker_swarm_service. * Add changelog. * Add entry for porting guide on docker_network and docker_volume.
* Add CI platform: rhel/8.0 (#48835)Matt Clay2018-11-171-0/+1
|
* Use force_kill instead of stop_timeout to fasten container cleanup. (#48733)Felix Fontein2018-11-167-188/+204
|
* docker_container: fix tests and idempotency for init and shm_size (#48551)Felix Fontein2018-11-131-71/+71
| | | | | | | | | | * Fix tests: use same command if not testing command option. * Fix idempotency of init option. * Fix shm_size idempotency (it is included in inspect results from docker API version 1.22 on). * Add changelog.
* docker_* modules: updating argument_spec (#48491)Felix Fontein2018-11-121-1/+1
| | | | | | | | | | | | | | | | | | * Updating argument_spec for docker_* modules. * Adjust docker_network to work with new recursive argument_spec. * Adjust device IO limits to recursive argument_spec. * Improve test (test Ansible's cast from str to int). * Adjust healthcheck options construction. * Remove superfluous check. * Make flake8 happy. * Simplify comparison.
* Improve paused test and behavior. (#48056)Felix Fontein2018-11-051-20/+8
|
* Make tests fail less often with strange errors. (#48059)Felix Fontein2018-11-051-2/+8
|
* docker_container: fix ipc_mode and pid_mode idempotency (#47997)Felix Fontein2018-11-051-6/+5
| | | | | | | | * Fix ipc_mode and pid_mode idempotency when container names are used. * Add changelog. * Update pid_mode documentation.
* docker_container: simplify minimal required version per option handling (#47711)Felix Fontein2018-11-052-73/+219
| | | | | | | | | | | | | | | | | | | | | | * Store parsed docker-py / docker API versions in client. * Began refactoring 'minimal required version' for docker_container options. * Removing some fake defaults. * Added changelog. * Improve tests (check older docker versions). * Fix comparison. The breaking point is not docker-py 2.0.0, but 1.10.0. (Verified by testing with these versions.) * Move docker-py/API version detection to setup_docker. * Add YAML document starter. * docker_network requirement for docker-py was bumped to 1.10.0 in #47492.
* Support for device read write limit parameters (#47814)Akshay Gaikwad2018-11-011-0/+195
| | | | | | | | | | | | | | * Support for device read write limit parameters * Add following options in docker_container module - device_read_bps - device_write_bps - device_read_iops - device_write_iops Fixes #36831 * test for device_read_iops * combined test for device_write_bps and device_write_iops
* docker_container: fix paused and add some tests (#47900)Felix Fontein2018-11-011-16/+155
| | | | | | | | | | | | | | | | * cleanup is already tested. * Add test for paused. * Add recreate and restart tests. * timeout is a common docker option * Implement paused and fix paused test. * Add changelog. * Improve paused test.