test that managedFields get stripped recursively

pull/564/head
Kevin Wiesmüller 2019-02-26 20:22:54 +01:00
parent d73dbfc8c1
commit 8a6a2883f9
1 changed files with 12 additions and 1 deletions

View File

@ -82,7 +82,18 @@ func TestApplyStripsFields(t *testing.T) {
"uid": "b",
"clusterName": "b",
"generation": 0,
"managedFields": [],
"managedFields": [{
"manager": "apply",
"operation": "Apply",
"apiVersion": "v1",
"fields": {
"f:metadata": {
"f:labels": {
"f:test-label": {}
}
}
}
}],
"resourceVersion": "b"
}
}`), false)