It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Run atlas-integration-test using https Edited

Hi community, I've developed an integration test for a plugin I'm doing and both works well using http. Problem is that if I use <useHttps>true</useHttps> in the <configuration> of the jira plugin, I got this error while running the test with atlas-integration-test command (atlas-run has no issues using https):


Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.605 sec <<< FAILURE!
it.XTest Time elapsed: 0.604 sec <<< ERROR!
org.apache.wink.client.ClientRuntimeException: java.lang.RuntimeException: Connection refused (Connection refused)
at org.apache.wink.client.internal.ResourceImpl.invoke(
at org.apache.wink.client.internal.ResourceImpl.invoke(
at org.apache.wink.client.internal.ResourceImpl.invokeNoException(
at org.apache.wink.client.internal.ResourceImpl.get(
at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.runViaRestCall(


System properties printed on console before executing the test are:



from them, I can see the baseurl is still http://hv5khx1:2990/jira whereas it should be https://hv5khx1:8442/jira, any idea on how to change this property or in how instruct atlas-integration-test to run tests using https (a.k.a being aware of <useHttps>true</useHttps>)?

1 answer

I found the way to change this properties and it is done by invoking maven directly with:

mvn integration-test -gs /usr/share/atlassian-plugin-sdk-6.3.10/apache-maven-3.2.1/conf/settings.xml -Dhttp.port='8442' -Dbaseurl.jira='https://hv5khx1:8442/jira' -Dbaseurl='https://hv5khx1:8442/jira' -Dhttp.jira.url='https://hv5khx1:8442/jira'

but on this case I got:


Results :

Tests in error:
it.XTest: java.lang.RuntimeException: PKIX path building failed: unable to find valid certification path to requested target

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0


Could it be the case that integration-test is meant to run only with http?

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you