sa7mon / S3Scanner

Scan for misconfigured S3 buckets across S3-compatible APIs!
https://github.com/sa7mon/S3Scanner/discussions/135
MIT License
2.51k stars 360 forks source link

use s3ninja for custom provider testing #174

Open sa7mon opened 1 year ago

sa7mon commented 1 year ago

Vultr objects is just too flaky to depend on for automated testing. Fire up an S3 Ninja container, programmatically create some test buckets, and use those for testing.

sa7mon commented 1 year ago

s3 ninja is not fully featured. gofakes3 is close but doesn't support bucket permissions at all. We may just need to use httptest and assert the HTTP calls look correct. Current work in branch 174