zhangfengcdt opened a new pull request, #2350: URL: https://github.com/apache/sedona/pull/2350
## Did you read the Contributor Guide? - Yes, I have read the [Contributor Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor Development Guide](https://sedona.apache.org/latest/community/develop/) ## Is this PR related to a ticket? - Yes, and the PR name follows the format `[GH-XXX] my subject`. Closes #<issue_number> ## What changes were proposed in this PR? This PR makes STAC tests resilient to external server failures by implementing mock-based testing for Python and local test resources for Scala, ensuring tests run reliably without network dependencies. - Created mock STAC collection JSON files in `/spark/common/src/test/resources/stac/`: - 6 collection files (sentinel-2, vegetation, wildfire, copernicus-dem, naip, earthview) - 1 items file with 10 mock STAC items ## How was this patch tested? - Updated `StacDataSourceTest.scala` to use local mock files instead of remote URLs - Updated `StacBatchTest.scala` to use local resource files with `file://` protocol - Updated `StacPartitionReaderTest.scala` to use mock items file ## Did this PR include necessary documentation updates? - No, this PR does not affect any public API so no need to change the documentation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
