diff --git a/infra/test/infra_test.go b/infra/test/infra_test.go index a62219d6..00e7749b 100644 --- a/infra/test/infra_test.go +++ b/infra/test/infra_test.go @@ -99,6 +99,11 @@ func RunEndToEndTests(t *testing.T, terraformOptions *terraform.Options) { http_helper.HttpGetWithRetryWithCustomValidation(t, serviceEndpoint, nil, 5, 1*time.Second, func(responseStatus int, responseBody string) bool { return responseStatus == 200 }) + // Hit feature flags endpoint to make sure Evidently integration is working + featureFlagsEndpoint := fmt.Sprintf("%s/feature-flags", serviceEndpoint) + http_helper.HttpGetWithRetryWithCustomValidation(t, featureFlagsEndpoint, nil, 5, 1*time.Second, func(responseStatus int, responseBody string) bool { + return responseStatus == 200 + }) fmt.Println("::endgroup::") } diff --git a/template-only-test/template_infra_test.go b/template-only-test/template_infra_test.go index f9ef72c5..1d30b1f2 100644 --- a/template-only-test/template_infra_test.go +++ b/template-only-test/template_infra_test.go @@ -197,6 +197,13 @@ func ValidateDevEnvironment(t *testing.T) { http_helper.HttpGetWithRetryWithCustomValidation(t, serviceEndpoint, nil, 10, 3*time.Second, func(responseStatus int, responseBody string) bool { return responseStatus == 200 }) + + // Hit feature flags endpoint to make sure Evidently integration is working + featureFlagsEndpoint := fmt.Sprintf("%s/feature-flags", serviceEndpoint) + http_helper.HttpGetWithRetryWithCustomValidation(t, featureFlagsEndpoint, nil, 10, 3*time.Second, func(responseStatus int, responseBody string) bool { + return responseStatus == 200 + }) + fmt.Println("::endgroup::") }