Skip to content

Commit

Permalink
Add a new test case for version.go
Browse files Browse the repository at this point in the history
  • Loading branch information
chizhg committed Aug 21, 2021
1 parent fda5db5 commit d6a9921
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kubetest2-gke/deployer/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ func TestIsClusterVersionMatch(t *testing.T) {
target: "1.19.10-gke.1000",
expectMatched: false,
},
{
desc: "version having more parts than the target cannot be matched",
version: "1.19.10.1.2",
target: "1.19.10-gke.1000",
expectMatched: false,
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit d6a9921

Please sign in to comment.