Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Devtools committed Nov 30, 2024
1 parent f9069f6 commit 62ee614
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/parallel/nstemplatetier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func TestTierTemplateRevision(t *testing.T) {
"annotations": map[string]string{},
"labels": map[string]interface{}{
"matchLabels": map[string]string{
"toolchain.dev.openshift.com/space": "'{{.SPACE_NAME}}'",
"toolchain.dev.openshift.com/space": "{{.SPACE_NAME}}",
},
},
},
Expand Down Expand Up @@ -452,6 +452,8 @@ func TestTierTemplateRevision(t *testing.T) {
assert.Contains(t, string(obj.Spec.TemplateObjects[0].Raw), ".SPACE_NAME")
assert.Contains(t, string(obj.Spec.TemplateObjects[0].Raw), ".DEPLOYMENT_QUOTA")
// the parameter is copied from the NSTemplateTier
assert.NotNil(t, obj.Spec.Parameters)
assert.NotNil(t, customTier.Spec.Parameters)
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 62ee614

Please sign in to comment.