Remove minio region

Twice recently the minio region seemed to have changed
unsetting it seems to work consistently.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
Paulo Gomes 2022-05-10 14:28:54 +01:00
parent 39f1c5c217
commit c666f50424
No known key found for this signature in database
GPG Key ID: 9995233870E99BEE
1 changed files with 1 additions and 4 deletions

View File

@ -39,7 +39,6 @@ import (
const (
objectName string = "test.yaml"
objectEtag string = "2020beab5f1711919157756379622d1d"
region string = "us-west-2"
)
var (
@ -72,7 +71,6 @@ var (
Spec: sourcev1.BucketSpec{
BucketName: bucketName,
Endpoint: "play.min.io",
Region: region,
Provider: "generic",
Insecure: true,
SecretRef: &meta.LocalObjectReference{
@ -88,7 +86,6 @@ var (
Spec: sourcev1.BucketSpec{
BucketName: bucketName,
Endpoint: "play.min.io",
Region: region,
Provider: "aws",
Insecure: true,
},
@ -226,7 +223,7 @@ func TestValidateSecret(t *testing.T) {
}
func createBucket(ctx context.Context) {
if err := minioClient.Client.MakeBucket(ctx, bucketName, miniov7.MakeBucketOptions{Region: region}); err != nil {
if err := minioClient.Client.MakeBucket(ctx, bucketName, miniov7.MakeBucketOptions{}); err != nil {
exists, errBucketExists := minioClient.BucketExists(ctx, bucketName)
if errBucketExists == nil && exists {
deleteBucket(ctx)