Use demo user and tenant for testing

It will allow us to test how Sahara works for non-admin user.
Register image in Sahara under admin user and make it public.

Change-Id: Iae0684d865951e8bd419498a3de4e50c603b61ae
This commit is contained in:
Sergey Lukjanov 2015-08-23 23:36:58 +03:00
parent 2748f6eb18
commit c5c28361cc
2 changed files with 8 additions and 1 deletions

View File

@ -33,7 +33,8 @@ export LOCALRC_PATH=$DEVSTACK_DIR/localrc
export LOCALCONF_PATH=$DEVSTACK_DIR/local.conf export LOCALCONF_PATH=$DEVSTACK_DIR/local.conf
function sahara_register_fake_plugin_image { function sahara_register_fake_plugin_image {
local props="--property _sahara_tag_0.1=True" local props="--public"
props+=" --property _sahara_tag_0.1=True"
props+=" --property _sahara_tag_fake=True" props+=" --property _sahara_tag_fake=True"
props+=" --property _sahara_username=$SAHARA_FAKE_PLUGIN_IMAGE_USERNAME" props+=" --property _sahara_username=$SAHARA_FAKE_PLUGIN_IMAGE_USERNAME"

View File

@ -26,8 +26,14 @@ source $DEVSTACK_DIR/stackrc
source $DEVSTACK_DIR/openrc admin admin source $DEVSTACK_DIR/openrc admin admin
set -x set -x
# Make public and register in Sahara as admin
sahara_register_fake_plugin_image sahara_register_fake_plugin_image
# Use demo user for running scenario tests
set +x
source $DEVSTACK_DIR/openrc demo demo
set -x
sudo -E chown -R jenkins:stack $SAHARA_DIR sudo -E chown -R jenkins:stack $SAHARA_DIR
cd $SAHARA_DIR cd $SAHARA_DIR