Wizard: Set hasPassword in requestMapper

Add `hasPassword` setter to `getUsers` function.
This commit is contained in:
regexowl 2025-04-23 13:09:07 +02:00 committed by Sanne Raymaekers
parent a07fbb6477
commit 1643b96330
3 changed files with 6 additions and 0 deletions

View file

@ -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,
},
],
},