-
Bug
-
Resolution: Done
-
Medium
-
Istanbul Release
-
None
CPS Temporal maven build is not failing when test containers are not able to run
Steps to reproduce:
- Ensure that docker is not running on your local env.
- Run "maven clean package" for cps-temporal repo.
Actual behaviour:
- Maven build is completed successfully and tests depending on test containers are simply ignored
- org.onap.cps.temporal.controller.event.listener.kafka.DataUpdatedEventListenerIntegrationSpec
- org.onap.cps.temporal.repository.NetworkDataRepositorySpec
... [INFO] Running org.onap.cps.temporal.repository.NetworkDataRepositorySpec 2021-07-21 09:36:35,629 - INFO [main ] o.t.d.DockerClientProviderStrategy - Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first 2021-07-21 09:37:06,193 - INFO [main ] o.t.d.DockerMachineClientProviderStrategy - docker-machine executable was not found on PATH ([/usr/local/bin, /usr/bin, /bin, /usr/sbin, /sbin, /opt/X11/bin, /Applications/Wireshark.app/Contents/MacOS, /Users/bsakoto/bin, /Users/bsakoto/bin/kafka/bin, /Users/bsakoto/bin/apache-jmeter/bin, /usr/local/opt/helm@2/bin]) 2021-07-21 09:37:36,201 - ERROR [main ] o.t.d.DockerClientProviderStrategy - Could not find a valid Docker environment. Please check configuration. Attempted configurations were: 2021-07-21 09:37:36,202 - ERROR [main ] o.t.d.DockerClientProviderStrategy - UnixSocketClientProviderStrategy: failed with exception TimeoutException (Timeout waiting for result with exception). Root cause IOException (native connect() failed : Connection refused) 2021-07-21 09:37:36,202 - ERROR [main ] o.t.d.DockerClientProviderStrategy - UnixSocketClientProviderStrategy: failed with exception TimeoutException (Timeout waiting for result with exception). Root cause IOException (native connect() failed : Connection refused) 2021-07-21 09:37:36,202 - ERROR [main ] o.t.d.DockerClientProviderStrategy - As no valid configuration was found, execution cannot continue [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 60.642 s - in org.onap.cps.temporal.repository.NetworkDataRepositorySpec ... [INFO] Running org.onap.cps.temporal.controller.event.listener.kafka.DataUpdatedEventListenerIntegrationSpec [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in org.onap.cps.temporal.controller.event.listener.kafka.DataUpdatedEventListenerIntegrationSpec ... [INFO] [INFO] Results: [INFO] [INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] --- jacoco-maven-plugin:0.8.5:report (post-unit-test) @ cps-temporal --- [INFO] Loading execution data file /Users/bsakoto/dev/git-repositories/bell/onap/configuration-persistence-service/cps-temporal/target/code-coverage/jacoco-ut.exec [INFO] Analyzed bundle 'cps-temporal' with 11 classes [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cps-temporal --- [INFO] Building jar: /Users/bsakoto/dev/git-repositories/bell/onap/configuration-persistence-service/cps-temporal/target/cps-temporal-0.0.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:26 min [INFO] Finished at: 2021-07-21T09:37:38-04:00 [INFO] ------------------------------------------------------------------------
Expected behaviour:
- Maven build is failing as not being able to run tests depending on test containers