Files
fx-serverless/utils/docker_test.go
Minghe 7d3cc8f8d0 Setup CI via GitHub actions (#241)
* Update go.yml

* provision docker

* fix use

* fix use

* migration to workflows

* fix dep

* refactor workflows

* setup golang env

* fix path issue

* fix path issue

* Fix

* clean up

* provision docker

* start fx agent

* check

* check

* Squashed commit of the following:

commit c7f50a3256164573f1f7910c4b79729c91f77af7
Author: Minghe Huang <h.minghe@gmail.com>
Date:   Mon Aug 12 08:13:54 2019 +0800

    update

commit e5ba0ea5af
Author: Minghe Huang <h.minghe@gmail.com>
Date:   Sun Aug 11 23:53:38 2019 +0800

    test

commit aec09957f9
Author: Minghe Huang <h.minghe@gmail.com>
Date:   Sun Aug 11 23:38:37 2019 +0800

    add unit test

commit 59ac78a112
Author: Minghe Huang <h.minghe@gmail.com>
Date:   Sun Aug 11 22:52:51 2019 +0800

    refactor api

* Squashed commit of the following:

commit caa7e06fee72f345c6fad742f30a740f1c3de04d
Author: Minghe Huang <h.minghe@gmail.com>
Date:   Mon Aug 12 13:42:54 2019 +0800

    refactor api

commit a384c6c023325da36fa54818c1c69673c439f8af
Author: Minghe Huang <h.minghe@gmail.com>
Date:   Mon Aug 12 09:58:21 2019 +0800

    move packer

* disable test

* manage dep
2019-08-12 23:17:14 +08:00

16 lines
246 B
Go

package utils
import "testing"
func TestDockerVersion(t *testing.T) {
host := "localhost"
port := "8866"
version, err := DockerVersion(host, port)
if err != nil {
t.Fatal(err)
}
if version == "" {
t.Fatal("should version empty")
}
}