Fixing idempotency test. (#48038)
This commit is contained in:
parent
0fc99c3939
commit
8eb656de8b
1 changed files with 7 additions and 8 deletions
|
@ -14,8 +14,9 @@
|
||||||
- name: Create containers
|
- name: Create containers
|
||||||
docker_container:
|
docker_container:
|
||||||
name: "{{ container_name }}"
|
name: "{{ container_name }}"
|
||||||
image: hello-world
|
image: alpine:3.8
|
||||||
state: present
|
command: /bin/sleep 10m
|
||||||
|
state: started
|
||||||
loop:
|
loop:
|
||||||
- "{{ cname_1 }}"
|
- "{{ cname_1 }}"
|
||||||
- "{{ cname_2 }}"
|
- "{{ cname_2 }}"
|
||||||
|
@ -106,19 +107,17 @@
|
||||||
name: "{{ nname_1 }}"
|
name: "{{ nname_1 }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
# The idempotency tests do NOT work currently.
|
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- networks_1 is changed
|
- networks_1 is changed
|
||||||
- networks_2 is changed
|
- networks_2 is changed
|
||||||
# - networks_2_idem is not changed
|
- networks_2_idem is not changed
|
||||||
- networks_3 is changed
|
- networks_3 is changed
|
||||||
# - networks_3_idem is not changed
|
- networks_3_idem is not changed
|
||||||
- networks_4 is changed
|
- networks_4 is changed
|
||||||
# - networks_4_idem is not changed
|
- networks_4_idem is not changed
|
||||||
- networks_5 is changed
|
- networks_5 is changed
|
||||||
# - networks_5_idem is not changed
|
- networks_5_idem is not changed
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue