mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00: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:
@@ -3,13 +3,14 @@ package mongo
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/mongo/options"
|
||||
"io"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/mongo/options"
|
||||
|
||||
"github.com/gomods/athens/pkg/config"
|
||||
"github.com/gomods/athens/pkg/errors"
|
||||
"github.com/gomods/athens/pkg/storage"
|
||||
@@ -145,6 +146,7 @@ func TestQueryKindUnexpectedErrorCases(t *testing.T) {
|
||||
require.Equal(t, errors.KindUnexpected, errors.Kind(err))
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewStorageWithDefaultOverrides(t *testing.T) {
|
||||
url := os.Getenv("ATHENS_MONGO_STORAGE_URL")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user