Skip to content

Commit

Permalink
fix: delete left out comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dnitsch committed Mar 28, 2024
1 parent ed2b953 commit 7d4f48d
Showing 1 changed file with 0 additions and 92 deletions.
92 changes: 0 additions & 92 deletions internal/strategy/strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,95 +287,3 @@ func Test_SelectImpl_With(t *testing.T) {
})
}
}

// "success AWSSEcretsMgr": {
// func() func() {
// os.Setenv("AWS_ACCESS_KEY", "AAAAAAAAAAAAAAA")
// os.Setenv("AWS_SECRET_ACCESS_KEY", "00000000000000000000111111111")
// return func() {
// os.Clearenv()
// }
// },
// context.TODO(),
// SecretMgrPrefix, "AWSSECRETS://foo/bar", (&GenVarsConfig{}).WithKeySeparator("|").WithTokenSeparator("://"),
// func(t *testing.T, ctx context.Context, conf GenVarsConfig) store.Strategy {
// imp, err := NewSecretsMgr(ctx)
// if err != nil {
// t.Errorf(testutils.TestPhraseWithContext, "aws secrets init impl error", err.Error(), nil)
// }
// return imp
// },
// },
// "success AWSParamStore": {
// func() func() {
// os.Setenv("AWS_ACCESS_KEY", "AAAAAAAAAAAAAAA")
// os.Setenv("AWS_SECRET_ACCESS_KEY", "00000000000000000000111111111")
// return func() {
// os.Clearenv()
// }
// },
// context.TODO(),
// ParamStorePrefix, "AWSPARAMSTR://foo/bar", (&GenVarsConfig{}).WithKeySeparator("|").WithTokenSeparator("://"),
// func(t *testing.T, ctx context.Context, conf GenVarsConfig) genVarsStrategy {
// imp, err := NewParamStore(ctx)
// if err != nil {
// t.Errorf(testutils.TestPhraseWithContext, "paramstore init impl error", err.Error(), nil)
// }
// return imp
// },
// },
// "success GCPSecrets": {
// func() func() {
// tmp, _ := os.CreateTemp(".", "gcp-creds-*")
// tmp.Write(TEST_GCP_CREDS)
// os.Setenv("GOOGLE_APPLICATION_CREDENTIALS", tmp.Name())
// return func() {
// os.Clearenv()
// os.Remove(tmp.Name())
// }
// },
// context.TODO(),
// GcpSecretsPrefix, "GCPSECRETS://foo/bar", (&GenVarsConfig{}).WithKeySeparator("|").WithTokenSeparator("://"),
// func(t *testing.T, ctx context.Context, conf GenVarsConfig) genVarsStrategy {
// imp, err := NewGcpSecrets(ctx)
// if err != nil {
// t.Errorf(testutils.TestPhraseWithContext, "gcp secrets init impl error", err.Error(), nil)
// }
// return imp
// },
// },
// "success AZKV": {
// func() func() {
// os.Setenv("AZURE_STUFF", "foo")
// return func() {
// os.Clearenv()
// }
// },
// context.TODO(),
// AzKeyVaultSecretsPrefix, "AZKVSECRET://foo/bar", (&GenVarsConfig{}).WithKeySeparator("|").WithTokenSeparator("://"),
// func(t *testing.T, ctx context.Context, conf GenVarsConfig) genVarsStrategy {
// imp, err := NewKvScrtStore(ctx, "AZKVSECRET://foo/bar", conf)
// if err != nil {
// t.Errorf(testutils.TestPhraseWithContext, "azkv init impl error", err.Error(), nil)
// }
// return imp
// },
// },
// "success Vault": {
// func() func() {
// os.Setenv("VAULT_TOKEN", "foo")
// os.Setenv("VAULT_ADDR", "http://127.0.0.1:8200")
// return func() {
// os.Clearenv()
// }
// },
// context.TODO(),
// HashicorpVaultPrefix, "VAULT://foo/bar", (&GenVarsConfig{}).WithKeySeparator("|").WithTokenSeparator("://"),
// func(t *testing.T, ctx context.Context, conf GenVarsConfig) genVarsStrategy {
// imp, err := NewVaultStore(ctx, "VAULT://foo/bar", conf)
// if err != nil {
// t.Errorf(testutils.TestPhraseWithContext, "vault init impl error", err.Error(), nil)
// }
// return imp
// },
// },

0 comments on commit 7d4f48d

Please sign in to comment.