Gilab runner check fails - with aditional datasource

Hi, triing to implement deployment proces via gitlab to cubernettes.

Gradle test is failing for no obvious reason to me. Build is working correctly on local machine.
Stacktrace from gitlab runner:

Running with gitlab-runner 12.6.0 (ac8e767a)

[2](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L2)  on runner-gitlab-runner-67b6cfc7db-628rd ZvibryJp

[3](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L3)Using Kubernetes namespace: gitlab-managed-apps

00:00

[4](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L4) Using Kubernetes executor with image java:8 ...

[6](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L6)Waiting for pod gitlab-managed-apps/runner-zvibryjp-project-1-concurrent-0gpc52 to be running, status is Pending

00:04

[7](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L7) Running on runner-zvibryjp-project-1-concurrent-0gpc52 via runner-gitlab-runner-67b6cfc7db-628rd...

[9](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L9)Fetching changes with git depth set to 50...

00:01

[10](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L10) Initialized empty Git repository in /builds/root/ramcove-zmluvy/.git/

[11](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L11) Created fresh repository.

[12](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L12) From https://gitlab.atena.sk/root/ramcove-zmluvy

[13](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L13)  * [new ref] refs/pipelines/11 -> refs/pipelines/11

[14](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L14)  * [new branch] master -> origin/master

[15](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L15) Checking out 8e4d90c7 as master...

[16](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L16) Skipping Git submodules setup

[20](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L20)$ chmod +x gradlew

[21](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L21) $ ./gradlew -g /cache/.gradle check --stacktrace

[22](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L22) Downloading https://services.gradle.org/distributions/gradle-4.10.3-bin.zip

[23](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L23) ..........................................................................

[24](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L24) Welcome to Gradle 4.10.3!

[25](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L25) Here are the highlights of this release:

[26](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L26)  - Incremental Java compilation by default

[27](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L27)  - Periodic Gradle caches cleanup

[28](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L28)  - Gradle Kotlin DSL 1.0-RC6

[29](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L29)  - Nested included builds

[30](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L30)  - SNAPSHOT plugin versions in the `plugins {}` block

[31](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L31) For more details see https://docs.gradle.org/4.10.3/release-notes.html

[32](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L32) > Task :app-global:beansXml

[33](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L33) > Task :app-global:processResources

[34](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L34) > Task :app-global:buildInfo

[35](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L35) > Task :app-global:compileJavaNote: Some input files use unchecked or unsafe operations.

[36](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L36) Note: Recompile with -Xlint:unchecked for details.

[37](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L37) > Task :app-global:classes

[38](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L38) > Task :app-global:jar

[39](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L39) > Task :app-core:compileJava NO-SOURCE

[40](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L40) > Task :app-core:processResources

[41](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L41) > Task :app-core:classes

[42](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L42) > Task :app-core:compileTestJava

[43](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L43) > Task :app-core:processTestResources NO-SOURCE

[44](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L44) > Task :app-core:testClasses

[45](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L45) > Task :app-core:test

[46](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L46) com.company.ramcovezmluvy.core.SampleIntegrationTest > classMethod FAILED

[47](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L47)  org.springframework.beans.factory.BeanCreationException

[48](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L48)  Caused by: org.springframework.beans.factory.BeanCreationException

[49](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L49)  Caused by: javax.naming.NamingException

[50](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L50) 1 test completed, 1 failed

[51](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L51) > Task :app-core:test FAILED

[52](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L52) FAILURE: Build failed with an exception.

[53](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L53) * What went wrong:

[54](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L54) Execution failed for task ':app-core:test'.

[55](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L55) > There were failing tests. See the report at: file:///builds/root/ramcove-zmluvy/modules/core/build/reports/tests/test/index.html

[56](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L56) * Try:

[57](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L57) Run with --info or --debug option to get more log output. Run with --scan to get full insights.

[58](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L58) * Exception is:

[59](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L59) org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app-core:test'.

[60](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L60)  at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)

[61](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L61)  at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)

[62](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L62)  at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)

[63](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L63)  at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)

[64](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L64)  at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)

[65](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L65)  at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)

[66](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L66)  at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)

[67](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L67)  at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)

[68](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L68)  at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)

[69](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L69)  at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)

[70](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L70)  at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)

[71](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L71)  at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)

[72](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L72)  at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)

[73](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L73)  at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)

[74](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L74)  at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)

[75](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L75)  at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)

[76](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L76)  at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)

[77](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L77)  at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)

[78](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L78)  at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)

[79](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L79)  at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)

[80](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L80)  at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)

[81](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L81)  at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)

[82](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L82)  at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)

[83](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L83)  at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)

[84](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L84)  at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)

[85](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L85)  at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)

[86](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L86)  at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)

[87](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L87)  at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)

