mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
Upgrades the AWS SDK to v2. AWS S3 bucket urls will now error if they are not prefixed with a schema (example: https://).
This commit is contained in:
@@ -15,7 +15,7 @@ func TestBackend(t *testing.T) {
|
||||
|
||||
// TestNewStorageExists tests the logic around MakeBucket and BucketExists
|
||||
func TestNewStorageExists(t *testing.T) {
|
||||
url := os.Getenv("ATHENS_MINIO_ENDPOINT")
|
||||
url := TrimHTTP(os.Getenv("ATHENS_MINIO_ENDPOINT"))
|
||||
if url == "" {
|
||||
t.SkipNow()
|
||||
}
|
||||
@@ -51,7 +51,7 @@ func TestNewStorageExists(t *testing.T) {
|
||||
// To ensure both paths are tested, there is a strict path error using the
|
||||
// "_" and a non strict error using less than 3 characters
|
||||
func TestNewStorageError(t *testing.T) {
|
||||
url := os.Getenv("ATHENS_MINIO_ENDPOINT")
|
||||
url := TrimHTTP(os.Getenv("ATHENS_MINIO_ENDPOINT"))
|
||||
if url == "" {
|
||||
t.SkipNow()
|
||||
}
|
||||
@@ -92,7 +92,7 @@ func (s *storageImpl) clear() error {
|
||||
}
|
||||
|
||||
func getStorage(t testing.TB) *storageImpl {
|
||||
url := os.Getenv("ATHENS_MINIO_ENDPOINT")
|
||||
url := TrimHTTP(os.Getenv("ATHENS_MINIO_ENDPOINT"))
|
||||
if url == "" {
|
||||
t.SkipNow()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user