Various unit test related improvements (#9865)

* api4: improved error handling

* system_store: more logs

* integrate go-junit-report into test-te/test-ee

* add CI_MINIO_HOST and CI_INBUCKET_HOST instead of CI_HOST

* comment re: minio configuration issue

* fix TestStartServerPortUnavailable to pass even when root can bind to :21

* skip TestFindManifest_FolderPermission while running as root
Этот коммит содержится в:
Jesse Hallam
2018-11-28 09:05:39 -05:00
коммит произвёл GitHub
родитель c24c518a14
Коммит 136d8ca5c4
9 изменённых файлов: 63 добавлений и 27 удалений

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

@@ -5,6 +5,7 @@ package app
import (
"crypto/tls"
"net"
"net/http"
"path"
"strconv"
@@ -50,9 +51,13 @@ func TestStartServerPortUnavailable(t *testing.T) {
a, err := New()
require.NoError(t, err)
// Attempt to listen on a system-reserved port
// Listen on the next available port
listener, err := net.Listen("tcp", ":0")
require.NoError(t, err)
// Attempt to listen on the port used above.
a.UpdateConfig(func(cfg *model.Config) {
*cfg.ServiceSettings.ListenAddress = ":21"
*cfg.ServiceSettings.ListenAddress = listener.Addr().String()
})
serverErr := a.StartServer()