コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 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)