Browse Source

take into account status codes by leveraging `--fail` curl option (Refs #37)

pull/1943/head
Anton Kaliaev 8 years ago
parent
commit
aff0fe5c5c
No known key found for this signature in database GPG Key ID: 7B6881D965918214
4 changed files with 10 additions and 10 deletions
  1. +2
    -2
      mintnet-kubernetes/app.template.yaml
  2. +4
    -4
      mintnet-kubernetes/examples/basecoin/app.yaml
  3. +2
    -2
      mintnet-kubernetes/examples/counter/app.yaml
  4. +2
    -2
      mintnet-kubernetes/examples/dummy/app.yaml

+ 2
- 2
mintnet-kubernetes/app.template.yaml View File

@ -129,11 +129,11 @@ spec:
# wait until validator generates priv/pub key pair
set +e
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
ERR=$?
while [ "$ERR" != 0 ]; do
sleep 5
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
ERR=$?
done
set -e


+ 4
- 4
mintnet-kubernetes/examples/basecoin/app.yaml View File

@ -188,11 +188,11 @@ spec:
# wait until validator generates priv/pub key pair
set +e
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
ERR=$?
while [ "$ERR" != 0 ]; do
sleep 5
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
ERR=$?
done
set -e
@ -247,11 +247,11 @@ spec:
# wait until pod starts to serve its pub_key
set +e
curl -s "http://$pod.$fqdn_suffix/app_pub_key.json" > /dev/null
curl -s --fail "http://$pod.$fqdn_suffix/app_pub_key.json" > /dev/null
ERR=$?
while [ "$ERR" != 0 ]; do
sleep 5
curl -s "http://$pod.$fqdn_suffix/app_pub_key.json" > /dev/null
curl -s --fail "http://$pod.$fqdn_suffix/app_pub_key.json" > /dev/null
ERR=$?
done
set -e


+ 2
- 2
mintnet-kubernetes/examples/counter/app.yaml View File

@ -121,11 +121,11 @@ spec:
# wait until validator generates priv/pub key pair
set +e
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
ERR=$?
while [ "$ERR" != 0 ]; do
sleep 5
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
ERR=$?
done
set -e


+ 2
- 2
mintnet-kubernetes/examples/dummy/app.yaml View File

@ -121,11 +121,11 @@ spec:
# wait until validator generates priv/pub key pair
set +e
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
ERR=$?
while [ "$ERR" != 0 ]; do
sleep 5
curl -s "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
curl -s --fail "http://$v.$fqdn_suffix/pub_key.json" > /dev/null
ERR=$?
done
set -e


Loading…
Cancel
Save