def test_list_servicechain_nodes_sort(self): """service-chain-node-list --sort-key name --sort-key id --sort-key asc --sort-key desc """ resources = 'servicechain_nodes' cmd = servicechain.ListServiceChainNode(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, sort_key=["name", "id"], sort_dir=["asc", "desc"])
def test_list_servicechain_nodes_pagination(self): """service-chain-node-list.""" resources = 'servicechain_nodes' cmd = servicechain.ListServiceChainNode(test_cli20.MyApp(sys.stdout), None) self._test_list_resources_with_pagination(resources, cmd)
def test_list_servicechain_nodes_limit(self): """service-chain-node-list -P.""" resources = 'servicechain_nodes' cmd = servicechain.ListServiceChainNode(test_cli20.MyApp(sys.stdout), None) self._test_list_resources(resources, cmd, page_size=1000)