Add --log-steps flag

This commit is contained in:
Gongpu Zhu
2020-09-01 22:40:03 -07:00
parent 980f407552
commit 39a8798a87
2 changed files with 18 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/spf13/cobra"
"github.com/stretchr/testify/assert"
"sigs.k8s.io/kustomize/kyaml/runfn"
)
@@ -283,6 +284,16 @@ apiVersion: v1
args: []string{"run", "dir", "--image", "foo:bar", "--", "a=b", "c", "e=f"},
err: "must have keys and values separated by",
},
{
name: "log steps",
args: []string{"run", "dir", "--log-steps"},
path: "dir",
expectedStruct: &runfn.RunFns{
Path: "dir",
NetworkName: "bridge",
LogSteps: true,
},
},
}
for i := range tests {
@@ -385,5 +396,4 @@ apiVersion: v1
})
}
}