diff options
author | Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com> | 2017-11-21 13:34:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 13:34:27 +0100 |
commit | be7a3adeb79cbda021a01019a71e0d7413c34439 (patch) | |
tree | 2c3154a97d9c8a67ceb6eaea606938d73e43dc0b /test | |
parent | de1bfde2d82938350c61761ea96252ab6f992f3a (diff) | |
download | ansible-be7a3adeb79cbda021a01019a71e0d7413c34439.tar.gz |
Fix ovs integration tests initial setup (#33136)
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/targets/openvswitch_bridge/tests/basic.yaml | 1 | ||||
-rw-r--r-- | test/integration/targets/openvswitch_db/tests/basic.yaml | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/test/integration/targets/openvswitch_bridge/tests/basic.yaml b/test/integration/targets/openvswitch_bridge/tests/basic.yaml index b8e859b34e..7cdeeda155 100644 --- a/test/integration/targets/openvswitch_bridge/tests/basic.yaml +++ b/test/integration/targets/openvswitch_bridge/tests/basic.yaml @@ -2,6 +2,7 @@ - name: Make sure test bridge does not exist before tests command: ovs-vsctl del-br br-test + ignore_errors: yes - name: Create bridge openvswitch_bridge: diff --git a/test/integration/targets/openvswitch_db/tests/basic.yaml b/test/integration/targets/openvswitch_db/tests/basic.yaml index d0c906b95e..fcc14410eb 100644 --- a/test/integration/targets/openvswitch_db/tests/basic.yaml +++ b/test/integration/targets/openvswitch_db/tests/basic.yaml @@ -1,6 +1,11 @@ --- -- command: ovs-vsctl add-br br-test +- name: Make sure test bridge does not exist before tests + command: ovs-vsctl del-br br-test + ignore_errors: yes + +- name: Create test bridge + command: ovs-vsctl add-br br-test - name: Create bridge openvswitch_db: @@ -81,3 +86,6 @@ - assert: that: - "result.changed == false" + +- name: Tear down test bridge + command: ovs-vsctl del-br br-test |