File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,13 @@ do_test_deploy() {
92
92
export ELASTICSEARCH_URL=" http://$frontend1_ip :10144"
93
93
test_notifications_endpoint=" http://$test_container_ip :15555"
94
94
95
- run_inspec_tests " ${A2_ROOT_DIR} " " a2-iam-v2-integration"
95
+ # Inspec tests are less tolerant of transient 500s; we expect a few of
96
+ # those as bad postgres connections get purged from the various services.
97
+ # Restart everything before running the tests
98
+ docker exec -t " $_frontend1_container_name " " $cli_bin " restart-services
99
+ docker exec -t " $_frontend2_container_name " " $cli_bin " restart-services
96
100
101
+ run_inspec_tests " ${A2_ROOT_DIR} " " a2-iam-v2-integration"
97
102
local admin_token
98
103
admin_token=$( docker exec -t " $_frontend1_container_name " \
99
104
" $cli_bin " iam token create --admin " diagnostics-test-$RANDOM " )
@@ -106,4 +111,5 @@ do_test_deploy() {
106
111
" $cli_bin " diagnostics run --admin-token " $admin_token " " ~iam-v1" " ~applications"
107
112
108
113
" $cli_bin " diagnostics run --admin-token " $admin_token " " ~iam-v1" " ~purge" " ~cli" " ~grpc" " ~deployment" " ~applications"
114
+
109
115
}
You can’t perform that action at this time.
0 commit comments