Remove selflink references in api tests

This commit is contained in:
Wojciech Tyczyński
2022-01-13 11:33:26 +01:00
parent 41ee6a3e44
commit 8b758fb3b9
4 changed files with 0 additions and 13 deletions

View File

@@ -56,11 +56,6 @@ func TestAccessorImplementations(t *testing.T) {
t.Errorf("%v (%v) did not preserve resource version", gv.WithKind(kind), knownType)
continue
}
m.SetSelfLink("102030")
if m.GetSelfLink() != "102030" {
t.Errorf("%v (%v) did not preserve self link", gv.WithKind(kind), knownType)
continue
}
case isOM:
m := om.GetObjectMeta()
if m == nil {
@@ -72,11 +67,6 @@ func TestAccessorImplementations(t *testing.T) {
t.Errorf("%v (%v) did not preserve resource version", gv.WithKind(kind), knownType)
continue
}
m.SetSelfLink("102030")
if m.GetSelfLink() != "102030" {
t.Errorf("%v (%v) did not preserve self link", gv.WithKind(kind), knownType)
continue
}
labels := map[string]string{"a": "b"}
m.SetLabels(labels)
if !reflect.DeepEqual(m.GetLabels(), labels) {