Add a client-info test.
@@ -223,3 +223,47 @@ VERSION 2.0
STATUS successful-ok
}
+
+{
+ NAME "Print-Job with client-info"
+ OPERATION Print-Job
+
+ GROUP operation-attributes-tag
+ ATTR charset attributes-charset utf-8
+ ATTR naturalLanguage attributes-natural-language en
+ ATTR uri printer-uri $uri
+ ATTR name requesting-user-name $user
+ ATTR uri requesting-user-uri "mailto:$user@example.com"
+ ATTR name job-name "Test Validate-Document"
+ ATTR mimeMediaType document-format $filetype
+ ATTR collection client-info {
+ MEMBER name client-name "ipptool"
+ MEMBER text client-patches ""
+ MEMBER text client-string-version "3.0.1.2"
+ MEMBER octetString client-version <0003000000010002>
+ }
+ FILE $filename
+
+ STATUS successful-ok
+}
+
+{
+ NAME "Get-Job-Attributes for client-info"
+ OPERATION Get-Job-Attributes
+
+ GROUP operation-attributes-tag
+ ATTR charset attributes-charset utf-8
+ ATTR naturalLanguage attributes-natural-language en
+ ATTR uri printer-uri $uri
+ ATTR integer job-id $job-id
+ ATTR name requesting-user-name $user
+ ATTR uri requesting-user-uri "mailto:$user@example.com"
+
+ STATUS successful-ok
+
+ EXPECT client-info OF-TYPE collection COUNT 1;
+ EXPECT client-info/client-name OF-TYPE name COUNT 1 WITH-VALUE "ipptool"
+ EXPECT client-info/client-patches OF-TYPE text COUNT 1 WITH-VALUE ""
+ EXPECT client-info/client-string-version OF-TYPE text COUNT 1 WITH-VALUE "3.0.1.2"
+ EXPECT client-info/client-version OF-TYPE octetString COUNT 1 WITH-VALUE <0003000000010002>
+}
