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

MOSIP-37533 - Synced the release-1.3.0 branch with develop branch #1673

Merged
merged 48 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
8e2b90b
MOSIP-36516
anup-nehe Oct 22, 2024
09b55d3
MOSIP-36693
nandhu-kumar Oct 22, 2024
3cd818a
Merge remote-tracking branch 'upstream/develop' into develop
nandhu-kumar Oct 22, 2024
109a852
Merge pull request #1657 from nandhu-kumar/develop
mohanachandran-s Oct 22, 2024
608f150
MOSIP-36516
anup-nehe Oct 23, 2024
694d78d
Merge remote-tracking branch 'upstream/develop' into develop
anup-nehe Oct 23, 2024
bbf8d29
Merge pull request #1658 from anup-nehe/develop
mohanachandran-s Oct 23, 2024
e134f1a
MOSIP-34016 Corrected readme for java 21 (#1546)
kameshsr Oct 23, 2024
7cee08a
MOSIP-30000
nandhu-kumar Oct 23, 2024
7f484c0
Merge remote-tracking branch 'upstream/develop' into develop
nandhu-kumar Oct 23, 2024
42a549d
MOSIP-30000
nandhu-kumar Oct 23, 2024
9d65e59
Merge pull request #1659 from nandhu-kumar/develop
mohanachandran-s Oct 23, 2024
315f403
Merge branch 'develop' of https://github.com/mosip/mosip-functional-t…
mohanachandran-s Oct 23, 2024
7ce92a9
MOSIP-36280
Sohandey Oct 28, 2024
acd4aa0
Merge pull request #1660 from Sohandey/develop
mohanachandran-s Oct 28, 2024
7603df1
MOSIP-36649 - implemented for fetching location data with location code
mohanachandran-s Oct 29, 2024
cfb8e94
Reverted POM changes
mohanachandran-s Oct 29, 2024
966528b
ES-1674
nandhu-kumar Oct 29, 2024
277254f
Merge remote-tracking branch 'upstream/develop' into develop
nandhu-kumar Oct 29, 2024
5368f35
Merge pull request #1661 from mohanachandran-s/develop
mohanachandran-s Oct 29, 2024
08b2bc6
Merge remote-tracking branch 'upstream/develop' into develop
nandhu-kumar Oct 29, 2024
c9523fa
Merge pull request #1662 from nandhu-kumar/develop
mohanachandran-s Oct 29, 2024
5806e14
MOSIP-36400 Fixed auth demo service
kameshsr Oct 29, 2024
845cfd4
MOSIP-36400 Fixed auth demo service
kameshsr Oct 29, 2024
cb32623
ES-1425
nandhu-kumar Oct 30, 2024
c111d36
Merge remote-tracking branch 'upstream/develop' into develop
nandhu-kumar Oct 30, 2024
4ad2265
Merge pull request #1664 from nandhu-kumar/develop
lsivanand Oct 30, 2024
f903995
Merge pull request #1663 from kameshsr/MOSIP-36400
mohanachandran-s Nov 4, 2024
4db2638
MOSIP-37258
Nov 7, 2024
ed4a56e
Merge pull request #1665 from jayesh12234/develop
mohanachandran-s Nov 7, 2024
0cc4287
MOSIP-37258
Nov 7, 2024
ee0016d
Merge pull request #1666 from jayesh12234/develop
mohanachandran-s Nov 7, 2024
5b6051b
Update AdminTestUtil.java
Sohandey Nov 12, 2024
3337898
Merge pull request #1668 from Sohandey/patch-1
lsivanand Nov 12, 2024
eabb571
MOSIP-31505
Sohandey Nov 14, 2024
596e9cb
Merge remote-tracking branch 'upstream/develop' into develop
Sohandey Nov 14, 2024
179be27
Merge pull request #1669 from Sohandey/develop
mohanachandran-s Nov 14, 2024
c407bb3
MOSIP-37475
Sohandey Nov 18, 2024
e197cb9
Merge remote-tracking branch 'upstream/develop' into develop
Sohandey Nov 18, 2024
4909c53
MOSIP-37213
mohanachandran-s Nov 18, 2024
b451995
Merge branch 'develop' of https://github.com/mosip/mosip-functional-t…
mohanachandran-s Nov 18, 2024
126df14
Merge pull request #1672 from mohanachandran-s/develop
mohanachandran-s Nov 18, 2024
212441e
Pulled latest changes
mohanachandran-s Nov 18, 2024
2e7a76a
Pulled latest changes
mohanachandran-s Nov 18, 2024
740fad7
MOSIP-37606
nandhu-kumar Nov 20, 2024
24e35be
Merge pull request #1674 from nandhu-kumar/develop
mohanachandran-s Nov 20, 2024
58e7a35
Merge pull request #1671 from Sohandey/develop
mohanachandran-s Nov 25, 2024
d4070ad
Merge remote-tracking branch 'upstream/develop' into release-1.3.0
mohanachandran-s Nov 25, 2024
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
5 changes: 5 additions & 0 deletions apitest-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@
<artifactId>java-jwt</artifactId>
<version>4.4.0</version>
</dependency>
<dependency>
<groupId>org.glassfish.tyrus.bundles</groupId>
<artifactId>tyrus-standalone-client</artifactId>
<version>1.13.1</version>
</dependency>
<dependency>
<groupId>io.mosip.authentication</groupId>
<artifactId>authentication-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.apache.log4j.PropertyConfigurator;
import org.json.JSONArray;
import org.json.simple.JSONObject;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.ITestContext;
import org.testng.annotations.AfterSuite;

Expand All @@ -44,7 +43,7 @@
* All suite level before and after tests will be completed here.
*
*/
public class BaseTestCase extends AbstractTestNGSpringContextTests {
public class BaseTestCase {

protected static Logger logger = Logger.getLogger(BaseTestCase.class);
public static OTPListener otpListener = null;
Expand Down Expand Up @@ -75,6 +74,7 @@ public class BaseTestCase extends AbstractTestNGSpringContextTests {
public String partnerCookie = null;
public String partnerrevampCookie = null;
public String partnerrevampdeviceCookie = null;
public String partnerrevampftmCookie = null;
public String partnerNewCookie = null;
public String withoutpartnerCookie = null;
public String withoutpolicyCookie = null;
Expand Down Expand Up @@ -133,6 +133,8 @@ public class BaseTestCase extends AbstractTestNGSpringContextTests {
public static String hierarchyName = "";
public static int hierarchyLevel = 0;
public static String parentLocCode = "";
public static String locationName = "";
public static int hierarchyLevelWithLocationCode = 0;

public static String locationCode = "";
public static String ZonelocationCode = "";
Expand Down Expand Up @@ -208,7 +210,7 @@ public static String getGlobalResourcePath() {
if (runTypeS.equalsIgnoreCase("JAR")) {
path = new File(jarURLS).getParentFile().getAbsolutePath() + "/MosipTestResource/MosipTemporaryTestResource";
} else if (runTypeS.equalsIgnoreCase("IDE")) {
path = new File(MosipTestRunner.class.getClassLoader().getResource("").getPath()).getAbsolutePath()
path = new File(BaseTestCase.class.getClassLoader().getResource("").getPath()).getAbsolutePath()
+ "/MosipTestResource/MosipTemporaryTestResource";
if (path.contains(GlobalConstants.TESTCLASSES))
path = path.replace(GlobalConstants.TESTCLASSES, "classes");
Expand Down Expand Up @@ -571,10 +573,12 @@ public static List<String> getLanguageList() {
}

private static String targetEnvVersion = "";

public static boolean isTargetEnvLatest = false;

public static boolean isTargetEnvLTS() {

if (targetEnvVersion.isEmpty()) {
if (targetEnvVersion.isEmpty() && isTargetEnvLatest == false) {

Response response = null;
org.json.JSONObject responseJson = null;
Expand All @@ -585,14 +589,16 @@ public static boolean isTargetEnvLTS() {
responseJson = new org.json.JSONObject(response.getBody().asString());

targetEnvVersion = responseJson.getJSONObject("build").getString("version");
isTargetEnvLatest = isVersionGreaterOrEqual(targetEnvVersion, "1.2");

} catch (Exception e) {
logger.error(GlobalConstants.EXCEPTION_STRING_2 + e);
}
}

// Compare the version numbers, ignoring any suffix like "-SNAPSHOT"
return isVersionGreaterOrEqual(targetEnvVersion, "1.2");

return isTargetEnvLatest;
}

private static boolean isVersionGreaterOrEqual(String version1, String version2) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void copyCommonResources(String moduleName) {
public static void getListOfFilesFromJarAndCopyToExternalResource(String key) {
ZipInputStream zipInputStream = null;
try {
CodeSource src = MosipTestRunner.class.getProtectionDomain().getCodeSource();
CodeSource src = BaseTestCase.class.getProtectionDomain().getCodeSource();
if (src != null) {
URL jar = src.getLocation();
zipInputStream = new ZipInputStream(jar.openStream());
Expand Down Expand Up @@ -106,7 +106,7 @@ private static boolean copyFilesFromJarToOutsideResource(String resourceFilePare
String resourceFileAbsolutePath = resourceFileParentPath + "MosipTemporaryTestResource/" + resourceFileName;
File destinationFile = new File(resourceFileAbsolutePath);
LOGGER.info("resourceFile : " + BaseTestCase.jarURLS + "destinationFile : " + resourceFileAbsolutePath);
org.apache.commons.io.FileUtils.copyInputStreamToFile(MosipTestRunner.class.getResourceAsStream("/" + resourceFileName), destinationFile);
org.apache.commons.io.FileUtils.copyInputStreamToFile(BaseTestCase.class.getResourceAsStream("/" + resourceFileName), destinationFile);
return true;
} catch (Exception e) {
LOGGER.error(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,16 @@ public void onError(WebSocket webSocket, Throwable error) {
}

public static String getOtp(String emailId) {
if (ConfigManager.getUsePreConfiguredOtp().equalsIgnoreCase(GlobalConstants.TRUE_STRING)) {
return ConfigManager.getPreConfiguredOtp();
}
int otpExpTime = AdminTestUtil.getOtpExpTimeFromActuator();
int otpCheckLoopCount = (otpExpTime * 1000) / AdminTestUtil.OTP_CHECK_INTERVAL;

int counter = 0;

String otp = "";


if (ConfigManager.getUsePreConfiguredOtp().equalsIgnoreCase(GlobalConstants.TRUE_STRING)) {
return ConfigManager.getPreConfiguredOtp();
}

while (counter < otpCheckLoopCount) {
if (emailNotificationMapS.get(emailId) != null) {
String html = (String) emailNotificationMapS.get(emailId);
Expand Down
Loading
Loading