$ go get github.com/hongkailiu/svt-go
$ godep restore
$ make build
$ ./build/svt
For example, we can run node-virtical test by:
# ./build/svt clusterLoader --file=conf/nodeVertical.yaml
See doc for more information.
A web application implemented with GoLang:
$ ./build/svt http
$ # in another terminal
$ curl localhost:8080
{
"version": "0.0.2-3-g2375151-dirty",
"ips": ["127.0.0.1", "::1", "192.168.31.163", "fe80::f2d5:bfff:fe5c:1b01", "192.168.122.1", "10.10.120.59"],
"now": "2017-08-05T14:48:09.441967753-04:00"
}
It can log according posting http requests, to test oc-logging, and report the host ips, to test loading-balancing of oc-services.
The docker image containing it is pushed to docker hub:
$ docker run -d -p 8080:8080 docker.io/hongkailiu/svt-go:http
$ make test
Eg, run tests in http
package
$ go test "github.com/hongkailiu/svt-go/http"
$ make clean package
$ ls build/svt*.tar.gz
See .travis.yml
for details.
The packaged artifact is released to
svt-release repo.
Note that in order to activate the release we need to turn on
${RELEASE}
on travis-ci.
See the wiki page.