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:
@ -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)
|
||||
});
|
||||
|
Reference in New Issue
Block a user