@@ -645,30 +645,6 @@ var _ = Describe("Project Validation Tests", func() {
645645 Entry ("no change (same value)" , ptr .To ("garden-dev" ), ptr .To ("garden-dev" ), BeEmpty ()),
646646 )
647647
648- It ("should forbid Project updates trying to change the createdBy field" , func () {
649- newProject := prepareProjectForUpdate (project )
650- newProject .Spec .CreatedBy .Name = "some-other-user"
651-
652- errorList := ValidateProjectUpdate (newProject , project )
653-
654- Expect (errorList ).To (ConsistOf (PointTo (MatchFields (IgnoreExtras , Fields {
655- "Type" : Equal (field .ErrorTypeInvalid ),
656- "Field" : Equal ("spec.createdBy" ),
657- }))))
658- })
659-
660- It ("should forbid Project updates trying to change the createdBy field" , func () {
661- newProject := prepareProjectForUpdate (project )
662- newProject .Spec .CreatedBy .Name = "some-other-user"
663-
664- errorList := ValidateProjectUpdate (newProject , project )
665-
666- Expect (errorList ).To (ConsistOf (PointTo (MatchFields (IgnoreExtras , Fields {
667- "Type" : Equal (field .ErrorTypeInvalid ),
668- "Field" : Equal ("spec.createdBy" ),
669- }))))
670- })
671-
672648 It ("should forbid Project updates trying to reset the owner field" , func () {
673649 newProject := prepareProjectForUpdate (project )
674650 newProject .Spec .Owner = nil
0 commit comments