Don't run swap_volume tests in Tempest if cells v1 is enabled

Cells v1 apparently doesn't support the swap volume API which
was recently enabled for testing in change:

92575baa6b

Rather than revert that change, we should just handle the cells
v1 case and not enable that test in that environment.

Change-Id: I80f52e8299641098d90d3c374a80770fc45b8122
Closes-Bug: #1660511
(cherry picked from commit e9a9fbef8f)
This commit is contained in:
Matt Riedemann 2017-01-30 22:22:43 -05:00
parent 080d8e3a7f
commit a0c2fe25cb
1 changed files with 3 additions and 1 deletions

View File

@ -522,8 +522,10 @@ function configure_tempest {
iniset $TEMPEST_CONFIG compute-feature-enabled shelve False
iniset $TEMPEST_CONFIG compute-feature-enabled snapshot False
iniset $TEMPEST_CONFIG compute-feature-enabled suspend False
elif ! is_service_enabled n-cell; then
# cells v1 does not support swapping volumes
iniset $TEMPEST_CONFIG compute-feature-enabled swap_volume True
fi
iniset $TEMPEST_CONFIG compute-feature-enabled swap_volume True
fi
# ``service_available``