Add test script for Bifrost using keystone
Change-Id: Ib9499c41cb832aaef941b7ee5eedf82d756c80f7
This commit is contained in:
parent
69af537eb9
commit
b17e4fcd6c
1
scripts/test-bifrost-keystone-auth.sh
Symbolic link
1
scripts/test-bifrost-keystone-auth.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
test-bifrost.sh
|
@ -38,6 +38,7 @@ WRITE_INTERFACES_FILE=true
|
|||||||
PROVISION_WAIT_TIMEOUT=${PROVISION_WAIT_TIMEOUT:-900}
|
PROVISION_WAIT_TIMEOUT=${PROVISION_WAIT_TIMEOUT:-900}
|
||||||
NOAUTH_MODE=true
|
NOAUTH_MODE=true
|
||||||
ENABLE_KEYSTONE=false
|
ENABLE_KEYSTONE=false
|
||||||
|
CLOUD_CONFIG=""
|
||||||
|
|
||||||
# NOTE(cinerama): We could remove this if we change the CI job to use
|
# NOTE(cinerama): We could remove this if we change the CI job to use
|
||||||
# USE_DHCP, BUILD_IMAGE, etc.
|
# USE_DHCP, BUILD_IMAGE, etc.
|
||||||
@ -48,6 +49,8 @@ elif [ $SOURCE = "test-bifrost-venv.sh" ]; then
|
|||||||
USE_VENV="true"
|
USE_VENV="true"
|
||||||
elif [ $SOURCE = "test-bifrost-build-images.sh" ]; then
|
elif [ $SOURCE = "test-bifrost-build-images.sh" ]; then
|
||||||
BUILD_IMAGE="true"
|
BUILD_IMAGE="true"
|
||||||
|
elif [ $SOURCE = "test-bifrost-keystone-auth.sh" ]; then
|
||||||
|
ENABLE_KEYSTONE="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Source Ansible
|
# Source Ansible
|
||||||
@ -69,7 +72,7 @@ else
|
|||||||
fi
|
fi
|
||||||
set -x -o nounset
|
set -x -o nounset
|
||||||
|
|
||||||
# Adjust options for DHCP or create VM tests
|
# Adjust options for DHCP, VM, or Keystone tests
|
||||||
if [ ${USE_DHCP} = "true" ]; then
|
if [ ${USE_DHCP} = "true" ]; then
|
||||||
VM_MEMORY_SIZE="1024"
|
VM_MEMORY_SIZE="1024"
|
||||||
ENABLE_INSPECTOR=false
|
ENABLE_INSPECTOR=false
|
||||||
@ -86,6 +89,9 @@ elif [ ${BUILD_IMAGE} = "true" ]; then
|
|||||||
INSPECT_NODES=false
|
INSPECT_NODES=false
|
||||||
DOWNLOAD_IPA=false
|
DOWNLOAD_IPA=false
|
||||||
CREATE_IPA_IMAGE=true
|
CREATE_IPA_IMAGE=true
|
||||||
|
elif [ ${ENABLE_KEYSTONE} = "true" ]; then
|
||||||
|
NOAUTH_MODE=false
|
||||||
|
CLOUD_CONFIG="-e cloud_name=bifrost"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change working directory
|
# Change working directory
|
||||||
@ -141,7 +147,8 @@ ${ANSIBLE} -vvvv \
|
|||||||
-e write_interfaces_file=${WRITE_INTERFACES_FILE} \
|
-e write_interfaces_file=${WRITE_INTERFACES_FILE} \
|
||||||
-e wait_timeout=${PROVISION_WAIT_TIMEOUT} \
|
-e wait_timeout=${PROVISION_WAIT_TIMEOUT} \
|
||||||
-e noauth_mode=${NOAUTH_MODE} \
|
-e noauth_mode=${NOAUTH_MODE} \
|
||||||
-e enable_keystone=${ENABLE_KEYSTONE}
|
-e enable_keystone=${ENABLE_KEYSTONE} \
|
||||||
|
${CLOUD_CONFIG}
|
||||||
EXITCODE=$?
|
EXITCODE=$?
|
||||||
|
|
||||||
if [ $EXITCODE != 0 ]; then
|
if [ $EXITCODE != 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user