Add missing maxctrl test cases

Code coverage revealed that some parts of the code could be easily
tested. Added these missing test cases and removed some dead code.
This commit is contained in:
Markus Mäkelä
2020-03-05 10:16:17 +02:00
parent 68c070c2c4
commit 5b45796da4
7 changed files with 111 additions and 21 deletions

View File

@ -19,7 +19,7 @@ describe("Create/Destroy Commands", function() {
})
it('monitor without parameters fails due to missing user parameter', function() {
return verifyCommand('create monitor my-monitor mysqlmon', 'monitors/my-monitor')
return doCommand('create monitor my-monitor mysqlmon')
.should.be.rejected
})
@ -273,5 +273,10 @@ describe("Create/Destroy Commands", function() {
.should.be.fulfilled
})
it('create filter with bad parameters', function() {
return doCommand('create filter test-filter qlafilter count 10')
.should.be.rejected
})
after(stopMaxScale)
});