Repository: CS-SI/eodag
Pull request #812 (2023-09-06 10:35:47)

fix(server): raise_errors disabled for server search fallback
Do not use `raise_errors=True` in server mode search to enable search fallback mechanism

github-actions[bot]: ## Test Results
       4 files  ±0         4 suites  ±0   5m 56s [:stopwatch:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v2.9.0/README.md#the-symbols "duration of all tests") -4s
   413 tests ±0     411 [:heavy_check_mark:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v2.9.0/README.md#the-symbols "passed tests") ±0    2 [:zzz:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v2.9.0/README.md#the-symbols "skipped / disabled tests") ±0  0 [:x:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v2.9.0/README.md#the-symbols "failed tests") ±0 
1 652 runs  ±0  1 584 [:heavy_check_mark:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v2.9.0/README.md#the-symbols "passed tests") ±0  68 [:zzz:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v2.9.0/README.md#the-symbols "skipped / disabled tests") ±0  0 [:x:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v2.9.0/README.md#the-symbols "failed tests") ±0 

Results for commit 478a276b. ± Comparison against base commit 9bebfedf.

[test-results]:data:application/gzip;base64,H4sIADNX+GQC/03MSQ7CIACF4as0rF0wD17GUCgJsS2GYdV4dxELdvl/L3kHcH5dErhP9DaBVHweYUvU2Ye9JmG8Qp1yGxHp9UjFmEboT0//qoQHOO3XCnDAEmOIp8Syfz8RZ/is/omYpIN+n1x2uHy2vl6asG0+1wBUSI0Fnx3SxhlNKbaMYSsRdAIrrSBTkHA3g/cHBXE5DggBAAA=

github-actions[bot]: <strong>Code Coverage (Ubuntu)</strong>

| File | Coverage |   |
| - | :-: | :-: |
| **All files** | `82%` | :white_check_mark: |

_Minimum allowed coverage is `70%`_

<p align="right">Generated by :monkey: cobertura-action against 478a276bf1acfca442d552d810f729a9059036fb </p>
github-actions[bot]: <strong>Code Coverage (Windows)</strong>

| File | Coverage |   |
| - | :-: | :-: |
| **All files** | `75%` | :white_check_mark: |

_Minimum allowed coverage is `70%`_

<p align="right">Generated by :monkey: cobertura-action against 478a276bf1acfca442d552d810f729a9059036fb </p>

Patch:
diff --git a/eodag/rest/utils.py b/eodag/rest/utils.py
index a14569c3..5bc75cde 100644
--- a/eodag/rest/utils.py
+++ b/eodag/rest/utils.py
@@ -389,7 +389,6 @@ def search_products(product_type, arguments, stac_formatted=True):
             "productType": product_type if product_type else arg_product_type,
             "page": page,
             "items_per_page": items_per_page,
-            "raise_errors": True,
             "start": dtstart,
             "end": dtend,
             "geom": geom,


Test patch:
diff --git a/tests/units/test_http_server.py b/tests/units/test_http_server.py
index ea47904d..ca986da8 100644
--- a/tests/units/test_http_server.py
+++ b/tests/units/test_http_server.py
@@ -320,7 +320,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
             ),
         )
         self._request_valid(
@@ -329,7 +328,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 geom=box(0, 43, 1, 44, ccw=False),
             ),
         )
@@ -366,7 +364,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 geom=box(89.65, 2.65, 89.7, 2.7, ccw=False),
             ),
         )
@@ -377,7 +374,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 geom=box(89.65, 2.65, 89.7, 2.7, ccw=False),
             ),
         )
@@ -392,7 +388,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 start="2018-01-20T00:00:00",
                 end="2018-01-25T00:00:00",
                 geom=box(0, 43, 1, 44, ccw=False),
@@ -407,7 +402,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 geom=box(0, 43, 1, 44, ccw=False),
             ),
         )
@@ -417,7 +411,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 start="2018-01-20T00:00:00",
                 end="2018-01-25T00:00:00",
                 geom=box(0, 43, 1, 44, ccw=False),
@@ -432,7 +425,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 start="2018-01-01T00:00:00",
                 end="2018-02-01T00:00:00",
                 geom=box(0, 43, 1, 44, ccw=False),
@@ -447,7 +439,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 start="2018-01-20T00:00:00",
                 end="2018-01-25T00:00:00",
                 geom=box(0, 43, 1, 44, ccw=False),
@@ -462,7 +453,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 start="2018-01-20T00:00:00",
                 end="2018-02-01T00:00:00",
                 geom=box(0, 43, 1, 44, ccw=False),
@@ -529,7 +519,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 cloudCover=10,
                 geom=box(0, 43, 1, 44, ccw=False),
             ),
@@ -551,7 +540,6 @@ class RequestTestCase(unittest.TestCase):
                 productType=self.tested_product_type,
                 page=1,
                 items_per_page=DEFAULT_ITEMS_PER_PAGE,
-                raise_errors=True,
                 geom=box(0, 43, 1, 44, ccw=False),
             ),
         )