mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 10:00:56 +00:00
Add a plugin loader test.
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"sigs.k8s.io/kustomize/internal/plugintest"
|
||||
"sigs.k8s.io/kustomize/k8sdeps/kv/plugin"
|
||||
)
|
||||
|
||||
@@ -32,7 +33,7 @@ port: "12345"
|
||||
}
|
||||
|
||||
func TestServiceGeneratorPlugin(t *testing.T) {
|
||||
tc := NewTestEnvController(t).Set()
|
||||
tc := plugintest_test.NewPluginTestEnv(t).Set()
|
||||
defer tc.Reset()
|
||||
|
||||
tc.BuildGoPlugin(
|
||||
@@ -97,7 +98,7 @@ ut labore et dolore magna aliqua.
|
||||
|
||||
// nolint:lll
|
||||
func TestSecretGenerator(t *testing.T) {
|
||||
tc := NewTestEnvController(t).Set()
|
||||
tc := plugintest_test.NewPluginTestEnv(t).Set()
|
||||
defer tc.Reset()
|
||||
|
||||
tc.BuildGoPlugin(
|
||||
@@ -129,7 +130,7 @@ type: Opaque
|
||||
}
|
||||
|
||||
func TestConfigMapGenerator(t *testing.T) {
|
||||
tc := NewTestEnvController(t).Set()
|
||||
tc := plugintest_test.NewPluginTestEnv(t).Set()
|
||||
defer tc.Reset()
|
||||
|
||||
tc.BuildExecPlugin(
|
||||
|
||||
Reference in New Issue
Block a user