mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-11 20:29:57 +00:00
Add test.
This commit is contained in:
parent
d6beac3b43
commit
c5734615f3
@ -385,6 +385,16 @@
|
||||
force_kill: true
|
||||
register: command_5
|
||||
|
||||
- name: command (correct, empty list, idempotency)
|
||||
docker_container:
|
||||
image: "{{ docker_test_image_alpine }}"
|
||||
command_handling: correct
|
||||
command: []
|
||||
name: "{{ cname }}"
|
||||
state: present # the container will use the default command and likely has been exited by this point, so don't use 'state: started' here
|
||||
force_kill: true
|
||||
register: command_6
|
||||
|
||||
- name: cleanup
|
||||
docker_container:
|
||||
name: "{{ cname }}"
|
||||
@ -399,6 +409,7 @@
|
||||
- command_3 is not changed
|
||||
- command_4 is changed
|
||||
- command_5 is changed
|
||||
- command_6 is not changed
|
||||
|
||||
####################################################################
|
||||
## cpu_period ######################################################
|
||||
|
||||
Loading…
Reference in New Issue
Block a user