Skip to content

Commit

Permalink
git checks generic credential issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaLiu8 committed Sep 29, 2022
1 parent 1697bfb commit bdb50a3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public void TestCqlToElmJsonForMatTransferredMeasureSuccess() {
CqlConversionPayload payload = CqlConversionPayload.builder().json(result).build();
when(cqlConversionService.processCqlDataWithErrors(any(RequestData.class))).thenReturn(payload);

when(request.getHeader("api-key")).thenReturn("testapikey");
when(request.getHeader("api-key")).thenReturn("key4api");
when(request.getHeader("harp-id")).thenReturn("test");
CqlConversionPayload cqlConversionPayload =
matMeasureController.cqlToElmJsonForMatTransferredMeasure(
cqlData, null, true, true, true, true, true, true, true, true, request, "testapikey");
cqlData, null, true, true, true, true, true, true, true, true, request, "key4api");

assertEquals(result, cqlConversionPayload.getJson());
verify(cqlConversionService).processCqlDataWithErrors(any());
Expand All @@ -51,7 +51,7 @@ public void TestCqlToElmJsonForMatTransferredMeasureFail() {
String cqlData = getData("/cv_populations.cql");
String result = getData("/cv_populations.json");

when(request.getHeader("api-key")).thenReturn("testapikey");
when(request.getHeader("api-key")).thenReturn("key4api");
when(request.getHeader("harp-id")).thenReturn("test2");
CqlConversionPayload cqlConversionPayload =
matMeasureController.cqlToElmJsonForMatTransferredMeasure(
Expand Down

0 comments on commit bdb50a3

Please sign in to comment.