Files
fn-serverless/test/fn-api-tests
Denis Makogon 4bb0744853 Use alpine images to make tests take less time (#629)
* Use retry func while trying to ping SQL datastore

 - implements retry func specifically for SQL datastore ping
 - fmt fixes
 - using sqlx.Db.PingContext instead of sqlx.Db.Ping
 - propogate context to SQL datastore

* Use alpine images to make tests take less time

 * use PG alpine
 * use Minio alpine
 * no official alpine distro for MySQL, uhhh :(
 * install swagger tool instead of docker image
 * use retry func to confirm that datastore is okay before running tests

* Store swagger tool at Fn during CI time

 somehow it's a problem to put binary to ${GOPATH}/bin

* Adjust swagger tool reference path

* Revert minio image

* Use amd64/alpine-based swagger tool image for API spec validation

* Cleanup
2018-01-02 14:56:38 -06:00
..
2018-01-02 13:29:49 -06:00
2018-01-02 13:29:49 -06:00
2018-01-02 13:29:49 -06:00
2018-01-02 13:29:49 -06:00
2017-08-18 13:48:26 -07:00
2017-11-29 17:50:24 -08:00
2018-01-02 13:29:49 -06:00
2018-01-02 13:29:49 -06:00
2018-01-02 13:29:49 -06:00

FN integration API tests

Test dependencies

DOCKER_HOST - for building images
FN_API_URL - Fn API endpoint

How to run tests?

export FN_API_URL=http://localhost:8080
go test -v ./...