Allow remote server to be used for maxctrl test suite

The test suite now works with remote servers and is now fully integrated
to the regression test suite.
This commit is contained in:
Markus Mäkelä
2017-10-11 15:47:56 +03:00
parent 47b1004134
commit 938484a73e
4 changed files with 63 additions and 42 deletions

View File

@ -15,6 +15,13 @@ module.exports = function() {
this.expect = chai.expect
this.host = 'http://localhost:8989/v1/'
this.primary_host = '127.0.0.1:8989'
this.secondary_host = '127.0.0.1:8990'
if (process.env.maxscale2_API) {
this.secondary_host = process.env.maxscale2_API
}
// Start MaxScale, this should be called in the `before` handler of each test unit
this.startMaxScale = function() {
return new Promise(function(resolve, reject) {