@ bo39-send-uri.test - Test plan Section 3.9: Send-URI
@ Version 0.1 - quick and dirty
@ Last revised by Xerox Corporation on 99-03-11.

# Copyright (c) 1998, 1999 by Xerox Corporation. All rights reserved.
# User is granted the right to modify this file for use with
# the IPP Server Test Tool, as described in the file
# LICENSE-IppTest.txt.

@
@ Test B - Create-Job and Send-URI
@

Create-Job                                                       \
    target:                               $target,               \
    attributes: (                                                \
        Operation: (                                             \
            attributes-charset:           utf-8,                 \
            attributes-natural-language:  en-us,                 \
            printer-uri:                  $target,               \
            requesting-user-name:         'IPP Bake-off User 1', \
            job-name:                'Create-Job, Send-URI Job'  \
        )                                                        \
    )

Expect Response                                                  \
    status-code: successful-ok,                                  \
    attributes: (                                                \
        Operation: (                                             \
            attributes-charset:           utf-8,                 \
            attributes-natural-language:  *,                     \
            ...                                                  \
        ),                                                       \
        Job: (                                                   \
            first-job-uri = job-uri:      *,                     \
            first-job-id = job-id:        *,                     \
            job-state:                    pending-held,          \
            ...                                                  \
        )                                                        \
    )



@
@ Do 1st Send-URI - don't specify document-format
@

Send-URI                                                         \
    target:                               $target,               \
    attributes: (                                                \
        Operation: (                                             \
            attributes-charset:           utf-8,                 \
            attributes-natural-language:  en-us,                 \
            printer-uri:                  $target,               \
            job-id:                       $first-job-id          \
            requesting-user-name:         'IPP Bake-off User 1', \
            document-name:                'First File To Print', \
            document-uri:  'ftp://10.1.1.254/common/file-to-print.txt', \
            last-document:                false                  \
        )                                                        \
    ),                                                           \
    data:                                 $test-print-file

Expect Response                                                  \
    status-code: successful-ok,                                  \
    attributes: (                                                \
        Operation: (                                             \
            attributes-charset:           utf-8,                 \
            attributes-natural-language:  *,                     \
            ...                                                  \
        ),                                                       \
        Job: (                                                   \
            job-uri:                      *,                     \
            job-id:                       *,                     \
            job-state:                    pending-held,          \
            ...                                                  \
        )                                                        \
    )



@
@ Do 2nd Send-URI - don't specify document-format
@

Send-Document                                                    \
    target:                               $target,               \
    attributes: (                                                \
        Operation: (                                             \
            attributes-charset:           utf-8,                 \
            attributes-natural-language:  en-us,                 \
            printer-uri:                  $target,               \
            job-id:                       $first-job-id          \
            requesting-user-name:         'IPP Bake-off User 1', \
            document-name:                'Second File To Print', \
            document-uri:  'ftp://10.1.1.254/common/file-to-print.txt', \
            last-document:                true                   \
        )                                                        \
    ),                                                           \
    data:                                 $test-print-file

Expect Response                                                  \
    status-code: successful-ok,                                  \
    attributes: (                                                \
        Operation: (                                             \
            attributes-charset:           utf-8,                 \
            attributes-natural-language:  *,                     \
            ...                                                  \
        ),                                                       \
        Job: (                                                   \
            job-uri:                      *,                     \
            job-id:                       *,                     \
            job-state:                    pending | processing,  \
            ...                                                  \
        )                                                        \
    )


@
@ Check that "multiple-operation-time-out" is supported
@

Get-Printer-Attributes                                           \
    target:                               $target,               \
    attributes: (                                                \
        Operation: (                                             \
            attributes-charset:           utf-8,                 \
            attributes-natural-language:  en-us,                 \
            printer-uri:                  $target,               \
            requested-attributes:  <multiple-operation-time-out> \
        )                                                        \
    )


Expect Response                                                  \
    status-code: successful-ok,                                  \
    attributes: (                                                \
        Operation: (                                             \
            ...                                                  \
        ),                                                       \
        Printer: (                                               \
            multiple-operation-time-out:     *                   \
        )                                                       \
    )


@
@ Record the results in the table in section 4.17.  Put the Client 
@ identifiers in the first column.  The Printer identifiers go across 
@ the first row.  The results of a Client/Printer interaction are 
@ placed in the corresponding cell.
@