Bug 16053 - Test case: is any package hold back
Test case: is any package hold back
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: General
unspecified
All All
: P5 normal (vote)
: ---
Assigned To: Ammar Najjar
Philipp Hahn
:
Depends on: 14610
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-21 15:31 CEST by Stefan Gohmann
Modified: 2023-03-25 06:51 CET (History)
4 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 2009-10-21 15:31:37 CEST
In einem automatisierten Test sollte erkannt werden, ob Pakete auf dem System zurückgehalten wurden.

+++ This bug was initially created as a clone of Bug #14610 +++

Beim Update auf 2.2-1 über das online-repository kann univention-kolab2 nicht
installiert werden da univention-kolab2-tools nicht in maintained sondern in
unmaintained liegt, univention-kolab2 aber davon abhängt.
Comment 1 Stefan Gohmann univentionstaff 2014-09-11 16:14:05 CEST
Please add a test case for UCS 4.0 which checks if an package is hold back.
Comment 2 Ammar Najjar univentionstaff 2014-09-26 10:10:12 CEST
A new test script is created with the name "103_packages_held_back" in 00_base/

It checks if there are any packages marked to be held back in the system, and fails if there were any.

Tested on single server and multi-server environments.
Comment 3 Philipp Hahn univentionstaff 2014-10-06 12:40:32 CEST
FAIL: change the test to "safe" as it only reads data without modifying anything.
> ## exposure: careful
FAIL: the limitation on DC master should be removed
> ## roles: [domaincontroller_master]
FAIL: remove the unneeded line for packages:
> ## packages: []
FAIL: please reference Bug #14610
> ## bugs: [14610]

OK: dpkg --set-selections <<<"ucs-test-base hold"
OK: ./103_packages_held_back -vvvf

FYI: "aptitude hold $pkg" uses a separate database, which is different from what "apt-get" and "dpkg" use.
Comment 4 Ammar Najjar univentionstaff 2014-10-06 12:56:53 CEST
(In reply to Philipp Hahn from comment #3)
> FAIL: change the test to "safe" as it only reads data without modifying
> anything.
> > ## exposure: careful
> FAIL: the limitation on DC master should be removed
> > ## roles: [domaincontroller_master]
> FAIL: remove the unneeded line for packages:
> > ## packages: []
> FAIL: please reference Bug #14610
> > ## bugs: [14610]

Done.
Comment 5 Philipp Hahn univentionstaff 2014-10-06 16:15:30 CEST
OK: r54186
OK: ./103_packages_held_back