diff options
| author | Richard Theis <rtheis@us.ibm.com> | 2016-02-19 10:19:28 -0600 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2016-02-23 15:27:06 +0000 |
| commit | dccde70c57baf9266a795a54198238515d7fdda6 (patch) | |
| tree | 81f9e0a2a8402f4ac5ab75489418d7bc82e09873 /functional/tests/network | |
| parent | 20f86465af549bf43d34ba570fca12ffc74e6050 (diff) | |
| download | python-openstackclient-dccde70c57baf9266a795a54198238515d7fdda6.tar.gz | |
Add "security group rule show" command
Add the "os security group rule show" command which will use
the SDK when neutron is enabled, and use the nova client when
nova network is enabled.
Change-Id: I41efaa4468ec15e4e86d74144cc72edc25a29024
Partial-Bug: #1519512
Implements: blueprint neutron-client
Diffstat (limited to 'functional/tests/network')
| -rw-r--r-- | functional/tests/network/v2/test_security_group_rule.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/functional/tests/network/v2/test_security_group_rule.py b/functional/tests/network/v2/test_security_group_rule.py index e864b08f..9c0b66e8 100644 --- a/functional/tests/network/v2/test_security_group_rule.py +++ b/functional/tests/network/v2/test_security_group_rule.py @@ -57,3 +57,10 @@ class SecurityGroupRuleTests(test.TestCase): self.SECURITY_GROUP_NAME + opts) self.assertIn(self.SECURITY_GROUP_RULE_ID, raw_output) + + def test_security_group_rule_show(self): + opts = self.get_show_opts(self.ID_FIELD) + raw_output = self.openstack('security group rule show ' + + self.SECURITY_GROUP_RULE_ID + + opts) + self.assertEqual(self.SECURITY_GROUP_RULE_ID + "\n", raw_output) |
