From dccde70c57baf9266a795a54198238515d7fdda6 Mon Sep 17 00:00:00 2001 From: Richard Theis Date: Fri, 19 Feb 2016 10:19:28 -0600 Subject: 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 --- functional/tests/network/v2/test_security_group_rule.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'functional') 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) -- cgit v1.2.1