test secret and configmap filtering in concierge authenticator controllers

Signed-off-by: Ashish Amarnath <ashish.amarnath@broadcom.com>
This commit is contained in:
Ashish Amarnath
2024-07-10 00:53:06 -07:00
committed by Ryan Richard
parent cb4b63f8b3
commit 1b7a26d932
7 changed files with 330 additions and 7 deletions

View File

@@ -2302,7 +2302,7 @@ func TestGitHubUpstreamWatcherControllerFilterSecret(t *testing.T) {
wantDelete: true,
},
{
name: "should return false for a secret of the type Opaque",
name: "should return true for a secret of the type Opaque",
secret: func() *corev1.Secret {
otherSecret := goodSecret.DeepCopy()
otherSecret.Type = corev1.SecretTypeOpaque
@@ -2313,7 +2313,7 @@ func TestGitHubUpstreamWatcherControllerFilterSecret(t *testing.T) {
wantDelete: true,
},
{
name: "should return false for a secret of the type TLS",
name: "should return true for a secret of the type TLS",
secret: func() *corev1.Secret {
otherSecret := goodSecret.DeepCopy()
otherSecret.Type = corev1.SecretTypeTLS