Bug 35652 - 17_app_status: test should not fail, if app is installed on additional systems
17_app_status: test should not fail, if app is installed on additional systems
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: App Center
unspecified
Other Linux
: P5 normal (vote)
: UCS 3.2-x
Assigned To: Dmitry Galkin
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-20 09:09 CEST by Sönke Schwardt-Krummrich
Modified: 2016-04-15 13:18 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2014-08-20 09:09:59 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'
Comment 1 Dmitry Galkin univentionstaff 2014-10-27 17:22:20 CET
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).
Comment 2 Dirk Wiesenthal univentionstaff 2015-01-21 23:51:20 CET
OK