Skip to content

Commit

Permalink
Update testcase to run with bat file
Browse files Browse the repository at this point in the history
  • Loading branch information
chanikag committed Nov 6, 2023
1 parent b4a576b commit 9943784
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public class ESBJAVA3470 extends ESBIntegrationTest {
private String carbonHome;
private ServerConfigurationManager serverConfigurationManager;
private static final String SH_FILE_NAME = "micro-integrator.sh";
private static final String BAT_FILE_NAME = "micro-integrator.bat";

public static KeyPairProvider createTestHostKeyProvider(Path path) {
SimpleGeneratorHostKeyProvider keyProvider = new SimpleGeneratorHostKeyProvider();
Expand All @@ -105,6 +106,11 @@ public void deployService() throws Exception {
File oldShFile =
new File(CarbonBaseUtils.getCarbonHome() + File.separator + "bin" + File.separator + SH_FILE_NAME);
serverConfigurationManager.applyConfigurationWithoutRestart(newShFile, oldShFile, true);
File newBatFile = new File(
getESBResourceLocation() + File.separator + "vfs" + File.separator + BAT_FILE_NAME);
File oldBatFile =
new File(CarbonBaseUtils.getCarbonHome() + File.separator + "bin" + File.separator + BAT_FILE_NAME);
serverConfigurationManager.applyConfigurationWithoutRestart(newBatFile, oldBatFile, true);
serverConfigurationManager.restartGracefully();
super.init();
}
Expand Down

0 comments on commit 9943784

Please sign in to comment.