Skip to content

Commit aa82221

Browse files
committed
Fixes #381
1 parent 91343c3 commit aa82221

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/functional/cm/test_trust.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
#
1515

16+
from f5.bigip.mixins import InvalidCommand
1617
import pytest
1718

1819

@@ -77,3 +78,12 @@ def test_run(self, request, bigip, peer):
7778
# Verify devices sync state is Standalone
7879
assert check_sync(request, bigip) == u"Standalone"
7980
assert check_sync(request, peer) == u"Standalone"
81+
82+
def test_invalid_cmd_meta(self, request, bigip):
83+
dvcs = bigip.cm
84+
with pytest.raises(InvalidCommand):
85+
dvcs.add_to_trust.exec_cmd('foo', name='fooname',
86+
device='foodev',
87+
deviceName='foo_name',
88+
username='foouser',
89+
caDevice=True, password='foopasswd')

0 commit comments

Comments
 (0)