Closed hjellinek closed 9 years ago
Yep, this is a bug. Thanks @hjellinek, you're doing a great job weeding out all these problems!
Although, I think this should raise a 404 error rather than returning an empty result set.
You're welcome @jeromekelleher - the new Compliance Test Kit makes it pretty easy to write and execute tests like this.
This was fixed by recent updates. Tests for this are testReadGroupSetsSearch
in test_simulated_stack.py
.
Background: I'm using data from the server unit tests as the server's data. There is a single dataset,
dataset1
, with files arranged like so:Action: I create a
SearchReadGroupSetsRequest
withdatasetId
=xyzzy
(as you see above, there is no such dataset) and the other fields unset (left as their default values).Expected: The call to
searchReadGroupSets
will return aSearchReadGroupSetsResponse
with itsreadGroupSets
field containing an empty array.Actual: The call to
searchReadGroupSets
returns aSearchReadGroupSetsResponse
with itsreadGroupSets
field set tonull
.