End-to-end test setup (#4833)

* First start on test setup

* Setup e2e runner framework

* Use prepublishOnly for docs build

* Setup docker-based e2e test runner

* Spacing

* Setup db-getter + config

* Build image in Dockerode, pull images if needed

* Fix waiting for DB, run test for each running instance

* Get tests running per vendor

* Temp remove oracle

* Close awaiting connections in between
This commit is contained in:
Rijk van Zanten
2021-04-05 15:11:02 -04:00
committed by GitHub
parent 3da416b6ff
commit c7476cedbd
16 changed files with 2224 additions and 133 deletions

View File

@@ -0,0 +1,17 @@
import request from 'supertest';
import { getURLsToTest } from '../get-urls-to-test';
describe('/server', () => {
it('/ping', () =>
Promise.all(
getURLsToTest().map((url) =>
request(url)
.get('/server/ping')
.expect('Content-Type', /text\/html/)
.expect(200)
.then((response) => {
expect(response.text).toBe('pong');
})
)
));
});