From 8eb656de8bf197fb88d7e9ab401a04cb40f1146a Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 5 Nov 2018 13:55:27 +0100 Subject: [PATCH] Fixing idempotency test. (#48038) --- .../targets/docker_network/tasks/tests/basic.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/test/integration/targets/docker_network/tasks/tests/basic.yml b/test/integration/targets/docker_network/tasks/tests/basic.yml index 0b270cc720..5d9bf84ff3 100644 --- a/test/integration/targets/docker_network/tasks/tests/basic.yml +++ b/test/integration/targets/docker_network/tasks/tests/basic.yml @@ -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 }}" @@ -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 ####################################################################