Skip to content

Commit

Permalink
fix duplicate map value
Browse files Browse the repository at this point in the history
  • Loading branch information
Devtools committed Jan 25, 2025
1 parent 0b6523f commit 033039b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/parallel/nstemplatetier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func TestTierTemplateRevision(t *testing.T) {
}
// for simplicity, we add the CRQ to all types of templates (both cluster scope and namespace scoped),
// even if the CRQ is cluster scoped.
// WARNING: thus THIS NSTemplateTier should NOT be sued to provision a user!!!
// WARNING: thus THIS NSTemplateTier should NOT be used to provision a user!!!
customTier := tiers.CreateCustomNSTemplateTier(t, hostAwait, "ttr", baseTier,
tiers.WithNamespaceResources(t, baseTier, updateTierTemplateObjects),
tiers.WithClusterResources(t, baseTier, updateTierTemplateObjects),
Expand Down Expand Up @@ -432,7 +432,8 @@ func TestTierTemplateRevision(t *testing.T) {
// when
// we update a parameter in the NSTemplateTier
// by increasing the deployment quota
customTier = tiers.UpdateCustomNSTemplateTier(t, hostAwait, customTier, tiers.WithParameter("DEPLOYMENT_QUOTA", "100"))
customTier.NSTemplateTier.Spec.Parameters = []toolchainv1alpha1.Parameter{{Name: "DEPLOYMENT_QUOTA", Value: "100"}}
customTier = tiers.UpdateCustomNSTemplateTier(t, hostAwait, customTier)
require.NoError(t, err)

// then
Expand Down

0 comments on commit 033039b

Please sign in to comment.