[pve-devel] r5557 - pve-access-control/trunk/test

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Feb 17 07:04:47 CET 2011


Author: dietmar
Date: 2011-02-17 07:04:47 +0100 (Thu, 17 Feb 2011)
New Revision: 5557

Modified:
   pve-access-control/trunk/test/perm-test1.pl
   pve-access-control/trunk/test/user.cfg.ex1
Log:
make it work again


Modified: pve-access-control/trunk/test/perm-test1.pl
===================================================================
--- pve-access-control/trunk/test/perm-test1.pl	2011-02-16 13:57:49 UTC (rev 5556)
+++ pve-access-control/trunk/test/perm-test1.pl	2011-02-17 06:04:47 UTC (rev 5557)
@@ -30,9 +30,9 @@
 }
 
 check_permission('max', '/', '');
-check_permission('max', '/vms', 'Permissions.Modify,VM.ConfigureCD,VM.Console,VM.Create');
+check_permission('max', '/vms', 'Permissions.Modify,VM.Allocate,VM.Audit,VM.Console');
 check_permission('alex', '/vms', '');
-check_permission('alex', '/vms/100', 'VM.ConfigureCD,VM.PowerOff,VM.PowerOn');
+check_permission('alex', '/vms/100', 'VM.Audit,VM.PowerMgmt');
 
 print "all tests passed\n";
 

Modified: pve-access-control/trunk/test/user.cfg.ex1
===================================================================
--- pve-access-control/trunk/test/user.cfg.ex1	2011-02-16 13:57:49 UTC (rev 5556)
+++ pve-access-control/trunk/test/user.cfg.ex1	2011-02-17 06:04:47 UTC (rev 5557)
@@ -6,9 +6,9 @@
 group:testgroup1:joe,max:
 group:testgroup2:alex,carol:
 
-role:storage_manager:Datastore.AllocateSpace,Datastore.Browse:
-role:customer:VM.ConfigureCD,VM.PowerOn,VM.PowerOff:
-role:vm_admin:VM.ConfigureCD,VM.Create,Permissions.Modify,VM.Console:
+role:storage_manager:Datastore.AllocateSpace,Datastore.Audit:
+role:customer:VM.Audit,VM.PowerMgmt:
+role:vm_admin:VM.Audit,VM.Allocate,Permissions.Modify,VM.Console:
 
 acl:1:/vms:@testgroup1:vm_admin:
 acl:1:/vms/100/:alex:customer:



More information about the pve-devel mailing list