Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker_network: fix idempotency test #48038

Merged
merged 1 commit into from
Nov 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 7 additions & 8 deletions test/integration/targets/docker_network/tasks/tests/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
- name: Create containers
docker_container:
name: "{{ container_name }}"
image: hello-world
state: present
image: alpine:3.8
command: /bin/sleep 10m
state: started
loop:
- "{{ cname_1 }}"
- "{{ cname_2 }}"
Expand Down Expand Up @@ -106,19 +107,17 @@
name: "{{ nname_1 }}"
state: absent

# The idempotency tests do NOT work currently.

- assert:
that:
- networks_1 is changed
- networks_2 is changed
# - networks_2_idem is not changed
- networks_2_idem is not changed
- networks_3 is changed
# - networks_3_idem is not changed
- networks_3_idem is not changed
- networks_4 is changed
# - networks_4_idem is not changed
- networks_4_idem is not changed
- networks_5 is changed
# - networks_5_idem is not changed
- networks_5_idem is not changed

####################################################################

Expand Down