ISAITB / gitb

This is the fork maintained by the European Commission DG DIGIT based on the work of the GITB CEN Workshop Agreement. The original version of this software is the GITB PoC hosted at https://github.com/srdc/gitb.
https://joinup.ec.europa.eu/solution/interoperability-test-bed/about
Other
16 stars 4 forks source link

ITB make fail the test because Link header is empty #52

Closed EliottPaillard closed 1 week ago

EliottPaillard commented 2 weeks ago

Hello !

I want to test the behaviour of my SUT (a context broker) when the Link header is provided and empty.

All the steps are passed, however ITB points this empty Link header and fails the test.

image image

Here is a the testSuite : example.zip

costas80 commented 2 weeks ago

I believe the problem comes from...

<assign to="headers{Link}"></assign>

... which should work if set as...

<assign to="headers{Link}">""</assign>

The content of the assign step is expected to be an XPath expression so it should not be completely empty. Also, I'd suggest you set the <steps> element as <steps stopOnError="true"> so that the test session stops on errors rather than continue. Finally, if trying to pinpoint the location of a problem in a non-visible step you could use the log step to debug.

Does this help resolve the issue?

EliottPaillard commented 2 weeks ago

Yes the problem comes from this assign tag. But I wanted to test what my SUT responds when the Link header is "empty" exactly. I also tried with the "" configuration but I was thinking to provide nothing was the good way to do it. In fact it was not. Thanks for your help