Univention Bugzilla – Bug 35652
17_app_status: test should not fail, if app is installed on additional systems
Last modified: 2016-04-15 13:18:04 CEST
http://jenkins.knut.univention.de:8080/view/UCSschool/job/UCSschool%203.2%20Singleserver/84/SambaVersion=s4-with-slave/testReport/20_appcenter/17_app_status/test/ This test considers only the local machine. But in UCS@school test environment, the UCS@school app is installed on all machines within the test domain. This seems to be the reason why this test fails. Checking App: ucsschool package: ucs-school-umc-installer Cleanup after exception: <class 'univention.testing.utils.LDAPObjectUnexpectedValue'> DN: univentionAppID=ucsschool_3.2 R2 v2,cn=ucsschool,cn=apps,cn=univention,dc=autotest201,dc=local univentionAppInstalledOnServer: ['slave202.autotest201.local', 'master201.autotest201.local'], unexpected: 'master201.autotest201.local' Performing UCSTestUDM cleanup... UCSTestUDM cleanup done 19.08.14 15:38:28.125 MODULE ( PROCESS ) : Downloading "https://appcenter.test.software-univention.de/meta-inf/3.2/index.json.gz"... 19.08.14 15:38:28.338 MODULE ( PROCESS ) : 0 file(s) are new Traceback (most recent call last): File "17_app_status", line 70, in <module> 'univentionAppInstalledOnServer' : ['%s.%s' % (ucr.get('hostname'), ucr.get('domainname'))], File "/usr/lib/pymodules/python2.6/univention/testing/utils.py", line 153, in verify_ldap_object raise LDAPObjectUnexpectedValue('DN: %s\n%s: %r, unexpected: \'%s\'' % (baseDn, attribute, list(found_values), '\', '.join(difference))) univention.testing.utils.LDAPObjectUnexpectedValue: DN: univentionAppID=ucsschool_3.2 R2 v2,cn=ucsschool,cn=apps,cn=univention,dc=autotest201,dc=local univentionAppInstalledOnServer: ['slave202.autotest201.local', 'master201.autotest201.local'], unexpected: 'master201.autotest201.local'
r54973: * 20_appcenter/17_app_status: perform 'non-strict' check of the servers list where apps are installed. (Bug #35652) I've changed the 'ldap_object_check' to a 'non-strict' for the 'univentionAppInstalledOnServer' list. Thus, the test will fail if the app was not installed on the current server, but it won't fail if the app was additionally installed to more servers (i.e. case with multi-servers school environment).
OK