Skip to content

Commit

Permalink
bump up version to 1.10 (#1008)
Browse files Browse the repository at this point in the history
* bump up version to 1.10

* update version regex in e2e tests
  • Loading branch information
patilpankaj212 authored Aug 25, 2021
1 parent 9aea292 commit c9f7483
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package version
import "fmt"

// Terrascan The Terrascan version
const Terrascan = "1.9.0"
const Terrascan = "1.10.0"

// Get returns the terrascan version
func Get() string {
Expand Down
4 changes: 2 additions & 2 deletions test/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var (
filePattern = regexp.MustCompile(`["]*[fF]ile["]*[ \t]*[:=][ \t]*["]*(.+)[\\\/](.+)["]*`)

// sarifVersionPattern is regex for 'version' attribute in sarif violations output
sarifVersionPattern = regexp.MustCompile(`["]*[vV]ersion["][:=][ \t]*["][0-9][\.][0-9][\.][0-9]["],`)
sarifVersionPattern = regexp.MustCompile(`["]*[vV]ersion["][:=][ \t]*["]([0-9])+[\.]([0-9])+[\.]([0-9])+["],`)

// sarifUriPattern is regex for 'uri' attribute in sarif violations output
sarifURIPattern = regexp.MustCompile(`["]*[uU]ri["][:=][ \t]*["]*(.+)[\\\/](.+)["]*`)
Expand All @@ -86,7 +86,7 @@ var (
classnamePattern = regexp.MustCompile(`classname=["]*(.+)[\\\/](.+)["]*`)

// versionValuePattern is regex for 'value' attribute in junit-xml output (which is terrascan version)
versionValuePattern = regexp.MustCompile(`value="v[1][\.][0-9][\.][0-9]"`)
versionValuePattern = regexp.MustCompile(`value="v[0-9][\.]([0-9])+[\.]([0-9])+"`)

// sourceRegexPattern is regex for 'file/folder' attribute in violations output
sourceRegexPattern = regexp.MustCompile(`["]*source["]*[ \t]*[:][ \t]*["]*(.+)[\\\/](.+)["]*`)
Expand Down

0 comments on commit c9f7483

Please sign in to comment.