Skip to content

Commit

Permalink
Merge pull request #762 from jayesh12234/develop
Browse files Browse the repository at this point in the history
MOSIP-35610
  • Loading branch information
aranaravi authored Sep 10, 2024
2 parents 61fd33b + e0cd040 commit 9620981
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ public class ConfigManager {

private static String PACKET_UTILITY_BASE_URL = "packetUtilityBaseUrl";
private static String Testcases = "residentscenariosToExecute";
private static String Image = "image";

private static String image;
private static String testcases;
private static String pms_client_secret;
private static String pms_client_id;
Expand Down Expand Up @@ -417,6 +419,9 @@ public static void init() {

testcases =System.getenv(Testcases) == null ? propsKernel.getProperty(Testcases) : System.getenv(Testcases);
propsKernel.setProperty(Testcases, testcases);

image =System.getenv(Image) == null ? propsKernel.getProperty(Image) : System.getenv(Image);
propsKernel.setProperty(Image, image);

}

Expand All @@ -426,6 +431,10 @@ public static int packetUpdateWait() {
return wait;
}

public static String getimagename() {
return image;
}

public static String gettestcases() {
return testcases;
}
Expand Down Expand Up @@ -814,10 +823,7 @@ private static Properties getproperty(String path) {
return prop;
}

public static String getimagename() {
propsKernel = getproperty(TestRunner.getResourcePath() + "/" + "/config/Kernel.properties");
return propsKernel.getProperty("image");
}

public static String getAuthDemoServiceUrl() {
return ConfigManager.getAuthDemoServiceBaseUrl() + ":" + ConfigManager.getAuthDemoServicePort();
}
Expand Down

0 comments on commit 9620981

Please sign in to comment.