From 9430b1f8eeed2e909316a9aa6ccf5058105f2dd6 Mon Sep 17 00:00:00 2001 From: hindujaB Date: Fri, 13 Oct 2023 21:39:46 +0530 Subject: [PATCH] Disable failing push tests --- .../test/packaging/PackagingNegativeTestCase.java | 2 +- .../org/ballerinalang/test/packaging/PackagingTestCase.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/PackagingNegativeTestCase.java b/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/PackagingNegativeTestCase.java index 3ddc017d8d2e..118347450ad5 100644 --- a/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/PackagingNegativeTestCase.java +++ b/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/PackagingNegativeTestCase.java @@ -121,7 +121,7 @@ public void testBuildWithoutManifest() throws Exception { moduleBuildLeecher.waitForText(5000); } - @Test(description = "Test pushing a module to central without any content in Module.md") + @Test(description = "Test pushing a module to central without any content in Module.md", enabled = false) public void testPushWithoutModuleMDContent() throws Exception { Path projectPath = Files.createDirectories(tempProjectDirectory).resolve("projectWithoutModuleMDContent"); createProjectStructureAndGetProjectPath(projectPath, moduleName); diff --git a/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/PackagingTestCase.java b/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/PackagingTestCase.java index 79c8c6edb953..cee867fe0964 100644 --- a/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/PackagingTestCase.java +++ b/tests/jballerina-integration-test/src/test/java/org/ballerinalang/test/packaging/PackagingTestCase.java @@ -104,7 +104,7 @@ public void testCreateProject() throws Exception { Assert.assertTrue(Files.isDirectory(projectPath.resolve("src").resolve(moduleName))); } - @Test(description = "Test pushing a package to central", dependsOnMethods = "testCreateProject") + @Test(description = "Test pushing a package to central", dependsOnMethods = "testCreateProject", enabled = false) public void testPush() throws Exception { Path projectPath = tempProjectDirectory.resolve("initProject"); @@ -142,7 +142,7 @@ public void testPush() throws Exception { clientLeecher.waitForText(60000); } - @Test(description = "Test pulling a package from central", dependsOnMethods = "testPush") + @Test(description = "Test pulling a package from central", dependsOnMethods = "testPush", enabled = false) public void testPull() { String baloFileName = moduleName + "-" + ProgramFileConstants.IMPLEMENTATION_VERSION + "-" @@ -165,7 +165,7 @@ public void testPull() { Assert.assertTrue(Files.exists(tempHomeDirectory.resolve(baloPath).resolve(baloFileName))); } - @Test(description = "Test searching a package from central", dependsOnMethods = "testPush") + @Test(description = "Test searching a package from central", dependsOnMethods = "testPush", enabled = false) public void testSearch() throws BallerinaTestException { String actualMsg = balClient.runMainAndReadStdOut("search", new String[]{moduleName}, envVariables, balServer.getServerHome(), false);