Skip to content

Commit

Permalink
fix tests (Match -> Matches)
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Moioli <silvio@moioli.net>
  • Loading branch information
moio committed Jan 16, 2025
1 parent 0d562e9 commit 12e82cc
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions pkg/stores/sqlpartition/listprocessor/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestParseQuery(t *testing.T) {
Filters: []informer.Filter{
{
Field: []string{"metadata", "namespace"},
Match: "ns1",
Matches: []string{"ns1"},
Op: "",
Partial: false,
},
Expand Down Expand Up @@ -89,14 +89,14 @@ func TestParseQuery(t *testing.T) {
{
Filters: []informer.Filter{
{
Field: []string{"metadata", "name"},
Match: "somethin",
Op: informer.Eq,
Field: []string{"metadata", "name"},
Matches: []string{"somethin"},
Op: informer.Eq,
},
{
Field: []string{"metadata", "labels[field.cattle.io/projectId]"},
Match: "somethin",
Op: informer.Eq,
Field: []string{"metadata", "labels[field.cattle.io/projectId]"},
Matches: []string{"somethin"},
Op: informer.Eq,
},
},
},
Expand All @@ -120,7 +120,7 @@ func TestParseQuery(t *testing.T) {
Filters: []informer.Filter{
{
Field: []string{"metadata", "namespace"},
Match: "ns1",
Matches: []string{"ns1"},
Op: "",
Partial: false,
},
Expand All @@ -139,14 +139,14 @@ func TestParseQuery(t *testing.T) {
{
Filters: []informer.Filter{
{
Field: []string{"metadata", "name"},
Match: "somethin",
Op: informer.Eq,
Field: []string{"metadata", "name"},
Matches: []string{"somethin"},
Op: informer.Eq,
},
{
Field: []string{"metadata", "labels[field.cattle.io/projectId]"},
Match: "somethin",
Op: informer.Eq,
Field: []string{"metadata", "labels[field.cattle.io/projectId]"},
Matches: []string{"somethin"},
Op: informer.Eq,
},
},
},
Expand All @@ -170,7 +170,7 @@ func TestParseQuery(t *testing.T) {
Filters: []informer.Filter{
{
Field: []string{"metadata", "namespace"},
Match: "ns1",
Matches: []string{"ns1"},
Op: "",
Partial: false,
},
Expand All @@ -192,14 +192,14 @@ func TestParseQuery(t *testing.T) {
{
Filters: []informer.Filter{
{
Field: []string{"metadata", "name"},
Match: "somethin",
Op: informer.Eq,
Field: []string{"metadata", "name"},
Matches: []string{"somethin"},
Op: informer.Eq,
},
{
Field: []string{"metadata", "labels[field.cattle.io/projectId]"},
Match: "somethin",
Op: informer.Eq,
Field: []string{"metadata", "labels[field.cattle.io/projectId]"},
Matches: []string{"somethin"},
Op: informer.Eq,
},
},
},
Expand All @@ -222,7 +222,7 @@ func TestParseQuery(t *testing.T) {
Filters: []informer.Filter{
{
Field: []string{"a"},
Match: "c",
Matches: []string{"c"},
Op: "",
Partial: true,
},
Expand Down Expand Up @@ -251,7 +251,7 @@ func TestParseQuery(t *testing.T) {
Filters: []informer.Filter{
{
Field: []string{"a"},
Match: "c",
Matches: []string{"c"},
Op: "",
Partial: false,
},
Expand Down Expand Up @@ -280,7 +280,7 @@ func TestParseQuery(t *testing.T) {
Filters: []informer.Filter{
{
Field: []string{"a"},
Match: "c",
Matches: []string{"c"},
Op: "",
Partial: true,
},
Expand All @@ -290,7 +290,7 @@ func TestParseQuery(t *testing.T) {
Filters: []informer.Filter{
{
Field: []string{"b"},
Match: "d",
Matches: []string{"d"},
Op: "",
Partial: true,
},
Expand Down Expand Up @@ -320,13 +320,13 @@ func TestParseQuery(t *testing.T) {
Filters: []informer.Filter{
{
Field: []string{"a"},
Match: "c",
Matches: []string{"c"},
Op: "",
Partial: true,
},
{
Field: []string{"b"},
Match: "d",
Matches: []string{"d"},
Op: "",
Partial: true,
},
Expand Down

0 comments on commit 12e82cc

Please sign in to comment.