Permalink
Browse files

Modify smoketest to snarf the .openrc from the first node running key…

…stone.
  • Loading branch information...
1 parent 571949d commit 08b14fcf992e5ba65793c8b75bcaf7402de7a749 @VictorLowther VictorLowther committed Oct 24, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 smoketest/00-check-keystone.test
@@ -7,6 +7,7 @@ keystone_nodes="$(knife_node_find 'roles:keystone-server' FQDN)"
}
unset http_proxy
+apt-get install python-keystoneclient
for node in $keystone_nodes; do
token=$(curl -sS -d \
$'{"auth":{"passwordCredentials":{"username":"admin","password":"crowbar"}}}' \
@@ -18,4 +19,7 @@ for node in $keystone_nodes; do
}
echo "$token" > "$LOGDIR/keystone-token.json"
echo "Keystone up on $node"
+ [[ -f $HOME/.openrc ]] || scp "$node:/root/.openrc" "$HOME/.openrc"
done
+
+

0 comments on commit 08b14fc

Please sign in to comment.