Skip to content

Commit

Permalink
updated name and namespace of dynamic secrets in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaireddjawed committed Feb 11, 2025
1 parent 6c70c1b commit a056b58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions controllers/hcpvaultsecretsapp_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1282,8 +1282,8 @@ func Test_CleanupOrphanedShadowSecrets(t *testing.T) {
Name: "shadowSecret",
Finalizers: []string{vaultDynamicSecretFinalizer},
Labels: map[string]string{
hvsaLabelPrefix + "/namespace": "",
hvsaLabelPrefix + "/name": "",
hvsaLabelPrefix + "/namespace": "nonOwnerNamespace",
hvsaLabelPrefix + "/name": "nonOwnerName",
"app.kubernetes.io/component": "hvs-dynamic-secret-cache",
},
},
Expand All @@ -1301,8 +1301,8 @@ func Test_CleanupOrphanedShadowSecrets(t *testing.T) {
Name: "shadowSecret",
Finalizers: []string{vaultDynamicSecretFinalizer},
Labels: map[string]string{
hvsaLabelPrefix + "/namespace": "",
hvsaLabelPrefix + "/name": "",
hvsaLabelPrefix + "/namespace": "notFoundNamespace",
hvsaLabelPrefix + "/name": "notFoundName",
"app.kubernetes.io/component": "hvs-dynamic-secret-cache",
},
},
Expand All @@ -1320,8 +1320,8 @@ func Test_CleanupOrphanedShadowSecrets(t *testing.T) {
Name: "shadowSecret",
Finalizers: []string{vaultDynamicSecretFinalizer},
Labels: map[string]string{
hvsaLabelPrefix + "/namespace": "",
hvsaLabelPrefix + "/name": "",
hvsaLabelPrefix + "/namespace": "nonDeletedNotFoundNamespace",
hvsaLabelPrefix + "/name": "nonDeletedNotFoundName",
"app.kubernetes.io/component": "hvs-dynamic-secret-cache",
},
},
Expand Down

0 comments on commit a056b58

Please sign in to comment.