I'm using DocumentDB with an EC2 attached, using it as a bastion, and Jenkins and Kubernetes for the cicd
I'm doing a tunnel to handle the communication between EC2 and documentdb
ssh -o StrictHostKeyChecking=no -i "/opt/app/src/mongo-key-pair.pem"
-L 27017:mongo-cluster.cluster-asdf.us-east-2.docdb.amazonaws:27017
[email protected] -N -f
The database works, but the tests (coverage) stopped working. Leaving aside the possibility of my application not being prepared, I now don't see any trace of them when I execute them on Jenkins.
However, if I enter in one of the pods where the application is being run and use
coverage run --source=src -m pytest --junit-xml=test_result.xml -m typetest src/tests
the tests are executed, and the logs are shown correctly.
What's going on here? Is the tunnel "hiding" the logs? What could I do if so to see the logs in Jenkins?