mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 09:24:23 +00:00
Pull factories out of the bowels.
This commit is contained in:
@@ -133,11 +133,10 @@ func TestConstructConfigMap(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
// TODO: all tests should use a FakeFs
|
||||
f := NewConfigMapFactory(fs.MakeRealFS(), nil)
|
||||
for _, tc := range testCases {
|
||||
// TODO: all tests should use a FakeFs
|
||||
fSys := fs.MakeRealFS()
|
||||
f := NewConfigMapFactory(&tc.input, nil, fSys)
|
||||
cm, err := f.MakeConfigMap1()
|
||||
cm, err := f.MakeConfigMap1(&tc.input)
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user