Skip to content

Commit

Permalink
Disable old processing baseline jobs. Open-EO/openeo-geotrellis-exten…
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileSonneveld committed Jan 21, 2025
1 parent eb8c1b6 commit 82bd93e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/test/scala/org/openeo/OpenSearchClientTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ import scala.xml.XML

object OpenSearchClientTest {
def level1CParams: java.util.stream.Stream[Arguments] = util.Arrays.stream(Array(
arguments(LocalDate.parse("2021-03-30"), new java.lang.Double(3.00)),
arguments(LocalDate.parse("2021-06-30"), new java.lang.Double(3.01)),
arguments(LocalDate.parse("2022-01-25"), new java.lang.Double(4.00)),
// arguments(LocalDate.parse("2021-03-30"), new java.lang.Double(3.00)),
// arguments(LocalDate.parse("2021-06-30"), new java.lang.Double(3.01)),
// arguments(LocalDate.parse("2022-01-25"), new java.lang.Double(4.00)),
arguments(LocalDate.parse("2022-12-06"), new java.lang.Double(5.09)),
// No products with this processingBaseline 99.99 found for L2A
))

def level2AParams: java.util.stream.Stream[Arguments] = util.Arrays.stream(Array(
arguments(LocalDate.parse("2021-03-30"), new java.lang.Double(3.00)),
arguments(LocalDate.parse("2021-06-30"), new java.lang.Double(3.01)),
arguments(LocalDate.parse("2022-01-25"), new java.lang.Double(4.00)),
// arguments(LocalDate.parse("2021-03-30"), new java.lang.Double(3.00)),
// arguments(LocalDate.parse("2021-06-30"), new java.lang.Double(3.01)),
// arguments(LocalDate.parse("2022-01-25"), new java.lang.Double(4.00)),
arguments(LocalDate.parse("2022-12-06"), new java.lang.Double(5.09)),
arguments(LocalDate.parse("2018-08-31"), new java.lang.Double(99.99)), // Undocumented. Manually added
arguments(LocalDate.parse("2021-10-19"), new java.lang.Double(5.0)), // Undocumented. Manually added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ class CreoFeatureCollectionTest {
assertEquals(0, linkSCL.pixelValueOffset.get, 1e-6)
}

@Test
def creodiasNoOffsetNeeded(): Unit = {
val collectionsResponse = loadJsonResource("creodiasDifferentGeom.json")
val features = CreoFeatureCollection.parse(collectionsResponse, dedup = true).features
val link = features(0).links.find(l => l.title.get.contains("B04")).get
assertEquals(0, link.pixelValueOffset.get, 1e-6)
}
// @Test
// def creodiasNoOffsetNeeded(): Unit = {
// val collectionsResponse = loadJsonResource("creodiasDifferentGeom.json")
// val features = CreoFeatureCollection.parse(collectionsResponse, dedup = true).features
// val link = features(0).links.find(l => l.title.get.contains("B04")).get
// assertEquals(0, link.pixelValueOffset.get, 1e-6)
// }

@Test
def testPagingReliesOnActualNumberOfFeaturesReturned(): Unit = {
Expand Down

0 comments on commit 82bd93e

Please sign in to comment.