From 5db146f526a3c45e4184ff3102c834a2b7cdc7cc Mon Sep 17 00:00:00 2001 From: zhufl Date: Fri, 28 Apr 2017 12:03:57 +0800 Subject: [PATCH] Correct skip condition for migrate_server CONF.compute_feature_enabled.cold_migration should be checked for migrate_server, this is to use the right skip condition for migrate_server. Change-Id: Iab825968861a867c788930f3ce27c62cd2323d3c --- tempest/api/compute/admin/test_servers_negative.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tempest/api/compute/admin/test_servers_negative.py b/tempest/api/compute/admin/test_servers_negative.py index b0f18d7846..ca53696e19 100644 --- a/tempest/api/compute/admin/test_servers_negative.py +++ b/tempest/api/compute/admin/test_servers_negative.py @@ -124,8 +124,8 @@ class ServersAdminNegativeTestJSON(base.BaseV2ComputeAdminTest): data_utils.rand_uuid()) @decorators.idempotent_id('b0b17f83-d14e-4fc4-8f31-bcc9f3cfa629') - @testtools.skipUnless(CONF.compute_feature_enabled.resize, - 'Resize not available.') + @testtools.skipUnless(CONF.compute_feature_enabled.cold_migration, + 'Cold migration not available.') @testtools.skipUnless(CONF.compute_feature_enabled.suspend, 'Suspend is not available.') @decorators.attr(type=['negative'])