mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-10-04 14:18:28 +00:00
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:
parent
2f58f6715e
commit
fa2afa15b2
@ -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) {
|
for my $test (@$tests) {
|
||||||
|
Loading…
Reference in New Issue
Block a user