summaryrefslogtreecommitdiff
path: root/functional
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-23 18:02:55 +0000
committerGerrit Code Review <review@openstack.org>2016-02-23 18:02:56 +0000
commitc2f5945ef62117771d6cff411d6071052c085d30 (patch)
treefa573e702f658a1fa20a7c0c9c41381768b4dd2e /functional
parentab40add0c6a46bbdbbd7d90764c4ea5076373a64 (diff)
parentdccde70c57baf9266a795a54198238515d7fdda6 (diff)
downloadpython-openstackclient-c2f5945ef62117771d6cff411d6071052c085d30.tar.gz
Merge "Add "security group rule show" command"
Diffstat (limited to 'functional')
-rw-r--r--functional/tests/network/v2/test_security_group_rule.py7
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)