Ejemplo n.º 1
0
 def test_list_vpnservice_sort(self):
     # vpn-service-list --sort-key name --sort-key id --sort-key asc
     # --sort-key desc
     resources = "vpnservices"
     cmd = vpnservice.ListVPNService(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources(resources,
                               cmd,
                               sort_key=["name", "id"],
                               sort_dir=["asc", "desc"])
 def test_list_vpnservice_limit(self):
     """vpn-service-list -P."""
     resources = "vpnservices"
     cmd = vpnservice.ListVPNService(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources(resources, cmd, page_size=1000)
 def test_list_vpnservice_pagination(self):
     """vpn-service-list."""
     resources = "vpnservices"
     cmd = vpnservice.ListVPNService(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources_with_pagination(resources, cmd)
 def test_list_vpnservice(self):
     """vpn-service-list."""
     resources = "vpnservices"
     cmd = vpnservice.ListVPNService(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources(resources, cmd, True)