Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
438e51c
Updated Pom versions for release changes
Prafulrakhade Jul 31, 2024
22924c4
Merge pull request #167 from mosip/releas-branch
ckm007 Jul 31, 2024
d2ae13c
Updated Pom versions for release changes (#168)
ckm007 Aug 1, 2024
5aa2789
[MOSIP-35160] Updated URL from https://github.com/mosip/mosip-infra/b…
Prafulrakhade Sep 9, 2024
b661d91
Merge pull request #173 from Prafulrakhade/release-1.3.x
ckm007 Sep 10, 2024
6763f01
MOSIP-32461 Changing commons versions for 1.3.x branch
Khuddusshariff0022 Oct 7, 2024
4223c6b
MOSIP-32461, MOSIP-36412 Changing commons versions for 1.3.x branch
Khuddusshariff0022 Oct 9, 2024
9cd46ab
Merge pull request #178 from Khuddusshariff0022/release-1.3.x-test
ckm007 Oct 17, 2024
54ab6d1
MOSIP-32461, MOSIP-36412 Changings versions to 1.3.0-beta.1 for 1.3.x…
Khuddusshariff0022 Oct 19, 2024
40a61c5
Merge pull request #180 from Khuddusshariff0022/release-1.3.x-test
ckm007 Oct 22, 2024
88ce15f
[MOSIP-37256 ] adding readme
Khuddusshariff0022 Nov 11, 2024
5e77b6f
Merge pull request #182 from Khuddusshariff0022/release-1.3.x_ReadMe
ckm007 Nov 13, 2024
450162b
Updated chart versions, image and tag for release changes
Prafulrakhade Dec 4, 2024
e3022ec
Merge pull request #183 from mosip/releas-branch
ckm007 Dec 4, 2024
8e32738
[DSD-6825] platform 1.2.1.0-beta-1 release (#184)
ckm007 Dec 10, 2024
aa266cd
Updated chart versions, image and tag for release changes (#185)
ckm007 Dec 10, 2024
1a56485
Updated Pom version and Chart version for post-release changes (#186)
ckm007 Dec 13, 2024
9ab9e6d
[MOSIP-40012] Corrected ZCG
GOKULRAJ136 Feb 26, 2025
f9a5322
Corrected -jar
GOKULRAJ136 Feb 26, 2025
e476aa0
Revert "Corrected -jar"
GOKULRAJ136 Feb 26, 2025
53f4c3a
MOSIP-37901: packet-manager-release (#189)
nagendra0721 Mar 3, 2025
a969274
Merge pull request #193 from GOKULRAJ136/patch-1.3.x
ckm007 Mar 6, 2025
059f8b9
MOSIP-39985 (#195)
GOKULRAJ136 Mar 12, 2025
2e816b8
MOSIP-40717 change version to snaphsot (#196)
kameshsr Mar 17, 2025
b8b1a06
MOSIP-39775 : pom version changes (#202)
GOKULRAJ136 May 27, 2025
294484c
Update push-trigger.yml (#205)
GOKULRAJ136 May 27, 2025
5ebb851
MOSIP-41586 : Snapshot version changes (#207)
GOKULRAJ136 May 28, 2025
c55c9d5
[MOSIP-41627] Updated Resource limits to fix OOM killed issue (#209)
VSIVAKALYAN May 29, 2025
aa12ad9
[MOSIP-41674] central sonatype migration changes (#218)
Prafulrakhade Jul 9, 2025
1de4169
[DSD-8455] PLA 1.3.0-beta phase4 release changes (#221)
ckm007 Jul 9, 2025
41c3691
Updated chart versions, image and tag for release changes (#222)
ckm007 Jul 9, 2025
3e68486
MOSIP-40013
dhanendra06 Jul 10, 2025
4b54df5
I am working on adding JUnit tests for commons-packet and commons-pac…
google-labs-jules[bot] Jul 23, 2025
a4ce536
I am working on adding JUnit tests for commons-packet and commons-pac…
google-labs-jules[bot] Jul 23, 2025
f146c75
I am working on adding JUnit tests for commons-packet and commons-pac…
google-labs-jules[bot] Jul 23, 2025
d8a4cb0
I am working on adding JUnit tests for commons-packet and commons-pac…
google-labs-jules[bot] Jul 23, 2025
caecc8c
Merge branch 'develop' into add-junit-tests
dhanendra06 Jul 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Maven Package upon a push](https://github.com/mosip/packet-manager/actions/workflows/push_trigger.yml/badge.svg?branch=release-1.2.0.1)](https://github.com/mosip/packet-manager/actions/workflows/push_trigger.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?branch=release-1.2.0.1&project=mosip_packet-manager&id=mosip_packet-manager2&metric=alert_status)](https://sonarcloud.io/dashboard?branch=release-1.2.0.1&id=mosip_packet-manager)
[![Maven Package upon a push](https://github.com/mosip/packet-manager/actions/workflows/push-trigger.yml/badge.svg?branch=release-1.3.x)](https://github.com/mosip/packet-manager/actions/workflows/push-trigger.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?branch=release-1.3.x&project=mosip_packet-manager&id=mosip_packet-manager2&metric=alert_status)](https://sonarcloud.io/dashboard?branch=release-1.3.x&id=mosip_packet-manager)

# Packet Manager

Expand Down
655 changes: 327 additions & 328 deletions commons-packet/commons-packet-manager/pom.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package io.mosip.commons.packet.test.audit;

import static org.junit.Assert.assertNotNull;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.audit.AuditLogEntry;

@RunWith(SpringRunner.class)
@SpringBootTest
public class AuditLogEntryTest {

@Test
public void testAuditLogEntry() {
AuditLogEntry auditLogEntry = new AuditLogEntry("test-event", "test-type", "test-app-id", "test-app-name");
assertNotNull(auditLogEntry);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package io.mosip.commons.packet.test.audit;

import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.when;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.env.Environment;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.audit.ServerUtil;
import io.mosip.commons.packet.constants.PacketManagerConstants;

@RunWith(SpringRunner.class)
@SpringBootTest
public class ServerUtilTest {

@Mock
private Environment environment;

@Before
public void setup() {
when(environment.getProperty(PacketManagerConstants.AUDIT_HOST_NAME)).thenReturn("test-host");
when(environment.getProperty(PacketManagerConstants.AUDIT_HOST_IP)).thenReturn("127.0.0.1");
}

@Test
public void testGetHostName() {
String hostName = ServerUtil.getHostName();
assertNotNull(hostName);
}

@Test
public void testGetHostIp() {
String hostIp = ServerUtil.getHostIp();
assertNotNull(hostIp);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.ApiNotAccessibleException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class ApiNotAccessibleExceptionTest {

@Test
public void testApiNotAccessibleException() {
ApiNotAccessibleException exception = new ApiNotAccessibleException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testApiNotAccessibleExceptionWithCause() {
ApiNotAccessibleException exception = new ApiNotAccessibleException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.CryptoException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class CryptoExceptionTest {

@Test
public void testCryptoException() {
CryptoException exception = new CryptoException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testCryptoExceptionWithCause() {
CryptoException exception = new CryptoException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.FieldNameNotFoundException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class FieldNameNotFoundExceptionTest {

@Test
public void testFieldNameNotFoundException() {
FieldNameNotFoundException exception = new FieldNameNotFoundException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testFieldNameNotFoundExceptionWithCause() {
FieldNameNotFoundException exception = new FieldNameNotFoundException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.FileNotFoundInDestinationException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class FileNotFoundInDestinationExceptionTest {

@Test
public void testFileNotFoundInDestinationException() {
FileNotFoundInDestinationException exception = new FileNotFoundInDestinationException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testFileNotFoundInDestinationExceptionWithCause() {
FileNotFoundInDestinationException exception = new FileNotFoundInDestinationException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.GetAllIdentityException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class GetAllIdentityExceptionTest {

@Test
public void testGetAllIdentityException() {
GetAllIdentityException exception = new GetAllIdentityException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testGetAllIdentityExceptionWithCause() {
GetAllIdentityException exception = new GetAllIdentityException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.GetAllMetaInfoException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class GetAllMetaInfoExceptionTest {

@Test
public void testGetAllMetaInfoException() {
GetAllMetaInfoException exception = new GetAllMetaInfoException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testGetAllMetaInfoExceptionWithCause() {
GetAllMetaInfoException exception = new GetAllMetaInfoException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.GetBiometricException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class GetBiometricExceptionTest {

@Test
public void testGetBiometricException() {
GetBiometricException exception = new GetBiometricException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testGetBiometricExceptionWithCause() {
GetBiometricException exception = new GetBiometricException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.GetDocumentException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class GetDocumentExceptionTest {

@Test
public void testGetDocumentException() {
GetDocumentException exception = new GetDocumentException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testGetDocumentExceptionWithCause() {
GetDocumentException exception = new GetDocumentException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.GetTagException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class GetTagExceptionTest {

@Test
public void testGetTagException() {
GetTagException exception = new GetTagException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testGetTagExceptionWithCause() {
GetTagException exception = new GetTagException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.NoAvailableProviderException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class NoAvailableProviderExceptionTest {

@Test
public void testNoAvailableProviderException() {
NoAvailableProviderException exception = new NoAvailableProviderException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testNoAvailableProviderExceptionWithCause() {
NoAvailableProviderException exception = new NoAvailableProviderException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package io.mosip.commons.packet.test.exception;

import static org.junit.Assert.assertEquals;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import io.mosip.commons.packet.exception.ObjectDoesnotExistsException;

@RunWith(SpringRunner.class)
@SpringBootTest
public class ObjectDoesnotExistsExceptionTest {

@Test
public void testObjectDoesnotExistsException() {
ObjectDoesnotExistsException exception = new ObjectDoesnotExistsException("test-message");
assertEquals("test-message", exception.getMessage());
}

@Test
public void testObjectDoesnotExistsExceptionWithCause() {
ObjectDoesnotExistsException exception = new ObjectDoesnotExistsException("test-message", new Throwable());
assertEquals("test-message", exception.getMessage());
}
}
Loading
Loading