mirror of
https://github.com/project-zot/zot.git
synced 2026-06-20 06:37:56 +08:00
chore: rename search route prefix (#887)
* chore: rename search route prefix * chore: use builtin time.Duration.Truncate() on latencies Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ func checkExtEndPoint(serverURL string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
searchEndPoint, _ := combineServerAndEndpointURL(serverURL, constants.ExtSearchPrefix)
|
||||
searchEndPoint, _ := combineServerAndEndpointURL(serverURL, constants.FullSearchPrefix)
|
||||
|
||||
query := `
|
||||
{
|
||||
|
||||
@@ -378,7 +378,7 @@ func TestServerCVEResponseGQL(t *testing.T) {
|
||||
}(ctlr)
|
||||
// wait till ready
|
||||
for {
|
||||
res, err := resty.R().Get(url + constants.ExtSearchPrefix)
|
||||
res, err := resty.R().Get(url + constants.FullSearchPrefix)
|
||||
if err == nil && res.StatusCode() == 422 {
|
||||
break
|
||||
}
|
||||
@@ -787,7 +787,7 @@ func TestServerCVEResponse(t *testing.T) {
|
||||
}(ctlr)
|
||||
// wait till ready
|
||||
for {
|
||||
res, err := resty.R().Get(url + constants.ExtSearchPrefix)
|
||||
res, err := resty.R().Get(url + constants.FullSearchPrefix)
|
||||
if err == nil && res.StatusCode() == 422 {
|
||||
break
|
||||
}
|
||||
|
||||
@@ -1145,7 +1145,7 @@ func TestServerResponseGQLWithoutPermissions(t *testing.T) {
|
||||
}(ctlr)
|
||||
// wait till ready
|
||||
for {
|
||||
res, err := resty.R().Get(url + constants.ExtSearchPrefix)
|
||||
res, err := resty.R().Get(url + constants.FullSearchPrefix)
|
||||
if err == nil && res.StatusCode() == 422 {
|
||||
break
|
||||
}
|
||||
|
||||
+1
-1
@@ -655,7 +655,7 @@ func (service searchService) makeGraphQLQuery(ctx context.Context,
|
||||
config searchConfig, username, password, query string,
|
||||
resultPtr interface{},
|
||||
) error {
|
||||
endPoint, err := combineServerAndEndpointURL(*config.servURL, constants.ExtSearchPrefix)
|
||||
endPoint, err := combineServerAndEndpointURL(*config.servURL, constants.FullSearchPrefix)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user