diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2019-10-23 22:59:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-23 22:59:46 -0400 |
| commit | cb03ef3ca03fdbdf6d7e99866c08db4250daef3e (patch) | |
| tree | e8bb546daaec377579b44ea4bf0b23cc42ed2dd2 /tests/integration/basic_test.go | |
| parent | 08d705e3607b11a19f814c22b1da67b460205bdc (diff) | |
| parent | 838174bd63f635a7c96b44fb3babaef1d61fb1a1 (diff) | |
Merge pull request #646 from hairyhenderson/refactor-validateopts
refactor validateOpts
Diffstat (limited to 'tests/integration/basic_test.go')
| -rw-r--r-- | tests/integration/basic_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration/basic_test.go b/tests/integration/basic_test.go index 8153bb06..0d44eb0f 100644 --- a/tests/integration/basic_test.go +++ b/tests/integration/basic_test.go @@ -114,7 +114,7 @@ func (s *BasicSuite) TestFlagRules(c *C) { result := icmd.RunCommand(GomplateBin, "-f", "-", "-i", "HELLO WORLD") result.Assert(c, icmd.Expected{ ExitCode: 1, - Err: "--in and --file may not be used together", + Err: "only one of these flags is supported at a time: --in, --file, --input-dir", }) result = icmd.RunCommand(GomplateBin, "--output-dir", ".") @@ -126,25 +126,25 @@ func (s *BasicSuite) TestFlagRules(c *C) { result = icmd.RunCommand(GomplateBin, "--input-dir", ".", "--in", "param") result.Assert(c, icmd.Expected{ ExitCode: 1, - Err: "--input-dir can not be used together with --in or --file", + Err: "only one of these flags is supported at a time: --in, --file, --input-dir", }) result = icmd.RunCommand(GomplateBin, "--input-dir", ".", "--file", "input.txt") result.Assert(c, icmd.Expected{ ExitCode: 1, - Err: "--input-dir can not be used together with --in or --file", + Err: "only one of these flags is supported at a time: --in, --file, --input-dir", }) result = icmd.RunCommand(GomplateBin, "--output-dir", ".", "--out", "param") result.Assert(c, icmd.Expected{ ExitCode: 1, - Err: "--output-dir can not be used together with --out", + Err: "only one of these flags is supported at a time: --out, --output-dir, --output-map", }) result = icmd.RunCommand(GomplateBin, "--output-map", ".", "--out", "param") result.Assert(c, icmd.Expected{ ExitCode: 1, - Err: "--output-map can not be used together with --out or --output-dir", + Err: "only one of these flags is supported at a time: --out, --output-dir, --output-map", }) } |
