Пример #1
0
 def test_list_vips_sort(self):
     """lb-vip-list --sort-key name --sort-key id --sort-key asc
     --sort-key desc
     """
     resources = "vips"
     cmd = vip.ListVip(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_vips_limit(self):
     """lb-vip-list -P."""
     resources = "vips"
     cmd = vip.ListVip(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources(resources, cmd, page_size=1000)
Пример #3
0
 def test_list_vips_pagination(self):
     """lb-vip-list."""
     resources = "vips"
     cmd = vip.ListVip(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources_with_pagination(resources, cmd)
Пример #4
0
 def test_list_vips(self):
     """lb-vip-list."""
     resources = "vips"
     cmd = vip.ListVip(test_cli20.MyApp(sys.stdout), None)
     self._test_list_resources(resources, cmd, True)