Bug 34496 - ucs-test: Test printer moderation
ucs-test: Test printer moderation
Status: RESOLVED FIXED
Product: UCS@school
Classification: Unclassified
Component: ucs-test
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Ammar Najjar
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-08 10:44 CEST by Sönke Schwardt-Krummrich
Modified: 2015-11-02 12:22 CET (History)
0 users

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-04-08 10:44:08 CEST
The printer moderation module should be tested via ucs-test.
Comment 1 Ammar Najjar univentionstaff 2014-04-14 09:42:54 CEST
desc: ucs-school-printermoderator-module-check                                  
roles: [domaincontroller_master, domaincontroller_backup, domaincontroller_slave, memberserver]
packages:  [ucs-school-umc-printermoderation]

This test checks the following:

1- add printer.
2- check if the printer could be found
3- order print jobs.
4- fetch the ordered print jobs.
5- checks file type of the print jobs.
6- download print jobs.
7- forward printjobs to the created printer.
8- delete print jobs
9- delete the printer
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2014-04-29 16:07:35 CEST
The script currently uses a hardcoded domain part for the spool host "univention.local" which fails on other systems. The code should read the UCR variable "domainname" and use this value instead.
Comment 3 Ammar Najjar univentionstaff 2014-05-02 11:35:16 CEST
The code now using the ucr variable 'domainname'
A changelog entry was added.
Comment 4 Florian Best univentionstaff 2015-05-04 17:14:37 CEST
Is there a cli-tool like lpr which prints via samba? Then we should use this, too.
Comment 5 Ammar Najjar univentionstaff 2015-05-05 10:27:15 CEST
(In reply to Florian Best from comment #4)
> Is there a cli-tool like lpr which prints via samba? Then we should use
> this, too.

smbclient is used instead of lpr, see Bug #38423
Comment 6 Florian Best univentionstaff 2015-05-06 12:34:52 CEST
The test file is: 07_printermoderation_check.

(In reply to Ammar Najjar from comment #5)
> (In reply to Florian Best from comment #4)
> > Is there a cli-tool like lpr which prints via samba? Then we should use
> > this, too.
> 
> smbclient is used instead of lpr, see Bug #38423

Please don't use it 'instead of' but use both commands. You can add the skip tag until Bug #38423 and Bug #38230 are released. Please also create users with uppercase character in their username.
Comment 7 Ammar Najjar univentionstaff 2015-05-07 11:44:39 CEST
(In reply to Florian Best from comment #6)
> Please don't use it 'instead of' but use both commands. You can add the skip
> tag until Bug #38423 and Bug #38230 are released. Please also create users
> with uppercase character in their username.

- lpr is used as well as smbclient.
- users with mixed letter cases are included in the tests.
- script is not skipped.

r60511