From b1698f7cd74cd5190fbb53a480e5421739bcff79 Mon Sep 17 00:00:00 2001 From: Gayal Dassanayake Date: Fri, 26 Apr 2024 11:33:55 +0530 Subject: [PATCH] Change assertions for build tool tests --- .../cli/cmd/RunBuildToolsTaskTest.java | 40 +++++++++++++++--- .../sample-dummy-build-tool-1.4.0.jar | Bin 0 -> 11184 bytes .../unix/build-tool-lt-24-build-file.txt | 1 - ...tool-offline-resolve-failed-wo-version.txt | 1 - .../build-tool-offline-resolve-failed.txt | 1 - ...-offline-with-new-major-version-locked.txt | 1 - .../unix/build-tool-with-sticky.txt | 1 - .../windows/build-tool-lt-24-build-file.txt | 1 - ...tool-offline-resolve-failed-wo-version.txt | 1 - .../build-tool-offline-resolve-failed.txt | 1 - ...-offline-with-new-major-version-locked.txt | 1 - .../windows/build-tool-with-sticky.txt | 1 - 12 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 cli/ballerina-cli/src/test/resources/test-resources/buildToolResources/tools/dummy-tool-pkg/resources/sample-dummy-build-tool-1.4.0.jar diff --git a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/RunBuildToolsTaskTest.java b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/RunBuildToolsTaskTest.java index 2c12bdcc081c..ecbd27c65b4c 100644 --- a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/RunBuildToolsTaskTest.java +++ b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/RunBuildToolsTaskTest.java @@ -18,6 +18,7 @@ package io.ballerina.cli.cmd; +import io.ballerina.cli.launcher.BLauncherException; import io.ballerina.cli.task.RunBuildToolsTask; import io.ballerina.projects.BuildOptions; import io.ballerina.projects.Project; @@ -36,6 +37,7 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.util.List; import java.util.Objects; import java.util.concurrent.atomic.AtomicBoolean; @@ -88,7 +90,7 @@ public void setup() throws IOException { } @Test(description = "Resolve a tool offline", dataProvider = "buildToolOfflineProvider") - public void testOfflineToolResolution(String projectName, String outputFileName, boolean sticky) + public void testOfflineToolResolution(String projectName, String outputFileName, boolean sticky, boolean isError) throws IOException { Path projectPath = buildToolResources.resolve(projectName); Project project = BuildProject.load(projectPath, @@ -97,7 +99,18 @@ public void testOfflineToolResolution(String projectName, String outputFileName, try (MockedStatic repoUtils = Mockito.mockStatic( BuildToolUtils.class, Mockito.CALLS_REAL_METHODS)) { repoUtils.when(BuildToolUtils::getCentralBalaDirPath).thenReturn(mockCentralBalaDirPath); - runBuildToolsTask.execute(project); + try { + runBuildToolsTask.execute(project); + } catch (BLauncherException e) { + if (!isError) { + String errorMsg = "Error executing build tools task for project: " + projectName + + (sticky ? "with sticky." : "without sticky. ") + e.getMessage(); + Assert.fail(errorMsg); + } + List messages = e.getMessages(); + Assert.assertEquals(messages.size(), 1); + Assert.assertEquals(messages.get(0), "error: build tool execution contains errors"); + } } String buildLog = readOutput(true); Assert.assertEquals(buildLog.replaceAll("\r", ""), getOutput(outputFileName)); @@ -135,76 +148,91 @@ public Object[][] buildToolOfflineProvider() { { "project-with-central-build-tool", "build-tool-offline.txt", + false, false }, { "project-with-non-existent-build-tool", "build-tool-offline-resolve-failed.txt", - false + false, + true }, { "fresh-project-with-central-build-tool", "build-tool-offline-resolve-failed-wo-version.txt", - false + false, + true, }, { "project-with-2.x-central-build-tool", "build-tool-offline-with-new-major-version-locked.txt", - false + false, + true }, { "project-with-non-existent-subcommand", "build-tool-non-existent-subcommand.txt", + false, false }, { "project-with-invalid-name-build-tool", "build-tool-invalid-name.txt", + false, false }, { "project-with-multilevel-subcommands", "build-tool-multilevel-subcommands.txt", + false, false }, { "project-with-only-subcommands", "build-tool-only-subcommands.txt", + false, false }, { "project-with-hidden-commands", "build-tool-hidden-commands.txt", + false, false }, { "project-with-missing-interface-build-tool", "build-tool-missing-interface.txt", + false, false }, { "project-with-no-options-build-tool", "build-tool-no-options.txt", + false, false }, { "project-with-old-build-tool", "build-tool-without-sticky.txt", + false, false }, { "project-with-old-build-tool", "build-tool-with-sticky.txt", + true, true }, { "project-lt-24h-with-build-tool", "build-tool-lt-24-build-file.txt", - false + false, + true }, { "project-gt-24h-with-build-tool", "build-tool-gt-24-build-file.txt", + false, false }, }; diff --git a/cli/ballerina-cli/src/test/resources/test-resources/buildToolResources/tools/dummy-tool-pkg/resources/sample-dummy-build-tool-1.4.0.jar b/cli/ballerina-cli/src/test/resources/test-resources/buildToolResources/tools/dummy-tool-pkg/resources/sample-dummy-build-tool-1.4.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..a933078f43e85e71492e59c83c332610b00f405b GIT binary patch literal 11184 zcma)iby$^4_clnwrfYAyySoK9-QC?FDV>T)my#0FNFyDBbazQ3sic&f5|M9n&igwa zIh^-<=eh=-KW6SV^X&Dkxz{~QRRInj6$SxB~{A|Cd!n=(D+porC2+O#Xco+FzsGot+*2>rkBEhd%LeaA}{i9j05N7&tmuzQfMA1b>$72_kQgdo=8%q=ALHR$U`} z_2qKJVC35~dd>@4 z!pu0U3ji+&39ceh*0LLpw2ukB_98o2ReIecL!NabJm-imf*vs9+pvhd#kiAL*;#o^ zm98kJtuE$MC~5Ulj<@9X1I)*b2e}TCOQuDm<|4V;@Lh$z0$=xaai1)ustouS%{%I0 zlVUbh9+-Faw~B&2vyu(ZJ}LIG1(6bZfzHao1XwhBco8%LIR20&%d5n)Q?7ze@BSEb z!t;oq?8DRpeQFu@f{MW=roJ7)-jcrBO8g%jxUl51F!8Jg5%ZM2sYV1<2p|TjT(w;{ zYSU)A>QjV^#bXpU~Ww#U^-k%h$+Q9nvCvY!j{!~)K3`A8QgWG8oE-#mznUN`@SHfOWIVwy0MtK?)J zrG4{2oJK1Wu;~4okX)b3w8wRHE%fu_@)<$xF*ZFBKLgr&$D!K5pwZMwo|B;>Jy_wn z5kYc;9QVfp&Y9Oawuh0q=A#>`GugYgb93FT*L-3{!7)YUN0?BHNv1dw20 znC^8dohNqgR$wz1x4%5=KhC7JsEsFsw@ll`13>RDqM(_Okm2qx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t-^rrDD+$mp*Yrb zS(lb12s4-KpNB)sG}Ve^;E&?(tWpO;=TqeCI_9Y+67uvx zlk9Axgh_J}UljVtF%>p5Sv50W({BX-j@}EZ7HlaL_B>e<^x`ZW7wC zV7^M+{{Jf&-JN!~1nPG1ZOae3eNBH&`&&WOU4+}w(Bt%vc3b!KXS+4*34Qz{g0TO$ zIk#0%f418>8PLZ+=iJ7C|2pwD$o|=GC-y-f|2FYI6;gK%->s1PKZN|C%X{blc4u@C z6S#|iw^-&EzB06g=AY~PryTXCoO&1c?w$TG+#BdS|0nJp4dQ;#yH{qvKu@7R%0EGW zdl~mb-W862K|aF15Av>ze0Se>1-)N*-*NB5`{(=oAAYpElFlz9Mg;d6x$|=W2Mc$T z`(GC7fcIIrFV(;MYVPvbUzlXjgY=)j-tU8{af>-_*-cBi{9K_;9Yw2 zYk@`g&i}7u=O5sA7|kzm9LoC^_Z#^C#Bc6eyvtO6SuBHE{O`QwF4kR|@C(b2>hD

|iBL3_7sj7hR$Dx1^gAY>(efoAw HC1Cy^xdohP literal 0 HcmV?d00001 diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-lt-24-build-file.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-lt-24-build-file.txt index 050932cbd5fd..e69dc6f3f12a 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-lt-24-build-file.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-lt-24-build-file.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'dummy_tool:1.3.0' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-resolve-failed-wo-version.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-resolve-failed-wo-version.txt index 5d7ef543e0de..ee003828e127 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-resolve-failed-wo-version.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-resolve-failed-wo-version.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'dummy_tool' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-resolve-failed.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-resolve-failed.txt index a2b737652d4b..b7a0b40d4275 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-resolve-failed.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-resolve-failed.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'nonexistent:1.4.0' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-with-new-major-version-locked.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-with-new-major-version-locked.txt index 02bc467b6c31..91c86b53d53c 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-with-new-major-version-locked.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-offline-with-new-major-version-locked.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'dummy_tool:2.0.0' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-with-sticky.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-with-sticky.txt index 73ffb5c42957..661333eb87de 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-with-sticky.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-tool-with-sticky.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'dummy_tool:1.3.5' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-lt-24-build-file.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-lt-24-build-file.txt index 050932cbd5fd..e69dc6f3f12a 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-lt-24-build-file.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-lt-24-build-file.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'dummy_tool:1.3.0' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-resolve-failed-wo-version.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-resolve-failed-wo-version.txt index 5d7ef543e0de..ee003828e127 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-resolve-failed-wo-version.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-resolve-failed-wo-version.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'dummy_tool' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-resolve-failed.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-resolve-failed.txt index a2b737652d4b..b7a0b40d4275 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-resolve-failed.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-resolve-failed.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'nonexistent:1.4.0' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-with-new-major-version-locked.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-with-new-major-version-locked.txt index 02bc467b6c31..91c86b53d53c 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-with-new-major-version-locked.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-offline-with-new-major-version-locked.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'dummy_tool:2.0.0' cannot be resolved - diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-with-sticky.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-with-sticky.txt index 73ffb5c42957..661333eb87de 100644 --- a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-with-sticky.txt +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-tool-with-sticky.txt @@ -1,4 +1,3 @@ Executing Build Tools ERROR [Ballerina.toml:(6:1,10:24)] Build tool 'dummy_tool:1.3.5' cannot be resolved -