Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOSIO-34112] Adding test cases #1899

Conversation

Khuddusshariff0022
Copy link
Contributor

No description provided.

Comment on lines 907 to 908
assertFalse(messageDto.getIsValid());
assertTrue(messageDto.getInternalError());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the ArgumentCaptor as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 939 to 940
assertFalse(messageDto.getIsValid());
assertTrue(messageDto.getInternalError());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the ArgumentCaptor as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 958 to 959
matchedRidList.add("27847657360002520190320095011");
matchedRidList.add("27847657360002520190320095011");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both RIDs should be different.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 967 to 968
assertFalse(messageDto.getIsValid());
assertTrue(messageDto.getInternalError());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the ArgumentCaptor as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 996 to 997
assertFalse(messageDto.getIsValid());
assertTrue(messageDto.getInternalError());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the ArgumentCaptor as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 1025 to 1027
MessageDTO messageDto = bioDedupeProcessor.process(dto, stageName);
assertFalse(messageDto.getIsValid());
assertTrue(messageDto.getInternalError());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use the ArgumentCaptor as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines -188 to -190

}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these extra changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -450,11 +456,11 @@ public void testBioDeDupUpdatePacketHandlerProcessingSuccess() throws ApisResour
* @throws RegistrationProcessorCheckedException
*/
@Test
@Ignore

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we remove this test case or just keep @ignore annotation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

// One match of RID/AID found at bio dedupe,
// but UIN of the duplicate match is different from update packet UIN when AutoReject is True
@Test
public void oneMatchFoundWithDiffrentUinWithMatchAutoRejecAsTrue() throws ApisResourceAccessException, IOException,
Copy link

@ashok-ksharma ashok-ksharma Jul 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct the typo mistake Diffrent -> Different. Check other places as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

public void oneMatchFoundWithDiffrentUinWithMatchAutoRejecAsTrue() throws ApisResourceAccessException, IOException,
PacketDecryptionFailureException, io.mosip.kernel.core.exception.IOException, JsonProcessingException, PacketManagerException {
registrationStatusDto.setRegistrationId("27847657360002520190320095011");
registrationStatusDto.setRegistrationType("UPDATE");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the below for currently processing RID.
registrationStatusDto.setStatusCode("PROCESSING");
Check other occurrences as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ashok-ksharma
Copy link

Code reviewed.

Copy link
Member

@vishwa-vyom vishwa-vyom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving based on Ashok's approval

@vishwa-vyom vishwa-vyom merged commit d39682f into mosip:MOSIP-34112_release Jul 26, 2024
21 checks passed
Khuddusshariff0022 added a commit to Khuddusshariff0022/registration that referenced this pull request Aug 1, 2024
* [MOSIO-34112] Adding test cases

Signed-off-by: khuddus shariff <[email protected]>

---------

Signed-off-by: khuddus shariff <[email protected]>
vishwa-vyom pushed a commit that referenced this pull request Aug 4, 2024
…#1901)

* [MOSIO-34112] Adding test cases (#1899)

* [MOSIO-34112] Adding test cases

Signed-off-by: khuddus shariff <[email protected]>

---------

Signed-off-by: khuddus shariff <[email protected]>

* pushtriger changes

Signed-off-by: khuddus shariff <[email protected]>

* added logger

Signed-off-by: khuddus shariff <[email protected]>

* test case modification

Signed-off-by: khuddus shariff <[email protected]>

* test case modification commented changes

Signed-off-by: khuddus shariff <[email protected]>

* test case modification commented changes

Signed-off-by: khuddus shariff <[email protected]>

---------

Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Signed-off-by: khuddus shariff <[email protected]>
Co-authored-by: Sowmya Ujjappa Banakar <[email protected]>
Co-authored-by: Sowmya Ujjappa Banakar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants