def test_list_healthmonitors_sort(self):
     # lbaas-healthmonitor-list --sort-key id --sort-key asc.
     resources = 'healthmonitors'
     cmd_resources = 'lbaas_healthmonitors'
     cmd = healthmonitor.ListHealthMonitor(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources(resources, cmd, True,
                               cmd_resources=cmd_resources)
 def test_list_healthmonitors_limit(self):
     # lbaas-healthmonitor-list -P.
     resources = 'healthmonitors'
     cmd_resources = 'lbaas_healthmonitors'
     cmd = healthmonitor.ListHealthMonitor(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources(resources, cmd, page_size=1000,
                               cmd_resources=cmd_resources)
 def test_list_healthmonitors_pagination(self):
     # lbaas-healthmonitor-list with pagination.
     resources = 'healthmonitors'
     cmd_resources = 'lbaas_healthmonitors'
     cmd = healthmonitor.ListHealthMonitor(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources_with_pagination(resources, cmd,
                                               cmd_resources=cmd_resources)
Exemplo n.º 4
0
 def test_list_healthmonitors(self):
     """lbaas-healthmonitor-list."""
     resources = 'healthmonitors'
     cmd_resources = 'lbaas_healthmonitors'
     cmd = healthmonitor.ListHealthMonitor(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources(resources, cmd, True,
                               cmd_resources=cmd_resources)