1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/openvswitch_bridge/tests/basic.yaml
Ricardo Carrillo Cruz de1bfde2d8
Add very basic openvswitch_bridge integration test (#33134)
More to come on this module.
2017-11-21 13:24:48 +01:00

25 lines
462 B
YAML

---
- name: Make sure test bridge does not exist before tests
command: ovs-vsctl del-br br-test
- name: Create bridge
openvswitch_bridge:
bridge: br-test
register: result
- assert:
that:
- "result.changed == true"
- name: Create bridge again (idempotent)
openvswitch_bridge:
bridge: br-test
register: result
- assert:
that:
- "result.changed == false"
- name: Tear down test bridge
command: ovs-vsctl del-br br-test