@@ -38,33 +38,6 @@ async def test_request_params_invalid(bbox, request_not_valid, defaults):
3838 await request_not_valid (f"search?collections={ defaults .collection } &bbox={ bbox } " )
3939
4040
41- async def test_invalid_post_search_request (request_not_valid ):
42- """
43- Test if an invalid POST /search request body returns an error
44- """
45- post_body = {
46- "collections" : ["S2_MSI_L1C" ],
47- "limit" : 1 ,
48- "sortby" : [{"field" : "datetime" , "direction" : "asc" }],
49- "query" : {"federation:backends" : {"eq" : "creodias_s3" }},
50- "ecmwf:year" : {"eq" : "2000" }, # additional parameter outside of query
51- }
52- await request_not_valid ("search" , "POST" , post_body )
53-
54-
55- async def test_valid_post_search_request (request_valid ):
56- """
57- Test if a valid POST /search request body passes validation
58- """
59- post_body = {
60- "collections" : ["S2_MSI_L1C" ],
61- "limit" : 1 ,
62- "sortby" : [{"field" : "datetime" , "direction" : "asc" }],
63- "query" : {"federation:backends" : {"eq" : "creodias_s3" }},
64- }
65- await request_valid (url = "search" , method = "POST" , post_data = post_body )
66-
67-
6841@pytest .mark .parametrize ("input_bbox,expected_geom" , [(None , None ), ("bbox_csv" , "bbox_list" )])
6942async def test_request_params_valid (request_valid , defaults , input_bbox , expected_geom ):
7043 """
0 commit comments