Wizard: Set hasPassword in requestMapper
Add `hasPassword` setter to `getUsers` function.
This commit is contained in:
parent
a07fbb6477
commit
1643b96330
3 changed files with 6 additions and 0 deletions
|
|
@ -387,6 +387,7 @@ describe('User request generated correctly', () => {
|
|||
ssh_key: validSshKey,
|
||||
password: validPassword,
|
||||
groups: ['wheel', 'users', 'widget'],
|
||||
hasPassword: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -440,15 +441,18 @@ describe('User request generated correctly', () => {
|
|||
ssh_key: 'ssh-rsa rachel',
|
||||
password: rachelPasswd,
|
||||
groups: ['wheel', 'users', 'widget'],
|
||||
hasPassword: true,
|
||||
},
|
||||
{
|
||||
name: 'monica',
|
||||
hasPassword: false,
|
||||
},
|
||||
{
|
||||
name: 'chandler',
|
||||
ssh_key: 'ssh-rsa chandler',
|
||||
password: chandlerPasswd,
|
||||
groups: ['group'],
|
||||
hasPassword: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue