mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Support initializing a directory with a Krmfile
This commit is contained in:
committed by
Phillip Wittrock
parent
0e5e2648b3
commit
075846c731
33
cmd/config/internal/commands/e2e/init_test.go
Normal file
33
cmd/config/internal/commands/e2e/init_test.go
Normal file
@@ -0,0 +1,33 @@
|
||||
// Copyright 2019 The Kubernetes Authors.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package e2e
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestInit(t *testing.T) {
|
||||
tests := []test{
|
||||
{
|
||||
name: "init",
|
||||
args: []string{"init"},
|
||||
expectedFiles: map[string]string{
|
||||
"Krmfile": `
|
||||
apiVersion: config.k8s.io/v1alpha1
|
||||
kind: Krmfile
|
||||
`,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "init",
|
||||
args: []string{"init", "."},
|
||||
expectedFiles: map[string]string{
|
||||
"Krmfile": `
|
||||
apiVersion: config.k8s.io/v1alpha1
|
||||
kind: Krmfile
|
||||
`,
|
||||
},
|
||||
},
|
||||
}
|
||||
runTests(t, tests)
|
||||
}
|
||||
Reference in New Issue
Block a user