예제 #1
0
 def test_list_network_sercice_policies_sort(self):
     """network-service-policy-list --sort-key name --sort-key id
     --sort-key asc --sort-key desc
     """
     resources = 'network_service_policies'
     cmd = gbp.ListNetworkServicePolicy(test_cli20.MyApp(sys.stdout),
                                        None)
     self._test_list_resources(resources, cmd,
                               sort_key=["name", "id"],
                               sort_dir=["asc", "desc"])
예제 #2
0
 def test_list_network_service_polices_limit(self):
     """network-service-policy-list -P."""
     resources = 'network_service_policies'
     cmd = gbp.ListNetworkServicePolicy(test_cli20.MyApp(sys.stdout),
                                        None)
     self._test_list_resources(resources, cmd, page_size=1000)
예제 #3
0
 def test_list_network_service_policies_with_pagination(self):
     """network-sercvice-policy-list."""
     resources = 'network_service_policies'
     cmd = gbp.ListNetworkServicePolicy(test_cli20.MyApp(sys.stdout),
                                        None)
     self._test_list_resources_with_pagination(resources, cmd)