- Changing contrib/devstack to contrib/add-ons as there is a top-level devstack introduced as part of the devstack plugin architecture. The existence of the contrib/devstack directory was leading to conflicts with the top-level devstack directory. Hence renamed contrib/devstack to contrib/add-ons - Cleaning up gate hooks - Removing oslo.messaging from config generator as it is causing tempest to fail in the gate Along with the changes in this patch we needed the following patch: https://review.openstack.org/#/c/265088/ Closes-Bug: #1532332 Change-Id: I2afc6b96dd04f43aafcbd6e812dc2da4d62bd49e
52 lines
2.4 KiB
Bash
Executable File
52 lines
2.4 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
# This script is executed inside post_test_hook function in devstack gate.
|
|
|
|
# Install packages from test-requirements.txt
|
|
|
|
sudo pip install -r /opt/stack/new/solum/test-requirements.txt
|
|
|
|
sudo pip install -U tempest-lib
|
|
|
|
sudo pip freeze
|
|
|
|
# Generate tempest.conf file
|
|
TEMPEST_BASE=/opt/stack/new/tempest/
|
|
cd $TEMPEST_BASE
|
|
sudo tox -egenconfig
|
|
sudo mkdir -p /etc/tempest
|
|
sudo cp $TEMPEST_BASE/etc/tempest.conf.sample /etc/tempest/tempest.conf
|
|
|
|
# Set test parameters
|
|
sudo sed -i s'/#username = <None>/username = solum_user_a/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#tenant_name = <None>/tenant_name = solum_tenant_a/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#password = <None>/password = solum/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#auth_version = <None>/auth_version = v2/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#admin_domain_name = <None>/admin_domain_name = Default/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#admin_tenant_id = <None>/admin_tenant_id = 22c3991d53eb42cbaff28428b90760c2/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#admin_tenant_name = <None>/admin_tenant_name = admin/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#admin_password = <None>/admin_password = solum/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#admin_username = <None>/admin_username = admin/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#alt_tenant_name = <None>/alt_tenant_name = alt_demo/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#alt_password = <None>/alt_password = solum/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#alt_username = <None>/alt_username = alt_demo/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#uri_v3 = <None>/uri_v3 = http\:\/\/127.0.0.1\:5000\/v3/'g /etc/tempest/tempest.conf
|
|
sudo sed -i s'/#uri = <None>/uri = http\:\/\/127.0.0.1\:5000\/v2.0\//'g /etc/tempest/tempest.conf
|
|
|
|
sudo more /etc/tempest/tempest.conf
|
|
|
|
cd /opt/stack/new/solum/functionaltests
|
|
sudo ./run_tests.sh
|