[MM-37760] Reduce export surface of client4 (#18102)

Этот коммит содержится в:
Ben Schumacher
2021-08-13 14:02:07 +02:00
коммит произвёл GitHub
родитель a8ca5c423f
Коммит 16d8640072
7 изменённых файлов: 570 добавлений и 597 удалений

Просмотреть файл

@@ -71,7 +71,7 @@ func TestGetPing(t *testing.T) {
th.TestForAllClients(t, func(t *testing.T, client *model.Client4) {
th.App.ReloadConfig()
resp, err := client.DoApiGet(client.GetSystemRoute()+"/ping", "")
resp, err := client.DoApiGet("/system/ping", "")
require.NoError(t, err)
require.Equal(t, http.StatusOK, resp.StatusCode)
respBytes, err := ioutil.ReadAll(resp.Body)
@@ -84,7 +84,7 @@ func TestGetPing(t *testing.T) {
defer os.Unsetenv("MM_FEATUREFLAGS_TESTFEATURE")
th.App.ReloadConfig()
resp, err = client.DoApiGet(client.GetSystemRoute()+"/ping", "")
resp, err = client.DoApiGet("/system/ping", "")
require.NoError(t, err)
require.Equal(t, http.StatusOK, resp.StatusCode)
respBytes, err = ioutil.ReadAll(resp.Body)