/
get-resources-none-minimal.test
49 lines (37 loc) · 2.09 KB
/
get-resources-none-minimal.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Script to get resources of a system.
# This test does not accept requested attributes (none) and also does not accept other optional attributes (minimal), which includes
# resource-ids (1setOf (integer(1:MAX))
# first-index (integer(1:MAX))
# limit (integer(1:MAX)
# resource-formats (1setOf (mimeMediaType))
# resource-states (1setOf (type1 enum))
# resource-types (1setOf (type2 keyword))
# A top-level file/immediate caller will provide the values for $uri: system-uri
# Usage ./ipptool -d uri={system-uri} get-resources-none-minimal.test
{
NAME "Minimal test to get system resources, no requested attributes and no optional attributes "
OPERATION Get-Resources
VERSION 2.0
GROUP operation-attributes-tag
ATTR charset attributes-charset utf-8
ATTR naturalLanguage attributes-natural-language en
ATTR uri system-uri $uri
STATUS successful-ok
EXPECT attributes-charset OF-TYPE charset IN-GROUP operation-attributes-tag
EXPECT attributes-natural-language OF-TYPE naturalLanguage IN-GROUP operation-attributes-tag
?EXPECT status-message OF-TYPE text(255) IN-GROUP operation-attributes-tag
?EXPECT detailed-status-message OF-TYPE text(MAX) IN-GROUP operation-attributes-tag
EXPECT-ALL resource-id OF-TYPE integer(1:MAX) IN-GROUP resource-attributes-tag
EXPECT-ALL resource-uuid OF-TYPE uri(45) IN-GROUP resource-attributes-tag
EXPECT-ALL resource-state OF-TYPE type1 enum IN-GROUP resource-attributes-tag
EXPECT-ALL resource-state-reasons OF-TYPE 1setOf type2 keyword IN-GROUP resource-attributes-tag
#system-configured-resources
EXPECT-ALL resource-format OF-TYPE mimeMediaType IN-GROUP resource-attributes-tag
EXPECT-ALL resource-id OF-TYPE integer(1:MAX) IN-GROUP resource-attributes-tag
EXPECT-ALL resource-info OF-TYPE text(MAX) IN-GROUP resource-attributes-tag
EXPECT-ALL resource-name OF-TYPE name(MAX) IN-GROUP resource-attributes-tag
EXPECT-ALL resource-state OF-TYPE type1 enum IN-GROUP resource-attributes-tag
EXPECT-ALL resource-state-reasons OF-TYPE 1setOf type2 keyword IN-GROUP resource-attributes-tag
EXPECT-ALL resource-type OF-TYPE type2 keyword IN-GROUP resource-attributes-tag
}