refactor namereftransformer with kyaml

This commit is contained in:
Donny Xia
2020-07-24 15:23:17 -07:00
parent 9ba04e3f7d
commit a563169461
6 changed files with 363 additions and 177 deletions

View File

@@ -520,7 +520,7 @@ func TestNameReferenceUnhappyRun(t *testing.T) {
},
},
}).ResMap(),
expectedErr: "is expected to contain a name field"},
expectedErr: "cannot find field 'name' in node"},
}
nrt := newNameReferenceTransformer(builtinconfig.MakeDefaultConfig().NameReference)