GeoWebCache / geowebcache

GeoWebCache is a tile caching server implemented in Java that provides various tile caching services like WMS-C, TMS, WMTS, Google Maps, MS Bing and more
https://www.geowebcache.org
343 stars 281 forks source link

S3 integration tests are never run #1206

Open groldan opened 10 months ago

groldan commented 10 months ago

About half the tests for the gwc-aws-s3 blobstore module are integration tests that are never run on Github Actions nor on Jenkins.

mvn verify -o -pl :gwc-aws-s3 2> /dev/null | grep "Tests run" | tail -n 1
[WARNING] Tests run: 54, Failures: 0, Errors: 0, Skipped: 45

This might be due to the difficulty of having an actual AWS S3 bucket to test against. All these tests get ignored and print out a warning message. E.g.:

[INFO] Running org.geowebcache.s3.S3BlobStoreConformanceTest
INFO      org.geowebcache.s3.PropertiesLoader - Loading S3 tests config. File must have keys 'bucket', 'accessKey', and 'secretKey'
WARNING   org.geowebcache.s3.PropertiesLoader - S3 storage config file not found. GWC S3 tests will be ignored. /home/groldan/.gwc_s3_tests.properties
INFO      org.geowebcache.s3.PropertiesLoader - Loading S3 tests config. File must have keys 'bucket', 'accessKey', and 'secretKey'
WARNING   org.geowebcache.s3.PropertiesLoader - S3 storage config file not found. GWC S3 tests will be ignored. /home/groldan/.gwc_s3_tests.properties
...
aaime commented 6 months ago

I guess the tests could be run against a local Minio instead.