From 7e0fce7ad0ffb628e896e6f665babf1c446ed7a8 Mon Sep 17 00:00:00 2001 From: shubham Date: Mon, 10 Jun 2024 21:38:04 +0530 Subject: [PATCH] fixed tests Signed-off-by: shubham --- config/install.yaml | 2 +- internal/controller/config/config_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/install.yaml b/config/install.yaml index 5f11743a..b6294582 100644 --- a/config/install.yaml +++ b/config/install.yaml @@ -1131,7 +1131,7 @@ metadata: apiVersion: v1 data: config.yaml: |- - logLevel: 1 + logLevel: 3 includedResources: "group=apps,kind=Deployment;\ group=,kind=ConfigMap;group=,kind=Secret;group=,kind=ServiceAccount;\ group=rbac.authorization.k8s.io,kind=RoleBinding;group=rbac.authorization.k8s.io,kind=Role" diff --git a/internal/controller/config/config_test.go b/internal/controller/config/config_test.go index 68838572..4354f70d 100644 --- a/internal/controller/config/config_test.go +++ b/internal/controller/config/config_test.go @@ -24,7 +24,7 @@ func TestLoadConfigMatchValues(t *testing.T) { assert.NoError(t, err) assert.Nil(t, err, "Failed to load configuration") - assert.Equal(t, 1, config.LogLevel, "Log Level does not match") + assert.Equal(t, 3, config.LogLevel, "Log Level does not match") // now verify that if we modify the file, it will still be okay originalFile := "../../../tests/config/testconfig.yaml" fileToCopy := "../../../tests/config/testconfig2.yaml"