Add assertions to openvswitch_db integration test (#25600)
* Add missing delegate_to on openvswitch_db integration test runner * Add assertions to openvswitch_db integration test
This commit is contained in:
parent
077a2df1d6
commit
0dbea4575c
1 changed files with 55 additions and 3 deletions
|
@ -2,24 +2,76 @@
|
|||
|
||||
- command: ovs-vsctl add-br br-test
|
||||
|
||||
- openvswitch_db:
|
||||
- name: Create bridge
|
||||
openvswitch_db:
|
||||
table: Bridge
|
||||
record: br-test
|
||||
col: other_config
|
||||
key: disable-in-band
|
||||
value: true
|
||||
|
||||
- openvswitch_db:
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
|
||||
- name: Create bridge again (idempotent)
|
||||
openvswitch_db:
|
||||
table: Bridge
|
||||
record: br-test
|
||||
col: other_config
|
||||
key: disable-in-band
|
||||
value: true
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
|
||||
- name: Change column value
|
||||
openvswitch_db:
|
||||
table: Bridge
|
||||
record: br-test
|
||||
col: other_config
|
||||
key: disable-in-band
|
||||
value: false
|
||||
|
||||
- openvswitch_db:
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
|
||||
- name: Change column value again (idempotent)
|
||||
openvswitch_db:
|
||||
table: Bridge
|
||||
record: br-test
|
||||
col: other_config
|
||||
key: disable-in-band
|
||||
value: false
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
|
||||
- name: Remove bridge
|
||||
openvswitch_db:
|
||||
table: Bridge
|
||||
record: br-test
|
||||
col: other_config
|
||||
key: disable-in-band
|
||||
value: false
|
||||
state: absent
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
|
||||
- name: Remove bridge again (idempotent)
|
||||
openvswitch_db:
|
||||
table: Bridge
|
||||
record: br-test
|
||||
col: other_config
|
||||
key: disable-in-band
|
||||
value: false
|
||||
state: absent
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
|
|
Loading…
Reference in a new issue