From f818ea94cc6055e1bd73543a0edfa2e6263e8469 Mon Sep 17 00:00:00 2001 From: Devtools Date: Thu, 5 Dec 2024 14:04:31 +0100 Subject: [PATCH] add comment about param assertion --- test/e2e/parallel/nstemplatetier_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/parallel/nstemplatetier_test.go b/test/e2e/parallel/nstemplatetier_test.go index 6e1e4fb7d..8e32ad456 100644 --- a/test/e2e/parallel/nstemplatetier_test.go +++ b/test/e2e/parallel/nstemplatetier_test.go @@ -455,6 +455,8 @@ func TestTierTemplateRevision(t *testing.T) { // the parameter is copied from the NSTemplateTier assert.NotNil(t, obj.Spec.Parameters) assert.NotNil(t, customTier.Spec.Parameters) + // we only expect the static parameter DEPLOYMENT_QUOTA to be copied from the tier to the TTR. + // the SPACE_NAME is not a parameter, but a dynamic variable which will be evaluated when provisioning a namespace for the user. assert.Equal(t, obj.Spec.Parameters[0].Name, customTier.Spec.Parameters[0].Name) assert.Equal(t, obj.Spec.Parameters[0].Value, customTier.Spec.Parameters[0].Value) }