tests: don't specify openapi root result

Whereas the test used to specify a body of

  [{"qiName":"referrals","qiSchema":"test"},"private"]

we see both

  [{"qiName":"authors_w_entities","qiSchema":"test"},"test"]

and

  [{"qiName":"organizations","qiSchema":"test"},"test"]

on the GHC 9.2 upgrade PR.

This changes the test to no longer expect a particular body.

Compare:
- https://github.com/PostgREST/postgrest/pull/2292#issuecomment-1146160792
- https://github.com/PostgREST/postgrest/issues/1698
This commit is contained in:
Robert Vollmert
2022-06-07 16:56:22 +02:00
committed by Robert
parent 807364bd7b
commit 09f3e09c96
+1 -3
View File
@@ -26,7 +26,5 @@ spec =
it "accepts application/json" $
request methodGet "/"
[("Accept", "application/json")] "" `shouldRespondWith`
[json|
[{"qiSchema":"test","qiName":"authors_w_entities"},"test"]
|]
200
{ matchHeaders = [matchContentTypeJson] }