From adec96fdd2dcc4f0df027c8dd65bc1e5aedece0c Mon Sep 17 00:00:00 2001 From: Naduni Pamudika Date: Tue, 23 Jan 2024 19:27:30 +0530 Subject: [PATCH 1/2] Disable benchmark tests --- modules/integration/tests-integration/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/integration/tests-integration/pom.xml b/modules/integration/tests-integration/pom.xml index f188ee3967..e5b236ff2f 100644 --- a/modules/integration/tests-integration/pom.xml +++ b/modules/integration/tests-integration/pom.xml @@ -31,7 +31,7 @@ under the License. pom - tests-benchmark + tests-backend tests-restart From cdce5ee235dbca6a59ed09f86a05627a72bd5e9a Mon Sep 17 00:00:00 2001 From: Naduni Pamudika Date: Tue, 23 Jan 2024 19:44:28 +0530 Subject: [PATCH 2/2] Stop servers after executing the tests --- .../integration/tests/other/SOAPAPIImportExportTestCase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/SOAPAPIImportExportTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/SOAPAPIImportExportTestCase.java index 1e52dd84f8..9ad843e699 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/SOAPAPIImportExportTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/SOAPAPIImportExportTestCase.java @@ -220,6 +220,9 @@ public static Object[][] userModeDataProvider() { @AfterClass(alwaysRun = true) public void destroy() throws Exception { + if (wireMockServer != null) { + wireMockServer.stop(); + } restAPIPublisher.deleteAPI(newSoapToRestAPIId); userManagementClient.deleteRole(SOAPTOREST_ROLE); userManagementClient.deleteUser(SOAPTOREST_TEST_USER);