def test_list_policy_classifiers_sort(self): """grouppolicy-policy-classifier-list --sort-key name --sort-key id --sort-key asc --sort-key desc """ resources = 'policy_classifiers' cmd = gbp.ListPolicyClassifier(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, sort_key=["name", "id"], sort_dir=["asc", "desc"])
def test_list_policy_classifiers_pagination(self): """grouppolicy-policy-classifier-list.""" resources = 'policy_classifiers' cmd = gbp.ListPolicyClassifier(test_cli20.MyApp(sys.stdout), None) self._test_list_resources_with_pagination(resources, cmd)
def test_list_policy_classifiers_limit(self): """grouppolicy-policy-classifier-list -P.""" resources = 'policy_classifiers' cmd = gbp.ListPolicyClassifier(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, page_size=1000)