@@ -216,7 +216,6 @@ func TestPatchLastConfigApplied(t *testing.T) {
216216 {
217217 title : "spec without changes is a noop" ,
218218 object : & akov2.AtlasProject {
219- TypeMeta : metav1.TypeMeta {Kind : "AtlasProject" , APIVersion : "atlas.mongodb.com" },
220219 ObjectMeta : metav1.ObjectMeta {Name : "test-project" , Namespace : "ns" , Annotations : map [string ]string {}},
221220 Spec : akov2.AtlasProjectSpec {
222221 Name : "atlas-project-name" ,
@@ -243,7 +242,6 @@ func TestPatchLastConfigApplied(t *testing.T) {
243242 {
244243 title : "cleared spec is applied with no other changes" ,
245244 object : & akov2.AtlasProject {
246- TypeMeta : metav1.TypeMeta {Kind : "AtlasProject" , APIVersion : "atlas.mongodb.com" },
247245 ObjectMeta : metav1.ObjectMeta {Name : "test-project" , Namespace : "ns" , Annotations : map [string ]string {}},
248246 Spec : akov2.AtlasProjectSpec {
249247 Name : "atlas-project-name" ,
@@ -309,7 +307,7 @@ func TestPatchLastConfigAppliedErrors(t *testing.T) {
309307 title : "empty struct cannot be patched" ,
310308 object : & akov2.AtlasProject {},
311309 spec : & struct {}{},
312- wantErrorMsg : "failed to patch resource: \" \" is invalid: metadata.name: Required value: name is required" ,
310+ wantErrorMsg : "is invalid: metadata.name: Required value: name is required" ,
313311 },
314312 } {
315313 t .Run (tc .title , func (t * testing.T ) {
0 commit comments