[88](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L88)  at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)

[89](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L89)  at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:74)

[90](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L90)  at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:143)

[91](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L91)  at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:40)

[92](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L92)  at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)

[93](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L93)  at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:24)

[94](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L94)  at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:46)

[95](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L95)  at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:49)

[96](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L96)  at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)

[97](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L97)  at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:33)

[98](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L98)  at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:355)

[99](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L99)  at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)

[100](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L100)  at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)

[101](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L101)  at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)

[102](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L102)  at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)

[103](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L103)  at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)

[104](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L104)  at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:219)

[105](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L105)  at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)

[106](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L106)  at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124)

[107](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L107)  at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77)

[108](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L108)  at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74)

[109](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L109)  at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154)

[110](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L110)  at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38)

[111](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L111)  at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96)

[112](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L112)  at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74)

[113](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L113)  at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)

[114](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L114)  at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)

[115](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L115)  at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)

[116](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L116)  at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50)

[117](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L117)  at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)

[118](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L118)  at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)

[119](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L119)  at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)

[120](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L120)  at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)

[121](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L121)  at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)

[122](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L122)  at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)

[123](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L123)  at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)

[124](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L124)  at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)

[125](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L125)  at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44)

[126](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L126)  at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79)

[127](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L127)  at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44)

[128](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L128)  at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)

[129](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L129)  at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)

[130](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L130)  at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)

[131](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L131)  at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)

[132](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L132)  at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)

[133](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L133)  at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62)

[134](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L134)  at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34)

[135](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L135)  at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)

[136](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L136)  at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)

[137](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L137)  at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)

[138](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L138)  at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)

[139](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L139)  at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)

[140](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L140)  at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)

[141](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L141)  at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)

[142](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L142)  at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)

[143](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L143)  at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46)

[144](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L144)  at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)

[145](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L145)  at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:52)

[146](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L146)  at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:207)

[147](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L147) 8 actionable tasks: 8 executed

[148](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L148)  at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:402)

[149](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L149)  at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:375)

[150](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L150)  at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:37)

[151](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L151)  at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:23)

[152](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L152)  at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:368)

[153](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L153)  at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:298)

[154](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L154)  at org.gradle.launcher.Main.doAction(Main.java:36)

[155](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L155)  at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

[156](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L156)  at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)

[157](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L157)  at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)

[158](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L158)  at org.gradle.launcher.GradleMain.main(GradleMain.java:23)

[159](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L159)  at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:31)

[160](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L160)  at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)

[161](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L161)  at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

[162](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L162) Caused by: org.gradle.api.GradleException: There were failing tests. See the report at: file:///builds/root/ramcove-zmluvy/modules/core/build/reports/tests/test/index.html

[163](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L163)  at org.gradle.api.tasks.testing.AbstractTestTask.handleTestFailures(AbstractTestTask.java:612)

[164](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L164)  at org.gradle.api.tasks.testing.AbstractTestTask.executeTests(AbstractTestTask.java:484)

[165](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L165)  at org.gradle.api.tasks.testing.Test.executeTests(Test.java:603)

[166](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L166)  at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)

[167](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L167)  at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)

[168](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L168)  at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)

[169](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L169)  at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)

[170](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L170)  at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:801)

[171](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L171)  at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:768)

[172](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L172)  at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)

[173](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L173)  at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)

[174](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L174)  at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)

[175](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L175)  at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)

[176](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L176)  at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)

[177](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L177)  at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)

[178](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L178)  at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)

[179](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L179)  at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)

[180](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L180)  ... 100 more

[181](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L181) * Get more help at https://help.gradle.org

[182](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L182) BUILD FAILED in 1m 32s

[183](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/24#L183) ERROR: Job failed: command terminated with exit code 1

Also this log:

09:07:34,177 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.perf4j.TimingLogger] to OFF

[518](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L518)  09:07:34,178 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.

[519](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L519)  09:07:34,179 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@3da88b75 - Registering current configuration as safe fallback point

[520](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L520)  09:07:34.213 INFO com.haulmont.cuba.testsupport.TestContainer - Starting test container com.company.ramcovezmluvy.RamcovezmluvyTestContainer$Common@226918e4

[521](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L521)  09:07:34.275 INFO com.haulmont.cuba.core.sys.AppComponents - Using app components: [com.haulmont.cuba]

[522](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L522) com.company.ramcovezmluvy.core.SampleIntegrationTest STANDARD_ERROR

[523](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L523)  Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

[524](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L524) com.company.ramcovezmluvy.core.SampleIntegrationTest STANDARD_OUT

[525](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L525)  09:07:34.794 INFO com.haulmont.cuba.core.sys.persistence.PersistenceConfigProcessor - Creating file /builds/root/ramcove-zmluvy/modules/core/build/test-home/app-core/work/persistence.xml

