Fix enabled admin users being shown as basic users

The enabled admins for the Linux users were shown as basic users. This was
caused by the separation of the two admin types.

Added tests that check that enabled Linux accounts show the correct type
in the output.
This commit is contained in:
Markus Mäkelä
2017-09-07 19:27:50 +03:00
parent a3402dfebf
commit d2b474e021
2 changed files with 18 additions and 2 deletions

View File

@ -29,7 +29,7 @@ describe("Enable/Disable Commands", function() {
it('enable account', function() {
return verifyCommand('enable account test', 'users/unix/test')
.should.be.fulfilled
.should.eventually.have.deep.property('data.attributes.account', 'basic')
})
it('disable account', function() {
@ -37,5 +37,15 @@ describe("Enable/Disable Commands", function() {
.should.be.fulfilled
})
it('enable admin account', function() {
return verifyCommand('enable account test --type=admin', 'users/unix/test')
.should.eventually.have.deep.property('data.attributes.account', 'admin')
})
it('disable admin account', function() {
return doCommand('disable account test')
.should.be.fulfilled
})
after(stopMaxScale)
});