use container services in integration tests (#1213)

This commit is contained in:
Harshavardhana
2021-11-10 12:10:29 -08:00
committed by GitHub
parent 9a01922c67
commit 09a5dfebbc
2 changed files with 17 additions and 13 deletions

View File

@@ -63,6 +63,11 @@ swagger-operator:
assets:
@(cd portal-ui; yarn install; make build-static; yarn prettier --write . --loglevel warn; cd ..)
test-integration:
@(docker run -d --name minio --rm -p 9000:9000 quay.io/minio/minio:latest server /data{1...4} && sleep 5)
@(GO111MODULE=on go test -race -v github.com/minio/console/integration/...)
@(docker stop minio)
test:
@(GO111MODULE=on go test -race -v github.com/minio/console/restapi/...)