[526](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L526)  09:07:34.836 INFO com.haulmont.cuba.core.sys.persistence.PersistenceConfigProcessor - Creating file /builds/root/ramcove-zmluvy/modules/core/build/test-home/app-core/work/atena-persistence.xml

[527](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L527)  09:07:38.765 DEBUG com.haulmont.cuba.core.sys.CubaJndiDataSourceFactoryBean - Located object with JNDI name [java:comp/env/jdbc/CubaDS]

[528](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L528)  09:07:40.378 DEBUG com.haulmont.cuba.core.sys.CubaJndiObjectFactoryBean - Converted JNDI name [java:comp/env/jdbc/atena] not found - trying original name [jdbc/atena]. javax.naming.NamingException: Not bound: java:comp/env/jdbc/atena

[529](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L529)  09:07:40.383 WARN com.haulmont.cuba.core.sys.CubaCoreApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory_atena' defined in class path resource [com/company/ramcovezmluvy/spring.xml]: Cannot resolve reference to bean 'cubaDataSource_atena' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cubaDataSource_atena' defined in class path resource [com/company/ramcovezmluvy/spring.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Not bound: jdbc/atena

[530](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L530) Gradle Test Executor 1 finished executing tests.

[531](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L531) > Task :app-core:test FAILED

[532](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L532) com.company.ramcovezmluvy.core.SampleIntegrationTest > classMethod FAILED

[533](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L533)  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory_atena' defined in class path resource [com/company/ramcovezmluvy/spring.xml]: Cannot resolve reference to bean 'cubaDataSource_atena' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cubaDataSource_atena' defined in class path resource [com/company/ramcovezmluvy/spring.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Not bound: jdbc/atena

[534](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L534)  Caused by:

[535](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L535)  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cubaDataSource_atena' defined in class path resource [com/company/ramcovezmluvy/spring.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Not bound: jdbc/atena

[536](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L536)  Caused by:

[537](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L537)  javax.naming.NamingException: Not bound: jdbc/atena

[538](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L538) Finished generating test XML results (0.036 secs) into: /builds/root/ramcove-zmluvy/modules/core/build/test-results/test

[539](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L539) Generating HTML test report...

[540](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L540) Finished generating test html results (0.045 secs) into: /builds/root/ramcove-zmluvy/modules/core/build/reports/tests/test

[541](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L541) :app-core:test (Thread[main,5,main]) completed. Took 10.302 secs.

[542](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L542) 8 actionable tasks: 8 executed

[543](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/29#L543) 1 test completed, 1 failed

Hi,
The error message in tests points to problem with the “atena” data source missing by tests.
You are using an additional datastore in your project, right?

Have you modified your XxxTestContainer class to instantiate additional data sources?
Please check contents of the XxxTestContainer#initDataSources method.

For example this is how this method looks like in my sample project with two additional datastores attached:

    @Override
    protected void initDataSources() {
        super.initDataSources();

        try {
            TestDataSource ds1 = new TestDataSource("jdbc:postgresql://localhost/archive?abc=def&schema=simple", "cuba", "cuba");
            TestContext.getInstance().bind("jdbc/Archive", ds1);

            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            TestDataSource ds2 = new TestDataSource("jdbc:sqlserver://192.168.44.11;databaseName=xxxx", "sa", "xxxx");
            TestContext.getInstance().bind("jdbc/legacy", ds2);
        } catch (ClassNotFoundException | NamingException e) {
            throw new RuntimeException("Error initializing datasource", e);
        }
    }

Also check this documentation page: Middleware Integration Tests - CUBA Platform. Developer’s Manual

Hi, thank you. Partially resolved by this. Now i am getting failed on this:

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

java.lang.NullPointerException
	at java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
	at java.base/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
	at com.haulmont.cuba.testsupport.TestContext.bind(TestContext.java:58)
	at com.company.ramcovezmluvy.RamcovezmluvyTestContainer$Common.initDataSources(RamcovezmluvyTestContainer.java:91)
	at com.haulmont.cuba.testsupport.TestContainer.before(TestContainer.java:283)
	at com.company.ramcovezmluvy.RamcovezmluvyTestContainer$Common.before(RamcovezmluvyTestContainer.java:71)
	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:106)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:66)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:117)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:155)
	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137)
	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.base/java.lang.Thread.run(Thread.java:834)

Please debug your code in this place:
RamcovezmluvyTestContainer$Common.initDataSources(RamcovezmluvyTestContainer.java:91)

You are trying to put “null” for some value which is not expected to be null.

Getting this message in debub. I am not aware there is any variable named like db1. Sorry for spamming, im new to cuba and triing to get used to this.

image

image

Ok, i fuigured it out. Thank you Alex, you helped me much.