@@ -30,7 +30,7 @@ func TestSplitForReportersMerge(t *testing.T) {
3030 }, res [0 ])
3131 assert .Equal (t , filters.SingleQuery {
3232 filters .NewMatch ("FlowDirection" , `"` + string (constants .Egress )+ `"` ),
33- filters .NewMatch ("DstK8S_OwnerName " , `""` ),
33+ filters .NewMatch ("DstK8S_Type " , `"","Service "` ),
3434 filters .NewMatch ("srcns" , "a" ),
3535 filters .NewMatch ("dstns" , "b" ),
3636 }, res [1 ])
@@ -73,14 +73,14 @@ func TestExpand_ComplexQuery(t *testing.T) {
7373 assert .Equal (t , filters.SingleQuery {
7474 filters .NewMatch ("SrcK8S_Namespace" , `"my-namespace"` ),
7575 filters .NewMatch ("FlowDirection" , `"` + string (constants .Egress )+ `"` ),
76- filters .NewMatch ("DstK8S_OwnerName " , `""` ),
76+ filters .NewMatch ("DstK8S_Type " , `"","Service "` ),
7777 filters .NewMatch ("key1" , "a" ),
7878 filters .NewMatch ("key2" , "b" ),
7979 }, res [4 ])
8080 assert .Equal (t , filters.SingleQuery {
8181 filters .NewMatch ("DstK8S_Namespace" , `"my-namespace"` ),
8282 filters .NewMatch ("FlowDirection" , `"` + string (constants .Egress )+ `"` ),
83- filters .NewMatch ("DstK8S_OwnerName " , `""` ),
83+ filters .NewMatch ("DstK8S_Type " , `"","Service "` ),
8484 filters .NewMatch ("key1" , "a" ),
8585 filters .NewMatch ("key2" , "b" ),
8686 }, res [5 ])
@@ -104,14 +104,14 @@ func TestExpand_ComplexQuery(t *testing.T) {
104104 assert .Equal (t , filters.SingleQuery {
105105 filters .NewMatch ("SrcK8S_Namespace" , `"my-namespace"` ),
106106 filters .NewMatch ("FlowDirection" , `"` + string (constants .Egress )+ `"` ),
107- filters .NewMatch ("DstK8S_OwnerName " , `""` ),
107+ filters .NewMatch ("DstK8S_Type " , `"","Service "` ),
108108 filters .NewMatch ("key1" , "c" ),
109109 filters .NewMatch ("key2" , "d" ),
110110 }, res [9 ])
111111 assert .Equal (t , filters.SingleQuery {
112112 filters .NewMatch ("DstK8S_Namespace" , `"my-namespace"` ),
113113 filters .NewMatch ("FlowDirection" , `"` + string (constants .Egress )+ `"` ),
114- filters .NewMatch ("DstK8S_OwnerName " , `""` ),
114+ filters .NewMatch ("DstK8S_Type " , `"","Service "` ),
115115 filters .NewMatch ("key1" , "c" ),
116116 filters .NewMatch ("key2" , "d" ),
117117 }, res [10 ])
0 commit comments