def test_list_pools_limit(self): # lbaas-pool-list -P. resources = 'pools' cmd_resources = 'lbaas_pools' cmd = pool.ListPool(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, page_size=1000, cmd_resources=cmd_resources)
def test_list_pools_pagination(self): # lbaas-pool-list with pagination. resources = 'pools' cmd_resources = 'lbaas_pools' cmd = pool.ListPool(test_cli20.MyApp(sys.stdout), None) self._test_list_resources_with_pagination(resources, cmd, cmd_resources=cmd_resources)
def test_list_pools_sort(self): # lbaas-pool-list --sort-key id --sort-key asc. resources = 'pools' cmd_resources = 'lbaas_pools' cmd = pool.ListPool(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, True, cmd_resources=cmd_resources)
def test_list_pools(self): """lbaas-pool-list.""" resources = 'pools' cmd_resources = 'lbaas_pools' cmd = pool.ListPool(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, True, cmd_resources=cmd_resources)