mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
Add an 'enable' flag in the server configuration to enable gql-based searches
"extensions": {
"search": {
"enable": true
}
}
This commit is contained in:
committed by
Ramkumar Chinchani
parent
c1dd7878e4
commit
792e82cbdf
@@ -308,7 +308,8 @@ func TestServerCVEResponse(t *testing.T) {
|
||||
UpdateInterval: 2,
|
||||
}
|
||||
searchConfig := &ext.SearchConfig{
|
||||
CVE: cveConfig,
|
||||
CVE: cveConfig,
|
||||
Enable: true,
|
||||
}
|
||||
c.Config.Extensions = &ext.ExtensionConfig{
|
||||
Search: searchConfig,
|
||||
|
||||
@@ -287,7 +287,7 @@ func TestServerResponse(t *testing.T) {
|
||||
config := api.NewConfig()
|
||||
config.HTTP.Port = port
|
||||
config.Extensions = &extensions.ExtensionConfig{
|
||||
Search: &extensions.SearchConfig{},
|
||||
Search: &extensions.SearchConfig{Enable: true},
|
||||
}
|
||||
c := api.NewController(config)
|
||||
dir, err := ioutil.TempDir("", "oci-repo-test")
|
||||
|
||||
Reference in New Issue
Block a user