MXS-1300: Test cluster diff functionality

The `cluster diff` command is now tested by doing add/alter/remove
operations on servers. As the same methods are used for all objects, they
should detect all sorts of modifications between two Maxscales.
This commit is contained in:
Markus Mäkelä
2017-08-07 14:49:39 +03:00
parent 70ae93a9ab
commit c593a1bf32
3 changed files with 87 additions and 8 deletions

View File

@ -70,9 +70,7 @@ module.exports = function() {
// Execute a single MaxCtrl command, returns a Promise
this.doCommand = function(command) {
var ctrl = require('./lib/core.js')
var opts = { extra_args: [ '--quiet'] }
return ctrl.execute(command.split(' '), opts)
return ctrl.execute(command.split(' '))
}
// Execute a single MaxCtrl command and request a resource via the REST API,