]> git.ipfire.org Git - thirdparty/cups.git/blame - test/cancel-current-job.test
Import CUPS v1.7.1
[thirdparty/cups.git] / test / cancel-current-job.test
CommitLineData
12f89d24 1#
61515785 2# "$Id: cancel-current-job.test 11396 2013-11-06 20:09:03Z msweet $"
12f89d24
MS
3#
4# Cancel the currently printing job.
5#
6# Copyright 2007-2012 by Apple Inc.
7# Copyright 2001-2006 by Easy Software Products. All rights reserved.
8#
9# These coded instructions, statements, and computer programs are the
10# property of Apple Inc. and are protected by Federal copyright
11# law. Distribution and use rights are outlined in the file "LICENSE.txt"
12# which should have been included with this file. If this file is
13# file is missing or damaged, see the license at "http://www.cups.org/".
14#
15# Usage:
16#
17# ./ipptool printer-uri cancel-current-jobs.test
18#
19
20
21{
22 # The name of the test...
23 NAME "Get current job"
24
25 # The operation to use
26 OPERATION Get-Jobs
27
28 # Attributes, starting in the operation group...
29 GROUP operation-attributes-tag
30 ATTR charset attributes-charset utf-8
31 ATTR language attributes-natural-language en
32 ATTR uri printer-uri $uri
33 ATTR integer limit 1
34 ATTR name requesting-user-name $user
35 ATTR keyword requested-attributes job-id,job-state
36
37 # What statuses are OK?
38 STATUS successful-ok
39
40 EXPECT job-id OF-TYPE integer COUNT 1
41
42 # What attributes to display
43 DISPLAY job-id
44 DISPLAY job-state
45}
46
47{
48 SKIP-IF-NOT-DEFINED job-id
49 NAME "Cancel current job"
50 OPERATION Cancel-Job
51 GROUP operation-attributes-tag
52 ATTR charset attributes-charset utf-8
53 ATTR language attributes-natural-language en
54 ATTR uri printer-uri $uri
55 ATTR integer job-id $job-id
56 ATTR name requesting-user-name $user
57
58 # What statuses are OK?
59 STATUS successful-ok
60}
61
62
63#
61515785 64# End of "$Id: cancel-current-job.test 11396 2013-11-06 20:09:03Z msweet $".
12f89d24 65#