1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/cmd/cli/kubectl-kyverno/commands/jp/parse/command_test.go

16 lines
273 B
Go
Raw Normal View History

package parse
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestCommand(t *testing.T) {
cmd := Command()
assert.NotNil(t, cmd)
cmd.SetArgs([]string{"request.object.metadata.name | truncate(@, `9`)"})
err := cmd.Execute()
assert.NoError(t, err)
}