Skip to content

Commit 7a0e3ca

Browse files
committed
Add second api to tests
Signed-off-by: Essam Eldaly <[email protected]>
1 parent b9026e9 commit 7a0e3ca

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pkg/querier/tripperware/query_attribute_matcher_test.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,14 @@ func Test_rejectQueryOrSetPriorityShouldMatchOnApiType(t *testing.T) {
720720
},
721721
},
722722
},
723+
{
724+
Priority: 6,
725+
QueryAttributes: []validation.QueryAttribute{
726+
{
727+
ApiType: "series",
728+
},
729+
},
730+
},
723731
},
724732
},
725733
}
@@ -730,10 +738,14 @@ func Test_rejectQueryOrSetPriorityShouldMatchOnApiType(t *testing.T) {
730738
}
731739

732740
tests := map[string]testCase{
733-
"should set priority based on api type": {
741+
"should set priority based on api type for metadata": {
734742
path: "/api/v1/targets/metadata?limit=1",
735743
expectedPriority: 7,
736744
},
745+
"should set priority based on api type for series": {
746+
path: "/api/v1/targets/series",
747+
expectedPriority: 6,
748+
},
737749
}
738750

739751
for testName, testData := range tests {

0 commit comments

Comments
 (0)