Skip to content

Commit 9b6094f

Browse files
authored
Fix failing test (#377)
* Fix failing test We've changed the output that we get from the server. I think we probably need to provide some better messaging from the server than what we get now, perhaps we should look at catching thise errors, and reporting better. * Fix test
1 parent 1aa64fc commit 9b6094f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/kosli/beginTrail_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (suite *BeginTrailCommandTestSuite) TestBeginTrailCmd() {
5151
wantError: true,
5252
name: "beginning a trail with an invalid template fails",
5353
cmd: fmt.Sprintf("begin trail test-123 --flow %s --template-file testdata/invalid_template.yml %s", suite.flowName, suite.defaultKosliArguments),
54-
goldenRegex: "Error: template file is invalid. 1 validation error for Template\n.*",
54+
goldenRegex: "Error: 1 validation error for Template\n.*",
5555
},
5656
{
5757
name: "can begin a trail with a valid template",

cmd/kosli/createFlow_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (suite *CreateFlowCommandTestSuite) TestCreateFlowCmd() {
8787
wantError: true,
8888
name: "creating a flow with an invalid template fails",
8989
cmd: "create flow newFlowWithTemplate --template-file testdata/invalid_template.yml --description \"my new flow\" " + suite.defaultKosliArguments,
90-
goldenRegex: "Error: template file is invalid. 1 validation error for Template\n.*",
90+
goldenRegex: "Error: Input payload validation failed.*",
9191
},
9292
{
9393
wantError: true,

0 commit comments

Comments
 (0)