Skip to content

Commit

Permalink
chore(tests): use official semver regex.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>

Co-authored-by: Leonardo Grasso <[email protected]>
  • Loading branch information
2 people authored and poiana committed Sep 12, 2023
1 parent 98d9289 commit 30c3643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/falco/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func TestFalco_Cmd_Version(t *testing.T) {
assert.NoError(t, res.Err(), "%s", res.Stderr())
assert.Equal(t, res.ExitCode(), 0)
assert.Regexp(t, regexp.MustCompile(
`Falco version:[\s]+[0-9]+\.[0-9]+\.[0-9](\-[a-z0-9]+)?(\+[a-f0-9]+)?[\s]+`+
`Libs version:[\s]+(([0-9]+\.[0-9]+\.[0-9](\-[a-z0-9]+)?)|([a-f0-9]+))[\s]+`+
`Falco version:[\s]+(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?[\s]+`+
`Libs version:[\s]+(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?[\s]+`+
`Plugin API:[\s]+[0-9]+\.[0-9]+\.[0-9][\s]+`+
`Engine:[\s]+[0-9]+[\s]+`+ // note: since falco 0.34.0
`Driver:[\s]+`+
Expand Down

0 comments on commit 30c3643

Please sign in to comment.