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 удалений

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

@@ -56,7 +56,7 @@ func TestS3FileBackendTestSuiteWithEncryption(t *testing.T) {
}
func runBackendTest(t *testing.T, encrypt bool) {
s3Host := os.Getenv("CI_HOST")
s3Host := os.Getenv("CI_MINIO_HOST")
if s3Host == "" {
s3Host = "dockerhost"
}

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

@@ -187,7 +187,7 @@ func RetryInbucket(attempts int, callback func() error) (err error) {
func getInbucketHost() (host string) {
inbucket_host := os.Getenv("CI_HOST")
inbucket_host := os.Getenv("CI_INBUCKET_HOST")
if inbucket_host == "" {
inbucket_host = "dockerhost"
}