Fill the gaps in MaxCtrl testing

The MaxCtrl test suite now covers most of the code that can be tested
within reasonable limits. Also removed some dead code in `list servers`.
This commit is contained in:
Markus Mäkelä
2018-08-09 12:36:40 +03:00
parent 50c20e79ee
commit f6cd8b6454
4 changed files with 37 additions and 9 deletions

View File

@ -44,6 +44,17 @@ describe("Alter Commands", function() {
})
})
it('alter service filters', function() {
return verifyCommand('alter service-filters Read-Connection-Router', 'services/Read-Connection-Router')
.then(function(res) {
res.data.relationships.should.not.have.keys("filters")
})
.then(() => verifyCommand('alter service-filters Read-Connection-Router QLA', 'services/Read-Connection-Router'))
.then(function(res) {
res.data.relationships.filters.data.length.should.equal(1)
})
})
it('will not alter non-existent service parameter', function() {
return doCommand('alter service Read-Connection-Router turbocharge yes-please')
.should.be.rejected