Skip to content

Commit

Permalink
changes from release-1201 from develop
Browse files Browse the repository at this point in the history
Signed-off-by: Ritik Jain (IN74108) <[email protected]>
  • Loading branch information
Ritik Jain (IN74108) committed Apr 15, 2024
2 parents c1f8f8f + 07528cd commit 13213d2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ public void logAudit_WithValidStatus_ThenPass() throws Exception {
new ParameterizedTypeReference<ResponseWrapper>() {
};
Mockito.when(authTransactionHelper.getAuthToken()).thenReturn("authToken");
Mockito.when(objectMapper.writeValueAsString(any())).thenReturn("requestBody");
Mockito.when(restTemplate.exchange(
Mockito.any(RequestEntity.class),
Mockito.eq(responseType)
)).thenReturn(responseEntity);
try {
idaAuditPlugin.logAudit(username,action, status, auditDTO, null);
Assert.assertTrue(true);
Expand All @@ -115,6 +120,11 @@ public void logAudit_WithUnauthorizedStatus_ThenPass() throws Exception {
new ParameterizedTypeReference<ResponseWrapper>() {
};
Mockito.when(authTransactionHelper.getAuthToken()).thenReturn("authToken");
Mockito.when(objectMapper.writeValueAsString(any())).thenReturn("requestBody");
Mockito.when(restTemplate.exchange(
Mockito.any(RequestEntity.class),
Mockito.eq(responseType)
)).thenReturn(responseEntity);
try {
idaAuditPlugin.logAudit(username,action, status, auditDTO, null);
Assert.assertTrue(true);
Expand All @@ -135,6 +145,11 @@ public void logAudit_WithForbiddenStatus_ThenPass() throws Exception {
new ParameterizedTypeReference<ResponseWrapper>() {
};
Mockito.when(authTransactionHelper.getAuthToken()).thenReturn("authToken");
Mockito.when(objectMapper.writeValueAsString(any())).thenReturn("requestBody");
Mockito.when(restTemplate.exchange(
Mockito.any(RequestEntity.class),
Mockito.eq(responseType)
)).thenReturn(responseEntity);
try {
idaAuditPlugin.logAudit(username,action, status, auditDTO, null);
Assert.assertTrue(true);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
\echo 'Upgrade Queries not required for the transition from 1.2.0.1-B5 to 1.2.0.1'

ALTER TABLE ida.credential_event_store ALTER COLUMN credential_transaction_id type character varying(36);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
\echo 'Upgrade Queries not required for transition from 1.2.0.1-B5 to 1.2.0.1'
\c mosip_ida

ALTER TABLE ida.credential_event_store ALTER COLUMN credential_transaction_id type character varying(64);

DROP INDEX IF EXISTS ida.ind_otphsh;

CREATE INDEX ind_refid ON ida.otp_transaction (ref_id,status_code);

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\echo 'Rollback Queries not required for transition from $CURRENT_VERSION to $UPGRADE_VERSION'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\echo 'Upgrade Queries not required for transition from $CURRENT_VERSION to $UPGRADE_VERSION'

0 comments on commit 13213d2

Please sign in to comment.