Adding resources creation and other helper scripts
- prepare.sh
Create all manner of resources needed for testing
Also, creating manifest with all names and IDs for future use
Automated detect, download and create of images
cirros35, cirros40, ubuntu16
- add_user_to_image.sh
Semi-manual script to add user to ubuntu image
- entropy_bench.pl
Benchmark entropy levels on host
- poke.sh
direct curl to project resource using token
- profiled_run.sh
Execute any command several time or one and calculate avg time
- simple_profile.sh
Execute resource listings and calculate avg time
Fixes for cleanup.sh
- container deletion
- cleaning flavors
- mask now cleans all with 'cvp' too
Change-Id: I073857abc2fbee730b983b1d8655e0fa16fee3fc
Related-PROD: PROD-30951
diff --git a/scripts/poke.sh b/scripts/poke.sh
new file mode 100755
index 0000000..70920b9
--- /dev/null
+++ b/scripts/poke.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+if [[ -z ${token+x} ]]; then
+ export token=$(openstack token issue -c id -f value)
+ echo "# Exported token: ${token}"
+fi
+if [[ -z ${project_id+x} ]]; then
+ export project_id=$(openstack project list -c ID -c Name -f value | grep ${OS_PROJECT_NAME} | cut -d' ' -f1)
+ echo "# Exported project_id: ${project_id}"
+fi
+poke_uri=$(echo ${1/project_id/$project_id})
+echo "# Input uri is ${1}"
+echo "[$(date +'%H:%M:%S')] -> '${poke_uri}'"
+curl -sH "X-Auth-Token: ${token}" ${poke_uri} | python -m json.tool