Ejemplo n.º 1
0
 def setup_credentials(cls):
     cls.set_network_resources()
     cls.request_microversion = (
         api_version_utils.select_request_microversion(
             cls.min_microversion,
             CONF.compute_feature_enabled.min_microversion))
     if cls.request_microversion:
         cls.services_microversion = {
             CONF.compute.catalog_type: cls.request_microversion}
     super(BaseV2ComputeTest, cls).setup_credentials()
Ejemplo n.º 2
0
 def setup_credentials(cls):
     cls.set_network_resources()
     cls.request_microversion = (
         api_version_utils.select_request_microversion(
             cls.min_microversion,
             CONF.compute_feature_enabled.min_microversion))
     if cls.request_microversion:
         cls.services_microversion = {
             CONF.compute.catalog_type: cls.request_microversion
         }
     super(BaseV2ComputeTest, cls).setup_credentials()
Ejemplo n.º 3
0
 def resource_setup(cls):
     super(BaseV2ComputeTest, cls).resource_setup()
     cls.request_microversion = (
         api_version_utils.select_request_microversion(
             cls.min_microversion,
             CONF.compute_feature_enabled.min_microversion))
     cls.build_interval = CONF.compute.build_interval
     cls.build_timeout = CONF.compute.build_timeout
     cls.image_ref = CONF.compute.image_ref
     cls.image_ref_alt = CONF.compute.image_ref_alt
     cls.flavor_ref = CONF.compute.flavor_ref
     cls.flavor_ref_alt = CONF.compute.flavor_ref_alt
     cls.ssh_user = CONF.validation.image_ssh_user
     cls.image_ssh_user = CONF.validation.image_ssh_user
     cls.image_ssh_password = CONF.validation.image_ssh_password
     cls.servers = []
     cls.images = []
     cls.security_groups = []
     cls.server_groups = []
Ejemplo n.º 4
0
 def _test_request_version(self, test_min_version,
                           cfg_min_version, expected_version):
     selected_version = api_version_utils.select_request_microversion(
         test_min_version, cfg_min_version)
     self.assertEqual(expected_version, selected_version)
Ejemplo n.º 5
0
 def _test_request_version(self, test_min_version, cfg_min_version,
                           expected_version):
     selected_version = api_version_utils.select_request_microversion(
         test_min_version, cfg_min_version)
     self.assertEqual(expected_version, selected_version)