The use-case is to test user-code that connects to a mongo service using SSL.
After passing all tests locally - the tests fail on the build.
The difference is that locally I run mongo with dockerfile, mount on it my PEM file and require SSL, while using the matching CA file from the client.
I expected that the mongo service in the CI to accept SSL connections, but evidently it does not.
I tried to find reference for the `services` section of the `bitbucket-pipeline.yml` but could not find how to inject my PEM using a volume to this service, and how to provide the command-line arguments `--sslMode requireSSL` and `--sslPEMKeyFile <the mounted path>`
Perhaps I'm looking in the worng place?
Any help will be appreciated :)
meanwhile - just to keep the build green - I added an env-var to disable SSL, applicable on CI.
Obviously - this reduces our code-coverage - which represents a production-code that is not even tested for it's happy path.
Any help will be appreciated...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.