@@ -122,7 +122,7 @@ async def test_items_response(request_valid, defaults):
122122 "geometry" ,
123123 "properties" ,
124124 }
125- assert first_props ["federation:backends" ] == ["peps " ]
125+ assert first_props ["federation:backends" ] == ["cop_dataspace " ]
126126 assert first_props ["datetime" ] == "2018-02-15T23:53:22.871Z"
127127 assert first_props ["start_datetime" ] == "2018-02-15T23:53:22.871Z"
128128 assert first_props ["end_datetime" ] == "2018-02-16T00:12:14.035Z"
@@ -136,14 +136,14 @@ async def test_items_response(request_valid, defaults):
136136 assert "asset1" in res [0 ]["assets" ]
137137 assert (
138138 res [0 ]["assets" ]["asset1" ]["href" ]
139- == f"http://testserver/data/peps /{ res [0 ]['collection' ]} /{ res [0 ]['id' ]} /asset1"
139+ == f"http://testserver/data/cop_dataspace /{ res [0 ]['collection' ]} /{ res [0 ]['id' ]} /asset1"
140140 )
141141 assert res [1 ]["properties" ]["order:status" ] == "orderable"
142142 assert "assets" in res [0 ]
143143 assert "asset1" in res [0 ]["assets" ]
144144 assert (
145145 res [0 ]["assets" ]["asset1" ]["href" ]
146- == f"http://testserver/data/peps /{ res [0 ]['collection' ]} /{ res [0 ]['id' ]} /asset1"
146+ == f"http://testserver/data/cop_dataspace /{ res [0 ]['collection' ]} /{ res [0 ]['id' ]} /asset1"
147147 )
148148 expected_extensions = [
149149 "https://stac-extensions.github.io/sat/v1.0.0/schema.json" ,
@@ -155,9 +155,9 @@ async def test_items_response(request_valid, defaults):
155155 for ext in expected_extensions :
156156 assert ext in res [0 ]["stac_extensions" ]
157157
158- # check order status and storage tier properties of the "OFFLINE" item when peps is whitelisted
158+ # check order status and storage tier properties of the "OFFLINE" item when cop_dataspace is whitelisted
159159 auto_order_whitelist = get_settings ().auto_order_whitelist
160- get_settings ().auto_order_whitelist = ["peps " ]
160+ get_settings ().auto_order_whitelist = ["cop_dataspace " ]
161161
162162 resp_json = await request_valid (
163163 f"search?collections={ defaults .collection } " ,
@@ -197,7 +197,7 @@ async def test_assets_with_different_download_base_url(request_valid, defaults):
197197 assert "asset1" in res [0 ]["assets" ]
198198 assert (
199199 res [0 ]["assets" ]["asset1" ]["href" ]
200- == f"http://otherserver/data/peps /{ res [0 ]['collection' ]} /{ res [0 ]['id' ]} /asset1"
200+ == f"http://otherserver/data/cop_dataspace /{ res [0 ]['collection' ]} /{ res [0 ]['id' ]} /asset1"
201201 )
202202
203203
@@ -508,7 +508,7 @@ async def test_search_response_contains_pagination_info(request_valid, defaults)
508508 [
509509 (None , None , [False , False , False , False ]),
510510 (True , None , [True , True , True , True ]),
511- (True , "https://peps.cnes.fr " , [False , False , True , False ]),
511+ (True , "https://catalogue.dataspace.copernicus.eu " , [False , False , True , False ]),
512512 ],
513513 ids = [
514514 "no alt links by default" ,
@@ -528,7 +528,7 @@ async def test_assets_alt_url_blacklist(
528528 """Search through eodag server must not have alternate link if in blacklist"""
529529
530530 search_result = mock_search_result
531- search_result [0 ].assets .update ({"asset1" : {"href" : "https://peps.cnes.fr " }})
531+ search_result [0 ].assets .update ({"asset1" : {"href" : "https://catalogue.dataspace.copernicus.eu " }})
532532 search_result [1 ].assets .update ({"asset1" : {"href" : "https://somewhere.fr" }})
533533 # make assets of the second product available for this test
534534 search_result [1 ].properties ["order:status" ] = ONLINE_STATUS
@@ -552,17 +552,17 @@ async def test_assets_alt_url_blacklist(
552552 (
553553 "POST" ,
554554 "search" ,
555- {"collections" : ["{defaults.collection}" ], "query" : {"federation:backends" : {"eq" : "peps " }}},
556- {"provider" : "peps " },
555+ {"collections" : ["{defaults.collection}" ], "query" : {"federation:backends" : {"eq" : "cop_dataspace " }}},
556+ {"provider" : "cop_dataspace " },
557557 ),
558558 # POST with no provider specified
559559 ("POST" , "search" , {"collections" : ["{defaults.collection}" ]}, {}),
560560 # GET with provider specified
561561 (
562562 "GET" ,
563- 'search?collections={defaults.collection}&query={{"federation:backends":{{"eq":"peps "}} }}' ,
563+ 'search?collections={defaults.collection}&query={{"federation:backends":{{"eq":"cop_dataspace "}} }}' ,
564564 None ,
565- {"provider" : "peps " },
565+ {"provider" : "cop_dataspace " },
566566 ),
567567 # GET with no provider specified
568568 ("GET" , "search?collections={defaults.collection}" , None , {}),
@@ -684,7 +684,7 @@ async def test_pagination_basic(request_valid, defaults, method, has_next_token,
684684 # Create search result based on whether next token should be present
685685 if has_next_token :
686686 search_result = SearchResult (
687- [EOProduct ("peps " , {"id" : "_" , "collection" : "_" })] * 10 , next_page_token = next_token
687+ [EOProduct ("cop_dataspace " , {"id" : "_" , "collection" : "_" })] * 10 , next_page_token = next_token
688688 )
689689 else :
690690 search_result = SearchResult ([])
@@ -740,7 +740,9 @@ async def test_pagination_with_token(request_valid, defaults, method):
740740 next_token = "next_token_456"
741741
742742 # Create a mock search result for the next page
743- search_result = SearchResult ([EOProduct ("peps" , {"id" : "_" , "collection" : "_" })] * 10 , next_page_token = next_token )
743+ search_result = SearchResult (
744+ [EOProduct ("cop_dataspace" , {"id" : "_" , "collection" : "_" })] * 10 , next_page_token = next_token
745+ )
744746
745747 # Set up request parameters based on method
746748 if method == "GET" :
0 commit comments