From 08c40494c01a9c6742d9f2ede8ca26f5a6ef7664 Mon Sep 17 00:00:00 2001 From: AnuGayan Date: Mon, 21 Oct 2024 23:34:59 +0530 Subject: [PATCH] Remove unused synapse APIs --- .../am/framework/extensions/APIMCarbonServerExtension.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/integration/tests-common/framework-extensions/src/main/java/org/wso2/am/framework/extensions/APIMCarbonServerExtension.java b/modules/integration/tests-common/framework-extensions/src/main/java/org/wso2/am/framework/extensions/APIMCarbonServerExtension.java index d00bf890fc..ae7f7fdac1 100644 --- a/modules/integration/tests-common/framework-extensions/src/main/java/org/wso2/am/framework/extensions/APIMCarbonServerExtension.java +++ b/modules/integration/tests-common/framework-extensions/src/main/java/org/wso2/am/framework/extensions/APIMCarbonServerExtension.java @@ -35,6 +35,7 @@ import org.wso2.carbon.integration.common.utils.FileManager; import java.io.File; +import java.io.FileNotFoundException; import java.io.IOException; import javax.xml.xpath.XPathExpressionException; @@ -116,6 +117,12 @@ public void configureServer() throws AutomationFrameworkException { + "deployment" + File.separator + "server" + File.separator + "synapse-configs" + File.separator + "default" + File.separator + "api"; + try { + FileManager.readFile(synapseApiPath); + } catch (FileNotFoundException e) { + new File(synapseApiPath).mkdirs(); + } + FileManager.copyFile(new File( resourcePath + File.separator + "synapseconfigs" + File.separator + "rest" + File.separator + "BackEndSecurity.xml"), synapseApiPath + File.separator + "BackEndSecurity.xml");