console: implement "filter/saved" endpoints

This commit is contained in:
Vincent Bernat
2022-06-09 22:56:05 +02:00
parent b65d78ab1b
commit bf0c474726
22 changed files with 475 additions and 42 deletions

View File

@@ -6,8 +6,6 @@ import (
netHTTP "net/http"
"strings"
"testing"
"akvorado/common/helpers"
)
func TestServeDocs(t *testing.T) {
@@ -27,8 +25,7 @@ func TestServeDocs(t *testing.T) {
t.Run(fmt.Sprintf("%s-%s", name, tc.Path), func(t *testing.T) {
conf := DefaultConfiguration()
conf.ServeLiveFS = live
c, h, _, _ := NewMock(t, conf)
helpers.StartStop(t, c)
_, h, _, _ := NewMock(t, conf)
resp, err := netHTTP.Get(fmt.Sprintf("http://%s/api/v0/console/docs/%s",
h.Address, tc.Path))