Add a common prefix to test storage prefixes (#2054)

## Description

This results in all test kopia repositories being created under the same "folder" in S3, thus making manual cleanup much easier.

## Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No 

## Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [x] 🧹 Tech Debt/Cleanup

## Issue(s)

* closes #2053 

## Test Plan

- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
ashmrtn 2023-01-09 12:04:34 -08:00 committed by GitHub
parent a70547d633
commit 04d25e171e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,8 @@ import (
"github.com/alcionai/corso/src/pkg/storage"
)
const testRepoRootPrefix = "corso_integration_test/"
var AWSStorageCredEnvs = []string{
credentials.AWSAccessKeyID,
credentials.AWSSecretAccessKey,
@ -31,7 +33,7 @@ func NewPrefixedS3Storage(t *testing.T) storage.Storage {
storage.ProviderS3,
storage.S3Config{
Bucket: cfg[TestCfgBucket],
Prefix: t.Name() + "-" + now,
Prefix: testRepoRootPrefix + t.Name() + "-" + now,
},
storage.CommonConfig{
Corso: credentials.GetCorso(),