Browse Source

go-docker: support functional tests

* add linking to go-docker command and remove host networking
* add functional/repo to functional tests script
pull/75/head
Bobby Rullo 11 years ago
parent
commit
91b900db3b
  1. 7
      go-docker
  2. 2
      test-functional

7
go-docker

@ -17,5 +17,10 @@ for VAR in ${DOCKER_ENV//,/ }; do
ENV_STR="$ENV_STR -e $VAR=${!VAR}"
done
LINKS_STR=""
for VAR in ${DOCKER_LINKS//,/ }; do
LINKS_STR="$LINKS_STR --link $VAR"
done
echo "running with docker, might take a while to pull the image..."
docker run $ENV_STR --rm --net=host -v `pwd`:/go/src/$REPO -w /go/src/$REPO quay.io/coreos/go-builder:1.3.3 $@
docker run $LINKS_STR $ENV_STR --rm -v `pwd`:/go/src/$REPO -w /go/src/$REPO quay.io/coreos/go-builder:1.3.3 $@

2
test-functional

@ -1,4 +1,4 @@
#!/bin/bash -e
source ./build
go test $@ github.com/coreos/dex/functional
go test $@ github.com/coreos/dex/functional/repo

Loading…
Cancel
Save