Skip to content

Commit

Permalink
modify the docker version for cis 1.3.1 (#116)
Browse files Browse the repository at this point in the history
* modify the docker version for cis 1.3.1

* if docker bersion is 20.04,the cis version is cis-1.2
  • Loading branch information
y4ney authored Aug 23, 2023
1 parent 79523ee commit 037a9b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
)

var benchmarkVersionMap = map[string]string{
"cis-1.3.1": ">= 20.04",
"cis-1.2": ">= 18.09, < 20.04",
"cis-1.3.1": ">= 20.10",
"cis-1.2": ">= 18.09, < 20.10",
"cis-1.1": ">= 17.06, < 18.09",
"cis-1.0": ">= 1.13.0, < 17.06",
}
Expand Down
2 changes: 1 addition & 1 deletion app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func Test_getDockerCisVersion(t *testing.T) {
wantErr bool
}{
{name: "Test for version 20.10", stringVersion: "20.10", want: "cis-1.3.1", wantErr: false},
{name: "Test for version 20.04", stringVersion: "20.04", want: "cis-1.3.1", wantErr: false},
{name: "Test for version 20.04", stringVersion: "20.04", want: "cis-1.2", wantErr: false},
{name: "Test for version 18.09", stringVersion: "18.09", want: "cis-1.2", wantErr: false},
{name: "Test for version 19.3.6", stringVersion: "19.3.6", want: "cis-1.2", wantErr: false},
{name: "Test for version 18.06", stringVersion: "18.06", want: "cis-1.1", wantErr: false},
Expand Down

0 comments on commit 037a9b2

Please sign in to comment.