Added neutron cli test case for fwaas
Change-Id: I43bcbae0ad5a6379b7f93c82c7a330ca7de8a6bd
This commit is contained in:
parent
98f3931ef1
commit
e0195b481c
@ -197,6 +197,31 @@ class SimpleReadOnlyNeutronClientTest(cli.ClientTestBase):
|
|||||||
'route_mode',
|
'route_mode',
|
||||||
'auth_mode', 'status'])
|
'auth_mode', 'status'])
|
||||||
|
|
||||||
|
@test.attr(type='smoke')
|
||||||
|
@test.requires_ext(extension='fwaas', service='network')
|
||||||
|
def test_neutron_firewall_list(self):
|
||||||
|
firewall_list = self.parser.listing(self.neutron
|
||||||
|
('firewall-list'))
|
||||||
|
self.assertTableStruct(firewall_list, ['id', 'name',
|
||||||
|
'firewall_policy_id'])
|
||||||
|
|
||||||
|
@test.attr(type='smoke')
|
||||||
|
@test.requires_ext(extension='fwaas', service='network')
|
||||||
|
def test_neutron_firewall_policy_list(self):
|
||||||
|
firewall_policy = self.parser.listing(self.neutron
|
||||||
|
('firewall-policy-list'))
|
||||||
|
self.assertTableStruct(firewall_policy, ['id', 'name',
|
||||||
|
'firewall_rules'])
|
||||||
|
|
||||||
|
@test.attr(type='smoke')
|
||||||
|
@test.requires_ext(extension='fwaas', service='network')
|
||||||
|
def test_neutron_firewall_rule_list(self):
|
||||||
|
firewall_rule = self.parser.listing(self.neutron
|
||||||
|
('firewall-rule-list'))
|
||||||
|
self.assertTableStruct(firewall_rule, ['id', 'name',
|
||||||
|
'firewall_policy_id',
|
||||||
|
'summary', 'enabled'])
|
||||||
|
|
||||||
@test.attr(type='smoke')
|
@test.attr(type='smoke')
|
||||||
def test_neutron_help(self):
|
def test_neutron_help(self):
|
||||||
help_text = self.neutron('help')
|
help_text = self.neutron('help')
|
||||||
|
Loading…
Reference in New Issue
Block a user