mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-18 03:05:28 +00:00
Fix krm exec function working dir
This commit is contained in:
@@ -78,3 +78,17 @@ func TestLoader(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoaderSetPluginConfigWorkingDir(t *testing.T) {
|
||||
p := provider.NewDefaultDepProvider()
|
||||
rmF := resmap.NewFactory(p.GetResourceFactory())
|
||||
fsys := filesys.MakeFsInMemory()
|
||||
c := types.EnabledPluginConfig(types.BploLoadFromFileSys)
|
||||
pLdr := NewLoader(c, rmF, fsys)
|
||||
pLdrCopy := *pLdr
|
||||
pLdrCopy.DeepCopyPluginConfig()
|
||||
pLdrCopy.SetPluginConfigWorkingDir("/tmp/dummy")
|
||||
if pLdrCopy.Config().FnpLoadingOptions.WorkingDir != "/tmp/dummy" {
|
||||
t.Fatal("plugin working dir is not set correctly")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user