Skip to content

Commit

Permalink
* Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
imriz committed Dec 2, 2021
1 parent 33e8cdc commit d4d60c2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func Test_filterClusters(t *testing.T) {
NameFilter: *(regexp.MustCompile(``)),
TagFilter: map[string]string{
"Enviroment": "test",
"SomeOther": "tag",
},
}

Expand Down Expand Up @@ -243,6 +244,14 @@ func Test_filterClusters(t *testing.T) {
ClusterName: strPtr("test-cluster"),
Tags: map[string]string{
"Enviroment": "test",
"SomeOther": "DifferentTag",
},
},
{
ClusterName: strPtr("second-test-cluster"),
Tags: map[string]string{
"Enviroment": "staging",
"SomeOther": "tag",
},
},
{
Expand All @@ -258,6 +267,14 @@ func Test_filterClusters(t *testing.T) {
ClusterName: strPtr("test-cluster"),
Tags: map[string]string{
"Enviroment": "test",
"SomeOther": "DifferentTag",
},
},
{
ClusterName: strPtr("second-test-cluster"),
Tags: map[string]string{
"Enviroment": "staging",
"SomeOther": "tag",
},
},
},
Expand Down

0 comments on commit d4d60c2

Please sign in to comment.