The signup test is failing in cicd. It's hard to determine if its tied to the containers (there is a container error in the logs), or if its logic. Other tests are passing indicating that this is actually the test failing. However, the container issue should be investigated as well. This ticket is about fixing the test, not the container.
> Task :compileJava UP-TO-DATE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileIntTestJava UP-TO-DATE
> Task :processIntTestResources UP-TO-DATE
> Task :intTestClasses UP-TO-DATE
> Task :integrationTest FAILED
Jun 19, 2023 1:31:05 PM org.junit.platform.launcher.core.EngineDiscoveryOrchestrator lambda$logTestDescriptorExclusionReasons$7
INFO: 0 containers and 9 tests were Method or class mismatch
2023-06-19 13:31:06.039 INFO [Test worker ] o.t.utility.ImageNameSubstitutor : Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
2023-06-19 13:31:06.049 INFO [Test worker ] o.t.d.DockerClientProviderStrategy : Loaded org.testcontainers.dockerclient.UnixSocketClientProviderStrategy from ~/.testcontainers.properties, will try it first
2023-06-19 13:31:06.193 INFO [Test worker ] o.t.d.DockerClientProviderStrategy : Found Docker environment with local Unix socket (unix:///var/run/docker.sock)
2023-06-19 13:31:06.194 INFO [Test worker ] org.testcontainers.DockerClientFactory : Docker host IP address is localhost
2023-06-19 13:31:06.205 INFO [Test worker ] org.testcontainers.DockerClientFactory : Connected to docker:
Server Version: 20.10.23
API Version: 1.41
Operating System: Docker Desktop
Total Memory: 7851 MB
2023-06-19 13:31:06.217 INFO [Test worker ] 🐳 [testcontainers/ryuk:0.3.4] : Creating container for image: testcontainers/ryuk:0.3.4
2023-06-19 13:31:06.475 INFO [Test worker ] o.t.utility.RegistryAuthLocator : Credential helper/store (docker-credential-desktop) does not have credentials for https://index.docker.io/v1/
2023-06-19 13:31:06.543 INFO [Test worker ] 🐳 [testcontainers/ryuk:0.3.4] : Container testcontainers/ryuk:0.3.4 is starting: 99c7328f82ec2c0dcd6687140f3c3867c0efc6d2c8b0c6f4fcfdbdb64c75ca0d
2023-06-19 13:31:06.741 INFO [Test worker ] 🐳 [testcontainers/ryuk:0.3.4] : Container testcontainers/ryuk:0.3.4 started in PT0.533143S
2023-06-19 13:31:06.744 INFO [Test worker ] o.t.utility.RyukResourceReaper : Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
2023-06-19 13:31:06.744 INFO [Test worker ] org.testcontainers.DockerClientFactory : Checking the system...
2023-06-19 13:31:06.744 INFO [Test worker ] org.testcontainers.DockerClientFactory : ✔︎ Docker server version should be at least 1.6.0
2023-06-19 13:31:06.744 INFO [Test worker ] 🐳 [surrealdb/surrealdb:latest] : Creating container for image: surrealdb/surrealdb:latest
2023-06-19 13:31:06.765 INFO [Test worker ] 🐳 [surrealdb/surrealdb:latest] : Container surrealdb/surrealdb:latest is starting: 849b674516f6fa89d88401faa97502c1041276c7b1c5cbc73bdbfdd8db3414c8
2023-06-19 13:31:06.975 WARN [ntainers-wait-0] .c.w.i.InternalCommandPortListeningCheck : An exception while executing the internal check: Container.ExecResult(exitCode=126, stdout=OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown
, stderr=)
2023-06-19 13:31:06.976 INFO [Test worker ] 🐳 [surrealdb/surrealdb:latest] : Container surrealdb/surrealdb:latest started in PT0.231581S
2023-06-19 13:31:07.005 ERROR [ctReadThread-31] c.s.c.SurrealWebSocketConnection : Received RPC error: id=1 code=-32000 message=There was a problem with authentication
com.surrealdb.connection.exception.SurrealAuthenticationException
at app//com.surrealdb.connection.ErrorToExceptionMapper.map(ErrorToExceptionMapper.java:22)
at app//com.surrealdb.connection.SurrealWebSocketConnection.onMessage(SurrealWebSocketConnection.java:148)
at app//org.java_websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:636)
at app//org.java_websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:986)
at app//org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:910)
at app//org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:401)
at app//org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:233)
at app//org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:516)
at java.base@17.0.6/java.lang.Thread.run(Thread.java:833)
SurrealDriverSpecialOperationsTest > testSignUp() FAILED
com.surrealdb.connection.exception.SurrealAuthenticationException at ErrorToExceptionMapper.java:22
1 test completed, 1 failed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':integrationTest'.
The signup test is failing in cicd. It's hard to determine if its tied to the containers (there is a container error in the logs), or if its logic. Other tests are passing indicating that this is actually the test failing. However, the container issue should be investigated as well. This ticket is about fixing the test, not the container.