mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
feat(mgmt): mgmt extention no longer depends on UI being enabled (#1728)
It is now enabled based only on search configuration Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
@@ -813,9 +813,6 @@ func TestServeMgmtExtension(t *testing.T) {
|
||||
"output": "%s"
|
||||
},
|
||||
"extensions": {
|
||||
"ui": {
|
||||
"enable": true
|
||||
},
|
||||
"search": {
|
||||
"enable": true
|
||||
}
|
||||
@@ -837,7 +834,7 @@ func TestServeMgmtExtension(t *testing.T) {
|
||||
So(found, ShouldBeTrue)
|
||||
})
|
||||
|
||||
Convey("Mgmt disabled - UI unconfigured", t, func(c C) {
|
||||
Convey("Mgmt disabled - search unconfigured", t, func(c C) {
|
||||
content := `{
|
||||
"storage": {
|
||||
"rootDirectory": "%s"
|
||||
@@ -852,7 +849,7 @@ func TestServeMgmtExtension(t *testing.T) {
|
||||
},
|
||||
"extensions": {
|
||||
"search": {
|
||||
"enable": true
|
||||
"enable": false
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
Reference in New Issue
Block a user