Context:
I have localsandbox running in a container and I use it to run my app unit tests.
When run my tests locally targeting the localsandbox container with localhost.localsandbox.sh:<PORT> it works fine.
Now I want to be able to run my tests inside a Docker container so they can run in CI.
I setup my docker-compose to run a localsandbox container and another with my app and run the unit tests.
Both containers are on the same Docker network.
I replaced localhost.localsandbox.sh:<PORT> by <container-name>:<PORT> in the endpoint and connection string and I get the following certificate error:
error: Hostname/IP does not match certificate's altnames: Host: service-bus. is not in the cert's altnames: DNS:localhost.localsandbox.dev, DNS:localhost.localsandbox.io, DNS:localhost.localsandbox.sh {
"name": "RestError",
"code": "ERR_TLS_CERT_ALTNAME_INVALID",
"stack": "RestError: Hostname/IP does not match certificate's altnames: Host: service-bus. is not in the cert's altnames: DNS:localhost.localsandbox.dev, DNS:localhost.localsandbox.io, DNS:localhost.localsandbox.sh
Is there anything I can do to make it work? Thanks
Context: I have localsandbox running in a container and I use it to run my app unit tests. When run my tests locally targeting the localsandbox container with
localhost.localsandbox.sh:<PORT>
it works fine.Now I want to be able to run my tests inside a Docker container so they can run in CI. I setup my docker-compose to run a localsandbox container and another with my app and run the unit tests. Both containers are on the same Docker network.
I replaced
localhost.localsandbox.sh:<PORT>
by<container-name>:<PORT>
in the endpoint and connection string and I get the following certificate error:Is there anything I can do to make it work? Thanks