MXS-1929: Update unit tests with monitor changes

The user is a mandatory parameter and needs to be passed when a monitor is
created.
This commit is contained in:
Markus Mäkelä
2018-08-22 23:29:25 +03:00
parent 1f8ed106b3
commit 8cfc966561
3 changed files with 29 additions and 10 deletions

View File

@ -179,7 +179,7 @@ describe('Cluster Sync', function() {
})
it('sync after monitor creation', function() {
return doCommand('create monitor my-monitor-2 mysqlmon --hosts ' + secondary_host)
return doCommand('create monitor my-monitor-2 mysqlmon user=maxuser password=maxpwd --hosts ' + secondary_host)
.then(() => verifyCommand('cluster sync ' + secondary_host + ' --hosts ' + primary_host,
'monitors/my-monitor-2'))
})