コード例 #1
0
 def test_list_healthmonitors_sort(self):
     # lb-healthmonitor-list --sort-key name --sort-key id --sort-key asc
     # --sort-key desc
     resources = "health_monitors"
     cmd = healthmonitor.ListHealthMonitor(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources(resources,
                               cmd,
                               sort_key=["name", "id"],
                               sort_dir=["asc", "desc"])
コード例 #2
0
 def test_list_healthmonitors(self):
     # lb-healthmonitor-list.
     resources = "health_monitors"
     cmd = healthmonitor.ListHealthMonitor(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources(resources, cmd, True)
コード例 #3
0
 def test_list_healthmonitors_pagination(self):
     # lb-healthmonitor-list.
     resources = "health_monitors"
     cmd = healthmonitor.ListHealthMonitor(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources_with_pagination(resources, cmd)
コード例 #4
0
 def test_list_healthmonitors_limit(self):
     # lb-healthmonitor-list -P.
     resources = "health_monitors"
     cmd = healthmonitor.ListHealthMonitor(test_cli20.MyApp(sys.stdout),
                                           None)
     self._test_list_resources(resources, cmd, page_size=1000)