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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user