Univention Bugzilla – Bug 32271
Test case for UMCP command umc/object/policies
Last modified: 2014-07-08 12:45:10 CEST
It would be good to have a test script that ensures the correct behaviour of the UMCP command udm/object/policies. +++ This bug was initially created as a clone of Bug #31916 +++ The policy tab does not show the merged values if a policy is connected directly. For example, I have two Master packages policies: root@master111:~# univention-ldapsearch -LLL cn=m1 | egrep "(dn|univentionMasterPackages)" dn: cn=m1,cn=policies,dc=deadlock11,dc=local univentionMasterPackages: autoconf root@master111:~# univention-ldapsearch -LLL cn=m2 | egrep "(dn|univentionMasterPackages)" dn: cn=m2,cn=policies,dc=deadlock11,dc=local univentionMasterPackagesRemove: automake root@master111:~# Next I connect m1 with the ldap base. After that I connect m2 with computers container, only the m2 result is displayed on the policies tab of the computers container. On the DC master the merged values are displayed.
Test has been added: ucs-test/tests/60_umc/04_policies ucs-test (4.0.96-1)
Cool! Would it not be easier to use Python (incl. the test framework) instead of bash?
(In reply to Alexander Kläser from comment #2) > Cool! Would it not be easier to use Python (incl. the test framework) > instead of bash? Currently not because the python test framework can not modify existing objects. I need to set,unset,cleanup policies at the LDAP root (and others). → Bug #32397
The test case has been converted to python. ucs-test has been adapted to have the possibility to also (de)reference policies. ucs-test (4.0.136-1) * Bug #32271: convert UMC policy result test case to python * Bug #32271: add possiblity to (de)reference policies within the python UDM test framework
Code review: OK Test runs: OK Test detects failure: OK Changelog: Added
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".