-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from nandhu-kumar/develop
MOSIP-35404 | Move component specific test code from common to component api test rigs
- Loading branch information
Showing
13 changed files
with
98 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
apitest/src/main/java/io/mosip/testrig/apirig/utils/InjiCertifyConfigManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package io.mosip.testrig.apirig.utils; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
|
||
import org.apache.log4j.Logger; | ||
|
||
import io.mosip.testrig.apirig.testrunner.MosipTestRunner; | ||
|
||
public class InjiCertifyConfigManager extends ConfigManager{ | ||
private static final Logger LOGGER = Logger.getLogger(InjiCertifyConfigManager.class); | ||
|
||
public static void init() { | ||
Map<String, Object> moduleSpecificPropertiesMap = new HashMap<>(); | ||
// Load scope specific properties | ||
try { | ||
String path = MosipTestRunner.getGlobalResourcePath() + "/config/injiCertify.properties"; | ||
Properties props = getproperties(path); | ||
// Convert Properties to Map and add to moduleSpecificPropertiesMap | ||
for (String key : props.stringPropertyNames()) { | ||
moduleSpecificPropertiesMap.put(key, props.getProperty(key)); | ||
} | ||
} catch (Exception e) { | ||
LOGGER.error(e.getMessage()); | ||
} | ||
// Add module specific properties as well. | ||
init(moduleSpecificPropertiesMap); | ||
} | ||
|
||
|
||
|
||
} |
Oops, something went wrong.