mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 17:23:09 +00:00
automated integration tests for cloudstack (#20552)
This commit is contained in:
15
test/utils/docker/cloudstack-simulator/run.sh
Executable file
15
test/utils/docker/cloudstack-simulator/run.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
until nc -z localhost 8096; do
|
||||
echo "waiting for port 8096..."
|
||||
sleep 3
|
||||
done
|
||||
|
||||
sleep 3
|
||||
if [ ! -e /var/www/html/admin.json ]
|
||||
then
|
||||
python /opt/cloudstack/tools/marvin/marvin/deployDataCenter.py -i /opt/zones.cfg
|
||||
export CLOUDSTACK_ENDPOINT=http://127.0.0.1:8096
|
||||
export CLOUDSTACK_KEY=""
|
||||
export CLOUDSTACK_SECRET=""
|
||||
cs listUsers account=admin | jq .user[0] > /var/www/html/admin.json
|
||||
fi
|
||||
Reference in New Issue
Block a user