Skip to content

Commit

Permalink
PEPPER-841 PR comments applied, renamed setupJuniperInstance to setup…
Browse files Browse the repository at this point in the history
…JuniperInstanceAndSettings in JuniperSetupUtil, fixed the return of error true in times of success in NonPepperKitCreationService and fixed url for KIT_STATUS_PARTICIPANT_ID
  • Loading branch information
pegahtah committed Aug 22, 2023
1 parent 0f66b07 commit 0f525b0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public KitResponse createNonPepperKit(JuniperKitRequest juniperKitRequest, Strin
}

log.info(juniperKitRequest.getJuniperKitId() + " " + ddpInstance.getName() + " " + kitTypeName + " kit created");
return KitResponse.makeKitResponseError(null, juniperKitRequest.getJuniperKitId(), null);
return KitResponse.makeKitStatusResponse(null);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class RoutePath {
public static final String KIT_STATUS_JUNIPER_KIT_ID = "/kitstatus/juniperKit";
public static final String KIT_STATUS_ENDPOINT_KIT_IDS = "/kitstatus/kits";
public static final String KIT_STATUS_ENDPOINT_PARTICIPANT_ID = "/kitstatus/participant/:participantId";
public static final String KIT_STATUS_PARTICIPANT_ID = "/kitstatus/participantId";
public static final String KIT_STATUS_PARTICIPANT_ID = "/kitstatus/participant";
//Drug list endpoint route
public static final String DRUG_LIST_REQUEST = "/drugs"; // display names only (for survey display)
public static final String CANCER_LIST_REQUEST = "/cancers";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class JuniperKitCreationTest extends DbTxnBaseTest {
public static void setupJuniperBefore() {
JuniperSetupUtil juniperSetupUtil = new JuniperSetupUtil(instanceName, instanceGuid, "Juniper-Test", bspPrefix);
;
juniperSetupUtil.setupJuniperInstance();
juniperSetupUtil.setupJuniperInstanceAndSettings();
ddpInstance = DDPInstance.getDDPInstanceWithRoleByStudyGuid(instanceGuid, DBConstants.JUNIPER_STUDY_INSTANCE_ROLE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class JuniperKitStatusTest extends DbTxnBaseTest {
public static void setupJuniperBefore() {
JuniperSetupUtil juniperSetupUtil = new JuniperSetupUtil(instanceName, instanceGuid, "Juniper-Test", "JuniperTestProject");
;
juniperSetupUtil.setupJuniperInstance();
juniperSetupUtil.setupJuniperInstanceAndSettings();
ddpInstance = DDPInstance.getDDPInstanceWithRoleByStudyGuid(instanceGuid, DBConstants.JUNIPER_STUDY_INSTANCE_ROLE);
when(mockEasyPostUtil.checkAddress(any(), anyString())).thenReturn(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private static String getPrimaryKey(ResultSet rs, String table) throws SQLExcept
}
}

public void setupJuniperInstance() {
public void setupJuniperInstanceAndSettings() {

//everything should get inserted in one transaction
SimpleResult results = inTransaction((conn) -> {
Expand Down

0 comments on commit 0f525b0

Please sign in to comment.