From 9a4a5ca981a2840e634a963c02068f563cef1606 Mon Sep 17 00:00:00 2001 From: Francisc Munteanu Date: Tue, 14 Jan 2025 13:11:42 +0100 Subject: [PATCH] Update controllers/nstemplatetier/nstemplatetier_controller_test.go Co-authored-by: Matous Jobanek --- .../nstemplatetier/nstemplatetier_controller_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/controllers/nstemplatetier/nstemplatetier_controller_test.go b/controllers/nstemplatetier/nstemplatetier_controller_test.go index dbb08fb32..e6a369bcd 100644 --- a/controllers/nstemplatetier/nstemplatetier_controller_test.go +++ b/controllers/nstemplatetier/nstemplatetier_controller_test.go @@ -228,7 +228,14 @@ func TestReconcile(t *testing.T) { tierTemplates := initTierTemplates(t, withTemplateObjects(crq), base1nsTier.Name) base1nsTierWithRevisions := base1nsTier base1nsTierWithRevisions.Status.Revisions = map[string]string{ - "base1ns-admin-123456new": "base1ns-admin-123456new-abcd", "base1ns-clusterresources-123456new": "base1ns-clusterresources-123456new-abcd", "base1ns-code-123456new": "base1ns-code-123456new-abcd", "base1ns-dev-123456new": "base1ns-dev-123456new-abcd", "base1ns-edit-123456new": "`base1ns-edit-123456new-abcd", "base1ns-stage-123456new": "base1ns-stage-123456new-abcd", "base1ns-viewer-123456new": "base1ns-viewer-123456new-abcd"} + "base1ns-admin-123456new": "base1ns-admin-123456new-abcd", + "base1ns-clusterresources-123456new": "base1ns-clusterresources-123456new-abcd", + "base1ns-code-123456new": "base1ns-code-123456new-abcd", + "base1ns-dev-123456new": "base1ns-dev-123456new-abcd", + "base1ns-edit-123456new": "`base1ns-edit-123456new-abcd", + "base1ns-stage-123456new": "base1ns-stage-123456new-abcd", + "base1ns-viewer-123456new": "base1ns-viewer-123456new-abcd", + } r, req, cl := prepareReconcile(t, base1nsTierWithRevisions.Name, append(tierTemplates, base1nsTierWithRevisions)...) // when // check no TTR is present before reconciling