test: Fix unit tests that use usePrefix and useSuffix properties #339
GitHub Actions / Test Results
failed
Jan 11, 2024 in 0s
2 fail, 311 pass in 4m 13s
313 tests 311 ✅ 4m 13s ⏱️
39 suites 0 💤
39 files 2 ❌
Results for commit 54903ef.
Annotations
Check warning on line 0 in com.avioconsulting.mule.cli.DeployerCommandLineTest
github-actions / Test Results
runs_with_connected_application (com.avioconsulting.mule.cli.DeployerCommandLineTest) failed
./cli/target/surefire-reports/TEST-com.avioconsulting.mule.cli.DeployerCommandLineTest.xml [took 0s]
Raw output
Expected: is "the-app"
but: was "avi-the-app-xxx"
java.lang.AssertionError:
Expected: is "the-app"
but: was "avi-the-app-xxx"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at org.hamcrest.MatcherAssert$assertThat$0.callStatic(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:217)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:240)
at com.avioconsulting.mule.cli.DeployerCommandLineTest$_runs_with_connected_application_closure7.doCall(DeployerCommandLineTest.groovy:200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:263)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:428)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:351)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:298)
at org.codehaus.groovy.runtime.dgm$854.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:226)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:73)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at com.avioconsulting.mule.cli.DeployerCommandLineTest.runs_with_connected_application(DeployerCommandLineTest.groovy:198)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at java.util.ArrayList.forEach(ArrayList.java:1259)
[WARN] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] --< f2ea2cb4-c600-4bb5-88e8-e952ff5591ee:mule-deploy-lib-v4-test-app >--
[INFO] Building mule-deploy-lib-v4-test-app 2.2.9
[INFO] --------------------------[ mule-application ]--------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean-1) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:clean (default-clean) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:validate (default-validate) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:initialize (default-initialize) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:generate-sources (default-generate-sources) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:process-sources (default-process-sources) @ mule-deploy-lib-v4-test-app ---
[INFO] About to fetch required dependencies for artifact: f2ea2cb4-c600-4bb5-88e8-e952ff5591ee:mule-deploy-lib-v4-test-app:pom:2.2.9. This may take a while...
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ mule-deploy-lib-v4-test-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:process-resources (default-process-resources) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ mule-deploy-lib-v4-test-app ---
[INFO] No sources to compile
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:compile (default-compile) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:process-classes (default-process-classes) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:generate-test-sources (default-generate-test-sources) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ mule-deploy-lib-v4-test-app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:generate-test-resources (default-generate-test-resources) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mule-deploy-lib-v4-test-app ---
[INFO] No sources to compile
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:test-compile (default-test-compile) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ mule-deploy-lib-v4-test-app ---
[INFO]
[INFO] --- mule-maven-plugin:3.5.4:package (default-package) @ mule-deploy-lib-v4-test-app ---
[INFO] Building zip: /home/runner/work/mule-deploy-library/mule-deploy-library/cli/target/test-classes/mule4_project/target/mule-deploy-lib-v4-test-app-2.2.9-mule-application.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.713 s
[INFO] Finished at: 2024-01-11T21:04:31Z
[INFO] ------------------------------------------------------------------------
Calling with args [-u, "our user", -p, "our pass", -m, Run, /home/runner/work/mule-deploy-library/mule-deploy-library/cli/stuff.groovy]
Will resolve `params` in DSL using: [:]
Successfully processed /home/runner/work/mule-deploy-library/mule-deploy-library/cli/stuff.groovy through DSL
Beginning deployment
Deployment completed
Check warning on line 0 in com.avioconsulting.mule.cli.DeployerCommandLineTest
github-actions / Test Results
runs (com.avioconsulting.mule.cli.DeployerCommandLineTest) failed
./cli/target/surefire-reports/TEST-com.avioconsulting.mule.cli.DeployerCommandLineTest.xml [took 0s]
Raw output
Expected: is "the-app"
but: was "avi-the-app-xxx"
java.lang.AssertionError:
Expected: is "the-app"
but: was "avi-the-app-xxx"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at org.hamcrest.MatcherAssert$assertThat$0.callStatic(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:217)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:240)
at com.avioconsulting.mule.cli.DeployerCommandLineTest$_runs_closure4.doCall(DeployerCommandLineTest.groovy:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:107)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:263)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1035)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:428)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:351)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:298)
at org.codehaus.groovy.runtime.dgm$854.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:226)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:73)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at com.avioconsulting.mule.cli.DeployerCommandLineTest.runs(DeployerCommandLineTest.groovy:136)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at java.util.ArrayList.forEach(ArrayList.java:1259)
Calling with args [-u, "our user", -p, "our pass", -m, Run, /home/runner/work/mule-deploy-library/mule-deploy-library/cli/stuff.groovy]
Will resolve `params` in DSL using: [:]
Successfully processed /home/runner/work/mule-deploy-library/mule-deploy-library/cli/stuff.groovy through DSL
Beginning deployment
Deployment completed
Loading