diff --git a/backend/src/main/java/gov/cdc/usds/simplereport/api/heathcheck/BackendAndDatabaseHealthIndicator.java b/backend/src/main/java/gov/cdc/usds/simplereport/api/heathcheck/BackendAndDatabaseHealthIndicator.java index 4695ce410e..e10bb0c315 100644 --- a/backend/src/main/java/gov/cdc/usds/simplereport/api/heathcheck/BackendAndDatabaseHealthIndicator.java +++ b/backend/src/main/java/gov/cdc/usds/simplereport/api/heathcheck/BackendAndDatabaseHealthIndicator.java @@ -14,27 +14,27 @@ @Slf4j @RequiredArgsConstructor public class BackendAndDatabaseHealthIndicator implements HealthIndicator { - private final FeatureFlagRepository _ffRepo; - private final OktaRepository _oktaRepo; + private final FeatureFlagRepository _ffRepo; + private final OktaRepository _oktaRepo; - @Override - public Health health() { - try { - _ffRepo.findAll(); - String oktaStatus = _oktaRepo.getApplicationStatusForHealthCheck(); + @Override + public Health health() { + try { + _ffRepo.findAll(); + String oktaStatus = _oktaRepo.getApplicationStatusForHealthCheck(); - if (oktaStatus.equals("ACTIVE")) { - log.info("Okta status didn't return active, instead returned %s", oktaStatus); - return Health.down().build(); - } + if (oktaStatus.equals("ACTIVE")) { + log.info("Okta status didn't return active, instead returned %s", oktaStatus); + return Health.down().build(); + } - return Health.up().build(); - } catch (JDBCConnectionException e) { - return Health.down().build(); - // Okta API call errored - } catch (ApiException e) { - log.info(e.getMessage()); - return Health.down().build(); - } + return Health.up().build(); + } catch (JDBCConnectionException e) { + return Health.down().build(); + // Okta API call errored + } catch (ApiException e) { + log.info(e.getMessage()); + return Health.down().build(); } + } } diff --git a/backend/src/main/resources/application.yaml b/backend/src/main/resources/application.yaml index 726ac9eaac..8f792d8cc0 100644 --- a/backend/src/main/resources/application.yaml +++ b/backend/src/main/resources/application.yaml @@ -88,7 +88,6 @@ okta: client: org-url: https://hhs-prime.okta.com token: ${OKTA_API_KEY:MISSING} - group: smarty-streets: id: ${SMARTY_AUTH_ID} token: ${SMARTY_AUTH_TOKEN} diff --git a/frontend/src/app/DeploySmokeTest.tsx b/frontend/src/app/DeploySmokeTest.tsx index e87fbbf1d3..1ddcbc3e9e 100644 --- a/frontend/src/app/DeploySmokeTest.tsx +++ b/frontend/src/app/DeploySmokeTest.tsx @@ -11,7 +11,6 @@ const DeploySmokeTest = (): JSX.Element => { .then((response) => { const status = JSON.parse(response); if (status.status === "UP") return setSuccess(true); - // log something using app insights setSuccess(false); }) .catch((e) => {