From fd3e157a4511839eeab9b0b291ec1081b2da2463 Mon Sep 17 00:00:00 2001 From: Sagar Wani Date: Wed, 3 Apr 2024 07:34:16 -0400 Subject: [PATCH] Added check for IsActive flag --- server/secret_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/secret_test.go b/server/secret_test.go index 8f28b50..ab00814 100644 --- a/server/secret_test.go +++ b/server/secret_test.go @@ -190,7 +190,7 @@ func TestSecretCRUD(t *testing.T) { // Test read of the deleted secret fails s, err := tss.Secret(sc.ID) - if s != nil { + if s != nil && s.Active { t.Errorf("deleted secret with id '%d' returned from read", sc.ID) } } @@ -559,7 +559,7 @@ func TestSecretCRUDForSSHTemplate(t *testing.T) { // Test read of the deleted secret fails s, err := tss.Secret(sc.ID) - if s != nil { + if s != nil && s.Active { t.Errorf("deleted secret with id '%d' returned from read", sc.ID) } }