Ejemplo n.º 1
0
 def _test_version(self, test_min_version, test_max_version,
                   cfg_min_version, cfg_max_version, expected_skip=False):
     try:
         api_version_utils.check_skip_with_microversion(test_min_version,
                                                        test_max_version,
                                                        cfg_min_version,
                                                        cfg_max_version)
     except testtools.TestCase.skipException as e:
         if not expected_skip:
             raise testtools.TestCase.failureException(e.message)
Ejemplo n.º 2
0
 def skip_checks(cls):
     super(BaseV2ComputeTest, cls).skip_checks()
     if not CONF.service_available.nova:
         raise cls.skipException("Nova is not available")
     cfg_min_version = CONF.compute_feature_enabled.min_microversion
     cfg_max_version = CONF.compute_feature_enabled.max_microversion
     api_version_utils.check_skip_with_microversion(cls.min_microversion,
                                                    cls.max_microversion,
                                                    cfg_min_version,
                                                    cfg_max_version)
Ejemplo n.º 3
0
 def skip_checks(cls):
     super(BaseV2ComputeTest, cls).skip_checks()
     if not CONF.service_available.nova:
         raise cls.skipException("Nova is not available")
     cfg_min_version = CONF.compute_feature_enabled.min_microversion
     cfg_max_version = CONF.compute_feature_enabled.max_microversion
     api_version_utils.check_skip_with_microversion(cls.min_microversion,
                                                    cls.max_microversion,
                                                    cfg_min_version,
                                                    cfg_max_version)
Ejemplo n.º 4
0
 def _test_version(self,
                   test_min_version,
                   test_max_version,
                   cfg_min_version,
                   cfg_max_version,
                   expected_skip=False):
     try:
         api_version_utils.check_skip_with_microversion(
             test_min_version, test_max_version, cfg_min_version,
             cfg_max_version)
     except testtools.TestCase.skipException as e:
         if not expected_skip:
             raise testtools.TestCase.failureException(e.message)