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)"
root@master111:~# univention-ldapsearch -LLL cn=m2 | egrep "(dn|univentionMasterPackages)"
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
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.
* Bug #32271: convert UMC policy result test case to python
* Bug #32271: add possiblity to (de)reference policies within the python UDM
Code review: OK
Test runs: OK
Test detects failure: OK
UCS 3.2 has been released:
If this error occurs again, please use "Clone This Bug".