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:
parent
a70547d633
commit
04d25e171e
@ -9,6 +9,8 @@ import (
|
|||||||
"github.com/alcionai/corso/src/pkg/storage"
|
"github.com/alcionai/corso/src/pkg/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const testRepoRootPrefix = "corso_integration_test/"
|
||||||
|
|
||||||
var AWSStorageCredEnvs = []string{
|
var AWSStorageCredEnvs = []string{
|
||||||
credentials.AWSAccessKeyID,
|
credentials.AWSAccessKeyID,
|
||||||
credentials.AWSSecretAccessKey,
|
credentials.AWSSecretAccessKey,
|
||||||
@ -31,7 +33,7 @@ func NewPrefixedS3Storage(t *testing.T) storage.Storage {
|
|||||||
storage.ProviderS3,
|
storage.ProviderS3,
|
||||||
storage.S3Config{
|
storage.S3Config{
|
||||||
Bucket: cfg[TestCfgBucket],
|
Bucket: cfg[TestCfgBucket],
|
||||||
Prefix: t.Name() + "-" + now,
|
Prefix: testRepoRootPrefix + t.Name() + "-" + now,
|
||||||
},
|
},
|
||||||
storage.CommonConfig{
|
storage.CommonConfig{
|
||||||
Corso: credentials.GetCorso(),
|
Corso: credentials.GetCorso(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user