Exemplo n.º 1
0
 def test_list_router_ports_fields(self):
     """List ports: --fields a --fields b -- --fields c d."""
     resources = "ports"
     cmd = port.ListRouterPort(test_cli20.MyApp(sys.stdout), None)
     self._test_list_router_port(resources, cmd, self.test_id,
                                 fields_1=['a', 'b'],
                                 fields_2=['c', 'd'])
Exemplo n.º 2
0
 def test_list_router_ports_tags(self):
     """List router ports: -- --tags a b."""
     resources = "ports"
     cmd = port.ListRouterPort(test_cli20.MyApp(sys.stdout), None)
     self._test_list_router_port(resources,
                                 cmd,
                                 self.test_id,
                                 tags=['a', 'b'])
 def test_list_router_ports_detail_tags(self):
     # List router ports: -D -- --tags a b.
     resources = "ports"
     cmd = port.ListRouterPort(test_cli20.MyApp(sys.stdout), None)
     self._test_list_router_port(resources,
                                 cmd,
                                 self.test_id,
                                 detail=True,
                                 tags=['a', 'b'])
Exemplo n.º 4
0
 def test_list_router_ports(self):
     """List router ports: -D."""
     resources = "ports"
     cmd = port.ListRouterPort(test_cli20.MyApp(sys.stdout), None)
     self._test_list_router_port(resources, cmd, self.test_id, True)