From b1d25e574722a96250b4009c873c75d47426c5ab Mon Sep 17 00:00:00 2001 From: Billy Shambrook Date: Tue, 1 Dec 2020 18:24:58 -0500 Subject: [PATCH] Add tests Signed-off-by: Billy Shambrook --- pkg/storage/driver/cfgmaps_test.go | 5 +++++ pkg/storage/driver/secrets_test.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pkg/storage/driver/cfgmaps_test.go b/pkg/storage/driver/cfgmaps_test.go index 626c36cb9..90fbe6264 100644 --- a/pkg/storage/driver/cfgmaps_test.go +++ b/pkg/storage/driver/cfgmaps_test.go @@ -147,6 +147,11 @@ func TestConfigMapQuery(t *testing.T) { if len(rls) != 2 { t.Errorf("Expected 2 results, got %d", len(rls)) } + for _, rls := range rls { + if rls.Labels["status"] != "deployed" { + t.Errorf("Expected status label on release") + } + } _, err = cfgmaps.Query(map[string]string{"name": "notExist"}) if err != ErrReleaseNotFound { diff --git a/pkg/storage/driver/secrets_test.go b/pkg/storage/driver/secrets_test.go index d509c7b3a..5401997f1 100644 --- a/pkg/storage/driver/secrets_test.go +++ b/pkg/storage/driver/secrets_test.go @@ -147,6 +147,11 @@ func TestSecretQuery(t *testing.T) { if len(rls) != 2 { t.Fatalf("Expected 2 results, actual %d", len(rls)) } + for _, rls := range rls { + if rls.Labels["status"] != "deployed" { + t.Errorf("Expected status label on release") + } + } _, err = secrets.Query(map[string]string{"name": "notExist"}) if err != ErrReleaseNotFound {