diff --git a/tests/falco/commands_test.go b/tests/falco/commands_test.go index 8aa8d3d..a7aa063 100644 --- a/tests/falco/commands_test.go +++ b/tests/falco/commands_test.go @@ -75,7 +75,7 @@ func TestFalco_Cmd_Version(t *testing.T) { `Falco version:[\s]+`+semVerRegex+`[\s]+`+ `Libs version:[\s]+(`+semVerRegex+`|`+commitHashRegex+`)[\s]+`+ `Plugin API:[\s]+`+tagRegex+`[\s]+`+ - `Engine:[\s]+[0-9]+[\s]+`+ // note: since falco 0.34.0 + `Engine:[\s]+`+tagRegex+`[\s]+`+ `Driver:[\s]+`+ `API version:[\s]+`+tagRegex+`[\s]+`+ `Schema version:[\s]+`+tagRegex+`[\s]+`+ diff --git a/tests/falco/legacy_test.go b/tests/falco/legacy_test.go index 7591fad..aef76c9 100644 --- a/tests/falco/legacy_test.go +++ b/tests/falco/legacy_test.go @@ -232,7 +232,7 @@ func TestFalco_Legacy_InvalidEngineVersionNotNumber(t *testing.T) { assert.NotNil(t, res.RuleValidation().AllErrors(). OfCode("LOAD_ERR_YAML_VALIDATE"). OfItemType("required_engine_version"). - OfMessage("Can't decode YAML scalar value")) + OfMessage("Unable to parse engine version 'not-a-number' as a semver string. Expected \"x.y.z\" semver format."), res.Stdout()) assert.Error(t, res.Err(), "%s", res.Stderr()) assert.Equal(t, 1, res.ExitCode()) }