@@ -338,7 +338,7 @@ func TestQueryEndpoint(t *testing.T) {
338
338
339
339
for _ , tc := range testCases {
340
340
t .Run (tc .name , func (t * testing.T ) {
341
- req , err := http .NewRequest (http .MethodGet , fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/query %s" , testServer .URL , tc .queryParams ), nil )
341
+ req , err := http .NewRequest (http .MethodGet , fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/metas %s" , testServer .URL , tc .queryParams ), nil )
342
342
require .NoError (t , err )
343
343
344
344
if strings .Contains (tc .name , "If-Modified-Since" ) {
@@ -397,7 +397,7 @@ func TestServerLoadHandling(t *testing.T) {
397
397
var reqs []* http.Request
398
398
for i := 0 ; i < 100 ; i ++ {
399
399
req , _ := http .NewRequest (http .MethodGet ,
400
- fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/query ?schema=olm.bundle" , baseURL ),
400
+ fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/metas ?schema=olm.bundle" , baseURL ),
401
401
nil )
402
402
req .Header .Set ("Accept" , "application/jsonl" )
403
403
reqs = append (reqs , req )
@@ -422,7 +422,7 @@ func TestServerLoadHandling(t *testing.T) {
422
422
var reqs []* http.Request
423
423
for i := 0 ; i < 50 ; i ++ {
424
424
req , _ := http .NewRequest (http .MethodGet ,
425
- fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/query ?package=test-op-%d" , baseURL , i ),
425
+ fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/metas ?package=test-op-%d" , baseURL , i ),
426
426
nil )
427
427
req .Header .Set ("Accept" , "application/jsonl" )
428
428
reqs = append (reqs , req )
@@ -452,7 +452,7 @@ func TestServerLoadHandling(t *testing.T) {
452
452
fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/all" , baseURL ),
453
453
nil )
454
454
queryReq , _ := http .NewRequest (http .MethodGet ,
455
- fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/query ?schema=olm.bundle" , baseURL ),
455
+ fmt .Sprintf ("%s/catalogs/test-catalog/api/v1/metas ?schema=olm.bundle" , baseURL ),
456
456
nil )
457
457
allReq .Header .Set ("Accept" , "application/jsonl" )
458
458
queryReq .Header .Set ("Accept" , "application/jsonl" )
0 commit comments