add realm-sync regression test for new 'remove-vanished'

by having a test case that does not delete properties, but acls and
entries

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2022-03-28 14:38:05 +02:00 committed by Thomas Lamprecht
parent 2f58f6715e
commit fa2afa15b2

View File

@ -317,6 +317,46 @@ my $tests = [
},
},
],
[
"don't delete properties, but users and acls",
{
realm => 'syncedrealm',
'remove-vanished' => 'acl;entry',
scope => 'both',
},
{
users => {
'root@pam' => { username => 'root', },
'user1@syncedrealm' => {
username => 'user1',
enable => 1,
'keys' => 'some',
},
'user2@syncedrealm' => {
username => 'user2',
enable => 1,
},
'user4@syncedrealm' => {
username => 'user4',
enable => 1,
},
},
groups => {
'group1-syncedrealm' => {
users => {
'user1@syncedrealm' => 1,
},
},
'group3-syncedrealm' => { users => {}, },
},
acl => {
'/' => {
users => {},
groups => {},
},
},
},
],
];
for my $test (@$tests) {