Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to fetch test artifacts from the RQM stream using OSLC?

 Hi all,


I am trying to fetch the test scripts using OSLC, but it returns data from default configuration. Is there any way to fetch the data using configuration context using OSLC? 

Please note that I am not using RQM REST API so I need OSLC based solution only.


0 votes



One answer

Permanent link

Are you including an oslc_config.context query parameter or header in your GET request?
That parameter/header can be used to specify the URI of a configuration, and an application should use that to resolve the concept URI to the appropriate version of that resource for the specified configuration context.

0 votes

Comments

@David Honey i added oslc_config:context in the RQM REST API and it works fine. But in another use case I am using OSLC Lyo client. So there is no option for setting config context in OslcClient in Lyo. Do you have any idea on that? 

Eclipse Lyo is managed through the OSLC Open Projects team. I suggest you ask that question on the Eclipse Lyo forum at https://forum.open-services.net/c/sdks/lyo/9.

For https://jazz.net/library/article/92596 which is based on Lyo, I used a header request interceptor to be able to modify the headers. This was only necessary for the post calls to the factory, if I remember correctly. Most of the calls allowed to provide custom headers.

This was for an older Lyo version. I do not know if this would be possible still. The code is accessible in the article.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 1,700

Question asked: Jan 05 '21, 10:40 a.m.

Question was seen: 1,635 times

Last updated: Jan 06 '21, 4:46 a.m.

Confirmation Cancel Confirm