Bug 36223 - Re-enable 20_appcenter/20_can_apps_be_installed test case for app tests
Re-enable 20_appcenter/20_can_apps_be_installed test case for app tests
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: App Center
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.0-2-errata
Assigned To: Felix Botner
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-17 12:10 CEST by Stefan Gohmann
Modified: 2015-08-06 18:01 CEST (History)
2 users (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 Stefan Gohmann univentionstaff 2014-10-17 12:10:55 CEST
The test case 20_appcenter/20_can_apps_be_installed failed with the pre test App Center. I've removed the app test flag. The flag should be re-enabled:

15.10.14 22:25:45.884  MODULE      ( PROCESS ) : Downloading "https://appcenter.test.software-univention.de/meta-inf/4.0/index.json.gz"...
15.10.14 22:25:46.027  MODULE      ( PROCESS ) : 0 file(s) are new
15.10.14 22:25:46.183  MODULE      ( PROCESS ) : Starting dry_run for tine20 on localhost
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 1227, in _check_local_host
    package_changes = package_manager.mark(to_install, [], dry_run=True)
  File "/usr/lib/pymodules/python2.7/univention/lib/package_manager.py", line 536, in mark
    pkg.mark_delete()
  File "/usr/lib/python2.7/dist-packages/apt/package.py", line 1270, in mark_delete
    fix.resolve()
SystemError: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Traceback (most recent call last):
  File "20_can_apps_be_installed", line 87, in <module>
    if result['broken']:
KeyError: 'broken'
Comment 1 Philipp Hahn univentionstaff 2015-01-28 23:37:38 CET
Still fails as of 2015-01-28
Comment 2 Stefan Gohmann univentionstaff 2015-02-04 06:07:25 CET
Currently it fails for sugarcrm:

http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-0/job/Autotest%20MultiEnv/SambaVersion=s4,Systemrolle=member/133/testReport/20_appcenter/20_can_apps_be_installed/test/

03.02.15 19:16:06.282 MODULE      ( WARN    ) : master097.autotest097.local: master097.autotest097.local: Authentication failed: {"status": "411 Length Required", "message": "The authentication has failed, please login again"}
03.02.15 19:16:06.282 MODULE      ( PROCESS ) : Finished dry_run for sugarcrm on master097.autotest097.local
Exception in thread Thread-32:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/app_center.py", line 1233, in _check_local_host
    package_changes = package_manager.mark(to_install, [], dry_run=True)
  File "/usr/lib/pymodules/python2.7/univention/lib/package_manager.py", line 539, in mark
    pkg.mark_delete()
  File "/usr/lib/python2.7/dist-packages/apt/package.py", line 1270, in mark_delete
    fix.resolve()
SystemError: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Traceback (most recent call last):
  File "20_can_apps_be_installed", line 87, in <module>
    if result['broken']:
KeyError: 'broken'
Comment 3 Felix Botner univentionstaff 2015-03-25 15:30:35 CET
already fixed and enabled
Comment 4 Felix Botner univentionstaff 2015-05-19 14:10:23 CEST
added tag apptest and build package in errata4.0-2
Comment 5 Dirk Wiesenthal univentionstaff 2015-05-19 15:06:29 CEST
OK, code review (re-adding the tag) okay. Also run it once, the traceback does not occur anymore.