File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments