Skip to content

Commit

Permalink
add comment about param assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Devtools committed Dec 5, 2024
1 parent 8260a86 commit f818ea9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/parallel/nstemplatetier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f818ea9

Please sign in to comment.