Commit bf85138d authored by Stavros Sachtouris's avatar Stavros Sachtouris

Adjust test documentation and scripts to OOI

Use image id for OS_TPL, flavor id for RESOURCE_TPL
Add a "server info" field in the basic testing script
parent a5d396a9
......@@ -54,6 +54,7 @@ For instance, if you have a proxy, you may want to run something like:
$ docker run -v my_proxy:/data/my_proxy \
-e OCCI_ENDPOINT="https://okeanos-occi2.hellasgrid.gr:9000" \
-e USER_PROXY="/data/my_proxy" \
-e OS_TPL="debian_base" -e RESOURCE_TPL="c2r2048d20drbd" \
-e OS_TPL="6f1f7205-cf4c-4b8c-ae77-7c419747bcbd"\
-e RESOURCE_TPL="13"\
-ti snf-occi-client:latest
......@@ -68,9 +68,16 @@ eval $CMD
echo
if [ -z "$VM_URL" ]; then
echo "Frankly, I don't know what servers to delete";
echo "Frankly, I don't know what servers to describe or delete";
else
SUFFIX=(`echo ${VM_URL}|awk '{n=split($0,a,"/"); print "/"a[n-1]"/"a[n]}'`)
echo "Details on server instance ${SUFFIX}";
echo "Meaning: kamaki server info ${SERVER_URL}";
CMD="${BASE_CMD} --action describe --resource ${SUFFIX}";
echo "$CMD";
eval $CMD;
echo "Destroy server instance ${SUFFIX}";
echo "Meaning: kamaki server delete ${SERVER_URL}";
CMD="${BASE_CMD} --action delete --resource ${SUFFIX}";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment