Skip to content

Commit bd14d07

Browse files
author
Steve Martinelli
committed
unwedge the gate
devstack defaults to v3 and makes some janky assumptions in the generated rc files Change-Id: I4b0b3eb6ab2aa9be2ac4c2404b2f9655e3ed564e
1 parent 262af54 commit bd14d07

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

functional/tests/volume/v1/test_volume.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
1212

13+
import os
1314
import uuid
1415

1516
from functional.tests.volume.v1 import common
@@ -25,6 +26,7 @@ class VolumeTests(common.BaseVolumeTests):
2526

2627
@classmethod
2728
def setUpClass(cls):
29+
os.environ['OS_VOLUME_API_VERSION'] = '1'
2830
opts = cls.get_show_opts(cls.FIELDS)
2931
raw_output = cls.openstack('volume create --size 1 ' + cls.NAME + opts)
3032
expected = cls.NAME + '\n'

post_test_hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OPENSTACKCLIENT_DIR=$(cd $(dirname "$0") && pwd)
1212

1313
echo "Running openstackclient functional test suite"
1414
sudo -H -u stack -i <<!
15-
source ~stack/devstack/accrc/admin/admin
15+
source ~stack/devstack/openrc admin admin
1616
echo 'Running tests with:'
1717
env | grep OS_
1818
cd ${OPENSTACKCLIENT_DIR}

0 commit comments

Comments
 (0)