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)
Beispiel #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)
Beispiel #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)
Beispiel #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)