From e0195b481c3d77b4b9d13276d0c4aec1bb5ecdd8 Mon Sep 17 00:00:00 2001 From: prabhu murthy Date: Tue, 23 Sep 2014 22:33:40 -0700 Subject: [PATCH] Added neutron cli test case for fwaas Change-Id: I43bcbae0ad5a6379b7f93c82c7a330ca7de8a6bd --- .../simple_read_only/network/test_neutron.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tempest/cli/simple_read_only/network/test_neutron.py b/tempest/cli/simple_read_only/network/test_neutron.py index 60908825a9..6cf06409ad 100644 --- a/tempest/cli/simple_read_only/network/test_neutron.py +++ b/tempest/cli/simple_read_only/network/test_neutron.py @@ -197,6 +197,31 @@ class SimpleReadOnlyNeutronClientTest(cli.ClientTestBase): 'route_mode', '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') def test_neutron_help(self): help_text = self.neutron('help')