Browse Source

Merge pull request #38 from tendermint/bugfix/non-zero-code-for-404-errors

take into account status codes by leveraging `--fail` curl option
pull/1943/head
Anton Kaliaev 7 years ago
committed by GitHub
parent
commit
3c1a1a8bf5
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 # wait until validator generates priv/pub key pair
set +e 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=$? ERR=$?
while [ "$ERR" != 0 ]; do while [ "$ERR" != 0 ]; do
sleep 5 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=$? ERR=$?
done done
set -e 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 # wait until validator generates priv/pub key pair
set +e 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=$? ERR=$?
while [ "$ERR" != 0 ]; do while [ "$ERR" != 0 ]; do
sleep 5 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=$? ERR=$?
done done
set -e set -e
@ -247,11 +247,11 @@ spec:
# wait until pod starts to serve its pub_key # wait until pod starts to serve its pub_key
set +e 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=$? ERR=$?
while [ "$ERR" != 0 ]; do while [ "$ERR" != 0 ]; do
sleep 5 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=$? ERR=$?
done done
set -e 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 # wait until validator generates priv/pub key pair
set +e 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=$? ERR=$?
while [ "$ERR" != 0 ]; do while [ "$ERR" != 0 ]; do
sleep 5 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=$? ERR=$?
done done
set -e 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 # wait until validator generates priv/pub key pair
set +e 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=$? ERR=$?
while [ "$ERR" != 0 ]; do while [ "$ERR" != 0 ]; do
sleep 5 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=$? ERR=$?
done done
set -e set -e


Loading…
Cancel
Save