mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Return commands instead of command (#24061)
Ok, so for openvswitch_db in particular we just return one command but in the sake of consistency and code re-use, let's return a list of "commands", even if it's just one.
This commit is contained in:
parent
9456f93ea8
commit
2716fad38f
3 changed files with 20 additions and 19 deletions
|
@ -87,8 +87,8 @@ class TestOpenVSwitchDBModule(TestOpenVSwitchModule):
|
|||
value='True'))
|
||||
self.execute_module(
|
||||
changed=True,
|
||||
command='/usr/bin/ovs-vsctl -t 5 remove Bridge test-br other_config'
|
||||
' disable-in-band=True',
|
||||
commands=['/usr/bin/ovs-vsctl -t 5 remove Bridge test-br other_config'
|
||||
' disable-in-band=True'],
|
||||
test_name='test_openvswitch_db_absent_removes_key')
|
||||
|
||||
def test_openvswitch_db_present_idempotent(self):
|
||||
|
@ -105,8 +105,8 @@ class TestOpenVSwitchDBModule(TestOpenVSwitchModule):
|
|||
value='True'))
|
||||
self.execute_module(
|
||||
changed=True,
|
||||
command='/usr/bin/ovs-vsctl -t 5 add Bridge test-br other_config'
|
||||
' disable-in-band=True',
|
||||
commands=['/usr/bin/ovs-vsctl -t 5 add Bridge test-br other_config'
|
||||
' disable-in-band=True'],
|
||||
test_name='test_openvswitch_db_present_adds_key')
|
||||
|
||||
def test_openvswitch_db_present_updates_key(self):
|
||||
|
@ -116,6 +116,6 @@ class TestOpenVSwitchDBModule(TestOpenVSwitchModule):
|
|||
value='False'))
|
||||
self.execute_module(
|
||||
changed=True,
|
||||
command='/usr/bin/ovs-vsctl -t 5 set Bridge test-br other_config'
|
||||
':disable-in-band=False',
|
||||
commands=['/usr/bin/ovs-vsctl -t 5 set Bridge test-br other_config'
|
||||
':disable-in-band=False'],
|
||||
test_name='test_openvswitch_db_present_updates_key')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue