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:
Andrei Aaron
2023-08-26 23:32:41 +03:00
committed by GitHub
parent 289acfabbd
commit 28858f695f
3 changed files with 5 additions and 8 deletions
+2 -5
View File
@@ -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
}
}
}`