During debugging, the following changes are also included:
- Support to specify an image ID to run the integration test.
- Fix the reboot function bug.
- Remove the unsuccessful restart test.
How to run integration test with dev_mode=false:
ADMIN_PASSWORD=password \
SERVICE_PASSWORD=password \
DEV_MODE=false \
/opt/stack/trove/integration/scripts/trovestack gate-tests mysql mysql
Change-Id: I31d4ee579a554f4c98f9facb9fd4b7779665a3dd
23 lines
545 B
Bash
Executable File
23 lines
545 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# PURPOSE: Add the guest image user that will own the trove agent source if the
|
|
# user does not already exist
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -e
|
|
set -o pipefail
|
|
|
|
GUEST_USERNAME=${GUEST_USERNAME:-"ubuntu"}
|
|
|
|
if ! id -u ${GUEST_USERNAME} >/dev/null 2>&1; then
|
|
echo "Adding ${GUEST_USERNAME} user"
|
|
useradd -G sudo -m ${GUEST_USERNAME} -s /bin/bash
|
|
chown ${GUEST_USERNAME}:${GUEST_USERNAME} /home/${GUEST_USERNAME}
|
|
passwd ${GUEST_USERNAME} <<_EOF_
|
|
${GUEST_USERNAME}
|
|
${GUEST_USERNAME}
|
|
_EOF_
|
|
fi
|