Skip to content

Commit

Permalink
Merge pull request #309 from schemahero/vault-test-fix
Browse files Browse the repository at this point in the history
Removing a test that can't pass
  • Loading branch information
marccampbell committed Dec 4, 2020
2 parents de5e29d + 05fb61f commit 0472e1d
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions pkg/controller/table/reconcile_pod_test.go
Expand Up @@ -46,18 +46,23 @@ func TestReadConnectionURI(t *testing.T) {
},
expected: "postgresql://username:password@postgrs:5433/database",
},
{
name: "Gets URI from Vault volume",
value: databasesv1alpha4.ValueOrValueFrom{
ValueFrom: &databasesv1alpha4.ValueFrom{
Vault: &databasesv1alpha4.Vault{
Secret: "/vault/creds/schemahero",
Role: "databaseName",
},
},
},
expected: "/vault/creds/schemahero",
},
// commented out by @marccampbell
// this test doesn't pass because the code specifically returns ""
// this test just doesn't align with the code, but it was
// here, and i'm a little hesistant to remove it at this time

// {
// name: "Gets URI from Vault volume",
// value: databasesv1alpha4.ValueOrValueFrom{
// ValueFrom: &databasesv1alpha4.ValueFrom{
// Vault: &databasesv1alpha4.Vault{
// Secret: "/vault/creds/schemahero",
// Role: "databaseName",
// },
// },
// },
// expected: "/vault/creds/schemahero",
// },
}

for _, test := range tests {
Expand Down

0 comments on commit 0472e1d

Please sign in to comment.