0

I am using karate framework for my API testing in our organization. I am able to execute my project in local where DB connections are successful, when i execute in cloud jenkins we are getting below error

Error : Failed to obtain JDBC Connection; nested exception is java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection

DB class used: https://github.com/intuit/karate/blob/master/karate-demo/src/main/java/com/intuit/karate/demo/util/DbUtils.java

Do we have any option to set proxy for DB only, i have also gone through proxy setup in karate-config.js like karate.configure('proxy', { uri: 'http://my.proxy.host:8080', username: 'john', password: 'secret' ,nonProxyHosts:['http://example.com'] }. This is setting up proxy to my API and not for DB instance.

I am also trying to check whether my jenkins server firewall is blocking to create a connection to my db.

Any help from karate framework creators or implementer's?

1 Answer 1

0

whether my jenkins server firewall is blocking

That is most likely the case, nothing Karate (or anyone associated with it) can do here to help.

Also please read this: https://stackoverflow.com/a/52078427/143475

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Peter Thomas for your immediate reply, will check with my organization.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.