Skip to content

Commit

Permalink
MAT-6401 gitleak
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-cecilialiu committed Nov 26, 2024
1 parent 94a06ca commit 20d05ea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void beforeEach() {
.thenReturn("/cql/translator/cql");
}

private final String HEADER_API_KEY = "api-key";
private final String HEADER_APIKEY = "api-key";

@Test
void testRestTemplateHandlesClientErrorException() {
Expand Down Expand Up @@ -147,9 +147,9 @@ void testQiCoreGetElmJsonURI() {
@Test
void testGetCqlHttpEntity() {
HttpEntity<String> httpEntity =
elmTranslatorClient.getCqlHttpEntity("test cql", null, HEADER_API_KEY + "1", "HARP_ID1");
elmTranslatorClient.getCqlHttpEntity("test cql", null, HEADER_APIKEY + "1", "HARP_ID1");
HttpHeaders headers = httpEntity.getHeaders();
assertEquals(headers.get(HEADER_API_KEY).get(0), HEADER_API_KEY + "1");
assertEquals(headers.get(HEADER_APIKEY).get(0), HEADER_APIKEY + "1");
assertEquals(headers.get("harp-id").get(0), "HARP_ID1");
}
}

0 comments on commit 20d05ea

Please sign in to comment.