Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Bamboo REST API: how to get testId?

Edited

Hi everyone,

I try to quarantine/resume tests on the REST API what works fine, except I can not get the testids anywhere (what is required by the quarantine call).

The

/plan/{projectKey}-{buildKey}/test/{testId}/quarantine

call needs the testId what I don't find anywhere else in the documentation. I could quarantine some test by checking the web interface in a browser, where the testID is part of the URL. That way obviously can't work in a script...

The most what I could have on the REST interface is the list of a quarantined job by the:

/result/{projectKey}-{buildKey}-{buildNumber : ([0-9]+)|(latest)}?expand=testResults.quarantinedTests

but this gives back the test list with class and method names, no testId.

Is it a bug, a missing feature or am I looking at the wrong place?

1 answer

0 votes
rsperafico Atlassian Team Apr 06, 2018

Hello @Robert Kulyassa,

Thank you for your inquire.

Please, notice the endpoint /plan/{projectKey}-{buildKey}/test/{testId}/quarantine is not currently available in https://docs.atlassian.com/atlassian-bamboo/REST/6.4.1/, meaning it is used as an internal call.

Reviewing your inquire, I also agree Bamboo should provide a way to expose testId so it could be consumed in different scenario(s). For this reason, please find below a feature request raised:

https://jira.atlassian.com/browse/BAM-19816

I would encourage you leaving a comment to the link above, as well as voting and becoming a watcher so you can receive latest updates.

Kind regards,

Rafael

Thx for the comment (and the ticket), so it's even worse, now I started to miss the /quarantine call as well...

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

64 views 0 4
Read article

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