heat/heat_integrationtests/post_test_hook.sh
Pavlo Shchelokovskyy 5cf295c991 Fix integration tests hooks
This patch fixes two problems:
- due to bug #1475227 in DevStack our integration tests in fact are
  being run under admin user/tenant instead of demo
- convergence_engine option is being put in the wrong config section

Change-Id: I5a4b691b2b86993642d5411060b16d73207888d5
2015-07-17 11:01:31 +00:00

25 lines
912 B
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.
set -x
export DEST=${DEST:-/opt/stack/new}
source $DEST/devstack/openrc admin admin
sudo -E $DEST/heat/heat_integrationtests/prepare_test_env.sh
sudo -E $DEST/heat/heat_integrationtests/prepare_test_network.sh
source $DEST/devstack/openrc demo demo
sudo -E tox -eintegration