TestKit - How to update system base URL?

Alex M April 27, 2014

Hi,

I'm trying to update JIRA's system base Url (through the testkit rest interface) using this code:

testKit.systemProperties().loginAs("testadmin", "testadmin").setProperty("baseUrl", "http://localhost:2990/jira");

But it doesn't seem to be working. The idea is to change the baseUrl after aplying a JIRA restoration.

Does anyone know how to do this?

1 answer

1 accepted

0 votes
Answer accepted
Boris Georgiev _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 27, 2014

I think you should use com.atlassian.jira.testkit.client.Backdoor.applicationProperties() instead systemProperties:

testKit.applicationProperties().loginAs("testadmin", "testadmin").setProperty("jira.baseurl", "http://localhost:2990/jira");

Alex M April 27, 2014

Cheers mate! :)

ps: just a quick correction to your code. Instead of "setProperty(...)" it should be "setString(...)"

Boris Georgiev _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 27, 2014

Ah yes.. copy/paste mistake. Thanks :)

Suggest an answer

Log in or Sign up to answer