func (c *mockAWSClient) GetBucketLocation(input *s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error) {
	if *input.Bucket == "testBucket" {
		return &s3.GetBucketLocationOutput{LocationConstraint: aws.String(region)}, nil
	}
	return &s3.GetBucketLocationOutput{}, awserr.New("NotFound", "Not Found", nil)
}
GetBucketLocation implements the GetBucketLocation method for mockAWSClient.
This mocks the AWS API response of having access to a single bucket named "testBucket".
package s3
import (
	"reflect"
	"testing"
	"time"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/s3"
	"github.com/aws/aws-sdk-go/service/s3/s3iface"
	storageConstants "github.com/openshift/managed-velero-operator/pkg/storage/constants"
)
const (
	clusterInfraName = "fakeCluster"
	region           = "us-east-1"
)
var awsConfig = &aws.Config{Region: aws.String(region)}
var s, _ = session.NewSession(awsConfig)
var validBuckets = []*s3.Bucket{
	{
		CreationDate: &time.Time{},
		Name:         aws.String("testBucket"),
	},
}
var inconsistentBuckets = []*s3.Bucket{
	{
		CreationDate: &time.Time{},
		Name:         aws.String("inconsistentBucket"),
	},
	{
		CreationDate: &time.Time{},
		Name:         aws.String("testBucket"),
	},
}
var emptyBuckets = []*s3.Bucket{}
func newMockAWSClient(buckets []*s3.Bucket) *mockAWSClient {
	return &mockAWSClient{
		s3Client:    s3.New(s),
		Config:      awsConfig,
		Buckets:     buckets,
		BucketsTags: make(map[string]*s3.Tagging),
	}
}
var fakeClient = newMockAWSClient(validBuckets)
var fakeInconsistentClient = newMockAWSClient(inconsistentBuckets)
var fakeEmptyClient = newMockAWSClient(emptyBuckets)
type mockAWSClient struct {
	s3Client    s3iface.S3API
	Config      *aws.Config
	Buckets     []*s3.Bucket
	BucketsTags map[string]*s3.Tagging
}
func (c *mockAWSClient) CreateBucket(input *s3.CreateBucketInput) (*s3.CreateBucketOutput, error) {
	return &s3.CreateBucketOutput{
		Location: aws.String(region),
	}, nil
}
func (c *mockAWSClient) DeleteBucketTagging(input *s3.DeleteBucketTaggingInput) (*s3.DeleteBucketTaggingOutput, error) {
	return c.s3Client.DeleteBucketTagging(input)
}
func (c *mockAWSClient) GetAWSClientConfig() *aws.Config {
	return c.Config
}
func (c *mockAWSClient) HeadBucket(input *s3.HeadBucketInput) (*s3.HeadBucketOutput, error) {
	if *input.Bucket == "testBucket" {
		return &s3.HeadBucketOutput{}, nil
	}
	return &s3.HeadBucketOutput{}, awserr.New("NotFound", "Not Found", nil)
}