Last active
August 25, 2016 14:49
-
-
Save Spredzy/d8d2893c7b88ab1375b451683af98dd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
stack_name=$1 | |
certification_id=$2 | |
if [[ -z "${certification_id}" ]]; then | |
echo "Usage: run.sh stack_name certification_id" >2 | |
exit 1 | |
fi | |
# TODO (spredzy): Install redhat-certification packages | |
# Probably host the packages on our own server so we don't | |
# need to register the machine with subscription-manager | |
cp /etc/redhat-certification-openstack/test_config.json.sample /etc/redhat-certification-openstack/test_config.json | |
source ${stack_name}rc | |
sed -i 's#"keystone_auth_url" : \(.*\),#"keystone_auth_url" : '$OS_AUTH_URL',#g' /etc/redhat-certification-openstack/test_config.json | |
sed -i 's#"admin_username" : \(.*\),#"admin_username" : '$OS_USERNAME',#g' /etc/redhat-certification-openstack/test_config.json | |
sed -i 's#"admin_password" : \(.*\),#"admin_password" : '$OS_PASSWORD',#g' /etc/redhat-certification-openstack/test_config.json | |
sed -i 's#"admin_tenant_name" : \(.*\),#"admin_tenant_name" : '$OS_TENANT_NAME',#g' /etc/redhat-certification-openstack/test_config.json | |
sed -i 's#"undercloud_stackrc" : \(.*\),#"undercloud_stackrc" : "/home/stack/'$stack_name'rc",#g' /etc/redhat-certification-openstack/test_config.json | |
rhcert-ci run --key=${certification_id} --client 127.0.0.1 --debug high | |
rhcert-ci submit --key=${certification_id} --client 127.0.0.1 --debug high --no-wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment