Skip to content

Commit

Permalink
run inspec tests last since they don't tolerate 500s
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel DeLeo <dan@chef.io>
  • Loading branch information
danielsdeleo committed Feb 13, 2020
1 parent e906147 commit 7922677
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration/tests/cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ do_test_deploy() {
export ELASTICSEARCH_URL="http://$frontend1_ip:10144"
test_notifications_endpoint="http://$test_container_ip:15555"

run_inspec_tests "${A2_ROOT_DIR}" "a2-iam-v2-integration"

local admin_token
admin_token=$(docker exec -t "$_frontend1_container_name" \
"$cli_bin" iam token create --admin "diagnostics-test-$RANDOM")
Expand All @@ -106,4 +104,10 @@ do_test_deploy() {
"$cli_bin" diagnostics run --admin-token "$admin_token" "~iam-v1" "~applications"

"$cli_bin" diagnostics run --admin-token "$admin_token" "~iam-v1" "~purge" "~cli" "~grpc" "~deployment" "~applications"

# Inspec tests are less tolerant of transient 500s; we expect a few of
# those as bad postgres connections get purged from the various services.
# So we run all the diagnostics first to clear those out before running
# inspec
run_inspec_tests "${A2_ROOT_DIR}" "a2-iam-v2-integration"
}

0 comments on commit 7922677

Please sign in to comment.