- name: PullInstancesWithPath1
  description: Pull request and returns 2 instances with eos=false and a context
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 1
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        pullresult:
            context:
                - '50001'
                -  root/cimv2
            eos: False
            instances:
                -
                    pywbem_object: CIMInstance
                    classname: PYWBEM_Person
                    properties:
                        CreationClassName:
                            pywbem_object: CIMProperty
                            name: CreationClassName
                            value: PyWBEM_Person
                            propagated: false
                        Name:
                            pywbem_object: CIMProperty
                            name: Name
                            value: Fritz
                            propagated: false
                        Address:
                            pywbem_object: CIMProperty
                            name: Address
                            value: Fritz Town
                            propagated: false
                    path:
                        pywbem_object: CIMInstanceName
                        classname: PYWBEM_Person
                        host : Fred
                        namespace: root/cimv2
                        keybindings:
                            CreationClassname: PyWBEM_Person
                            Name: Fritz
                -
                    pywbem_object: CIMInstance
                    classname: PyWBEM_Person
                    properties:
                        CreationClassName:
                            pywbem_object: CIMProperty
                            name: CreationClassName
                            value: PyWBEM_Person
                            propagated: false
                        Name:
                            pywbem_object: CIMProperty
                            name: Name
                            value: Alice
                            propagated: false
                        Address:
                            pywbem_object: CIMProperty
                            name: Address
                            value: Alice Town
                            propagated: false
                    path:
                        pywbem_object: CIMInstanceName
                        classname: PyWBEM_Person
                        host: fred
                        namespace: root/cimv2
                        keybindings:
                            CreationClassname: PyWBEM_Person
                            Name: Alice
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: PullInstancesWithPath
      CIMObject: root/cimv2
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="PullInstancesWithPath">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="EnumerationContext">
      <VALUE>500001</VALUE>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="MaxObjectCount">
      <VALUE>1</VALUE>
      </IPARAMVALUE>
      </IMETHODCALL>
      </SIMPLEREQ>
      </MESSAGE>
      </CIM>'
  http_response:
        status: 200
        headers:
            CIMOperation: MethodResponse
        data: >
            <?xml version="1.0" encoding="utf-8" ?>
            <CIM CIMVERSION="2.0" DTDVERSION="2.0">
                <MESSAGE ID="1000" PROTOCOLVERSION="1.0">
                    <SIMPLERSP>
                        <IMETHODRESPONSE NAME="PullInstancesWithPath">
                            <IRETURNVALUE>
                                <VALUE.INSTANCEWITHPATH>
                                    <INSTANCEPATH>
                                        <NAMESPACEPATH>
                                            <HOST>fred</HOST>
                                            <LOCALNAMESPACEPATH>
                                                <NAMESPACE NAME="root"/>
                                                <NAMESPACE NAME="cimv2"/>
                                            </LOCALNAMESPACEPATH>
                                        </NAMESPACEPATH>
                                        <INSTANCENAME CLASSNAME="PyWBEM_Person">
                                            <KEYBINDING NAME="CreationClassName">
                                                <KEYVALUE VALUETYPE="string" TYPE="string">PyWBEM_Person</KEYVALUE>
                                            </KEYBINDING>
                                            <KEYBINDING NAME="Name">
                                                <KEYVALUE VALUETYPE="string" TYPE="string">Fritz</KEYVALUE>
                                            </KEYBINDING>
                                        </INSTANCENAME>
                                    </INSTANCEPATH>
                                    <INSTANCE CLASSNAME="PyWBEM_Person">
                                        <PROPERTY NAME="CreationClassName" TYPE="string">
                                            <VALUE>PyWBEM_Person</VALUE>
                                        </PROPERTY>
                                        <PROPERTY NAME="Name" TYPE="string">
                                            <VALUE>Fritz</VALUE>
                                        </PROPERTY>
                                        <PROPERTY NAME="Address" TYPE="string">
                                            <VALUE>Fritz Town</VALUE>
                                        </PROPERTY>
                                    </INSTANCE>
                                </VALUE.INSTANCEWITHPATH>
                                <VALUE.INSTANCEWITHPATH>
                                    <INSTANCEPATH>
                                        <NAMESPACEPATH>
                                            <HOST>Fred</HOST>
                                            <LOCALNAMESPACEPATH>
                                                <NAMESPACE NAME="root"/>
                                                <NAMESPACE NAME="cimv2"/>
                                            </LOCALNAMESPACEPATH>
                                        </NAMESPACEPATH>
                                        <INSTANCENAME CLASSNAME="PyWBEM_Person">
                                            <KEYBINDING NAME="CreationClassName">
                                                <KEYVALUE VALUETYPE="string" TYPE="string">PyWBEM_Person</KEYVALUE>
                                            </KEYBINDING>
                                            <KEYBINDING NAME="Name">
                                                <KEYVALUE VALUETYPE="string" TYPE="string">Alice</KEYVALUE>
                                            </KEYBINDING>
                                        </INSTANCENAME>
                                    </INSTANCEPATH>
                                    <INSTANCE CLASSNAME="PyWBEM_Person">
                                        <PROPERTY NAME="CreationClassName" TYPE="string">
                                            <VALUE>PyWBEM_Person</VALUE>
                                        </PROPERTY>
                                        <PROPERTY NAME="Name" TYPE="string">
                                            <VALUE>Alice</VALUE>
                                        </PROPERTY>
                                        <PROPERTY NAME="Address" TYPE="string">
                                            <VALUE>Alice Town</VALUE>
                                        </PROPERTY>
                                    </INSTANCE>
                                </VALUE.INSTANCEWITHPATH>
                            </IRETURNVALUE>
                            <PARAMVALUE NAME="EndOfSequence">
                                <VALUE>FALSE</VALUE>
                            </PARAMVALUE>
                            <PARAMVALUE NAME="EnumerationContext">
                                <VALUE>50001</VALUE>
                            </PARAMVALUE>
                        </IMETHODRESPONSE>
                    </SIMPLERSP>
                </MESSAGE>
            </CIM>

- name: PullInstancesWithPath2
  description: Pull request and returns two instances with eos=true and no context
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 1
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        pullresult:
            context: null
            eos: true
            instances:
                -
                    pywbem_object: CIMInstance
                    classname: PYWBEM_Person
                    properties:
                        CreationClassName:
                            pywbem_object: CIMProperty
                            name: CreationClassName
                            value: PyWBEM_Person
                            propagated: false
                        Name:
                            pywbem_object: CIMProperty
                            name: Name
                            value: Fritz
                            propagated: false
                        Address:
                            pywbem_object: CIMProperty
                            name: Address
                            value: Fritz Town
                            propagated: false
                    path:
                        pywbem_object: CIMInstanceName
                        classname: PYWBEM_Person
                        host : Fred
                        namespace: root/cimv2
                        keybindings:
                            CreationClassname: PyWBEM_Person
                            Name: Fritz
                -
                    pywbem_object: CIMInstance
                    classname: PyWBEM_Person
                    properties:
                        CreationClassName:
                            pywbem_object: CIMProperty
                            name: CreationClassName
                            value: PyWBEM_Person
                            propagated: false
                        Name:
                            pywbem_object: CIMProperty
                            name: Name
                            value: Alice
                            propagated: false
                        Address:
                            pywbem_object: CIMProperty
                            name: Address
                            value: Alice Town
                            propagated: false
                    path:
                        pywbem_object: CIMInstanceName
                        classname: PyWBEM_Person
                        host: fred
                        namespace: root/cimv2
                        keybindings:
                            CreationClassname: PyWBEM_Person
                            Name: Alice
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: PullInstancesWithPath
      CIMObject: root/cimv2
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="PullInstancesWithPath">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="EnumerationContext">
      <VALUE>500001</VALUE>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="MaxObjectCount">
      <VALUE>1</VALUE>
      </IPARAMVALUE>
      </IMETHODCALL>
      </SIMPLEREQ>
      </MESSAGE>
      </CIM>'
  http_response:
        status: 200
        headers:
            CIMOperation: MethodResponse
        data: >
            <?xml version="1.0" encoding="utf-8" ?>
            <CIM CIMVERSION="2.0" DTDVERSION="2.0">
                <MESSAGE ID="1000" PROTOCOLVERSION="1.0">
                    <SIMPLERSP>
                        <IMETHODRESPONSE NAME="PullInstancesWithPath">
                            <IRETURNVALUE>
                                <VALUE.INSTANCEWITHPATH>
                                    <INSTANCEPATH>
                                        <NAMESPACEPATH>
                                            <HOST>fred</HOST>
                                            <LOCALNAMESPACEPATH>
                                                <NAMESPACE NAME="root"/>
                                                <NAMESPACE NAME="cimv2"/>
                                            </LOCALNAMESPACEPATH>
                                        </NAMESPACEPATH>
                                        <INSTANCENAME CLASSNAME="PyWBEM_Person">
                                            <KEYBINDING NAME="CreationClassName">
                                                <KEYVALUE VALUETYPE="string" TYPE="string">PyWBEM_Person</KEYVALUE>
                                            </KEYBINDING>
                                            <KEYBINDING NAME="Name">
                                                <KEYVALUE VALUETYPE="string" TYPE="string">Fritz</KEYVALUE>
                                            </KEYBINDING>
                                        </INSTANCENAME>
                                    </INSTANCEPATH>
                                    <INSTANCE CLASSNAME="PyWBEM_Person">
                                        <PROPERTY NAME="CreationClassName" TYPE="string">
                                            <VALUE>PyWBEM_Person</VALUE>
                                        </PROPERTY>
                                        <PROPERTY NAME="Name" TYPE="string">
                                            <VALUE>Fritz</VALUE>
                                        </PROPERTY>
                                        <PROPERTY NAME="Address" TYPE="string">
                                            <VALUE>Fritz Town</VALUE>
                                        </PROPERTY>
                                    </INSTANCE>
                                </VALUE.INSTANCEWITHPATH>
                                <VALUE.INSTANCEWITHPATH>
                                    <INSTANCEPATH>
                                        <NAMESPACEPATH>
                                            <HOST>Fred</HOST>
                                            <LOCALNAMESPACEPATH>
                                                <NAMESPACE NAME="root"/>
                                                <NAMESPACE NAME="cimv2"/>
                                            </LOCALNAMESPACEPATH>
                                        </NAMESPACEPATH>
                                        <INSTANCENAME CLASSNAME="PyWBEM_Person">
                                            <KEYBINDING NAME="CreationClassName">
                                                <KEYVALUE VALUETYPE="string" TYPE="string">PyWBEM_Person</KEYVALUE>
                                            </KEYBINDING>
                                            <KEYBINDING NAME="Name">
                                                <KEYVALUE VALUETYPE="string" TYPE="string">Alice</KEYVALUE>
                                            </KEYBINDING>
                                        </INSTANCENAME>
                                    </INSTANCEPATH>
                                    <INSTANCE CLASSNAME="PyWBEM_Person">
                                        <PROPERTY NAME="CreationClassName" TYPE="string">
                                            <VALUE>PyWBEM_Person</VALUE>
                                        </PROPERTY>
                                        <PROPERTY NAME="Name" TYPE="string">
                                            <VALUE>Alice</VALUE>
                                        </PROPERTY>
                                        <PROPERTY NAME="Address" TYPE="string">
                                            <VALUE>Alice Town</VALUE>
                                        </PROPERTY>
                                    </INSTANCE>
                                </VALUE.INSTANCEWITHPATH>
                            </IRETURNVALUE>
                            <PARAMVALUE NAME="EndOfSequence">
                                <VALUE>TRUE</VALUE>
                            </PARAMVALUE>
                            <PARAMVALUE NAME="EnumerationContext">
                                <VALUE></VALUE>
                            </PARAMVALUE>
                        </IMETHODRESPONSE>
                    </SIMPLERSP>
                </MESSAGE>
            </CIM>

- name: PullInstancesWithPath3
  description: Pull request and returns zero instances with eos=true and no context
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 1
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        pullresult:
            context: null
            eos: true
            instances: []
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: PullInstancesWithPath
      CIMObject: root/cimv2
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="PullInstancesWithPath">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="EnumerationContext">
      <VALUE>500001</VALUE>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="MaxObjectCount">
      <VALUE>1</VALUE>
      </IPARAMVALUE>
      </IMETHODCALL>
      </SIMPLEREQ>
      </MESSAGE>
      </CIM>'
  http_response:
        status: 200
        headers:
            CIMOperation: MethodResponse
        data: >
            <?xml version="1.0" encoding="utf-8" ?>
            <CIM CIMVERSION="2.0" DTDVERSION="2.0">
                <MESSAGE ID="1000" PROTOCOLVERSION="1.0">
                    <SIMPLERSP>
                        <IMETHODRESPONSE NAME="PullInstancesWithPath">
                            <IRETURNVALUE>
                            </IRETURNVALUE>
                            <PARAMVALUE NAME="EndOfSequence">
                                <VALUE>TRUE</VALUE>
                            </PARAMVALUE>
                            <PARAMVALUE NAME="EnumerationContext">
                                <VALUE></VALUE>
                            </PARAMVALUE>
                        </IMETHODRESPONSE>
                    </SIMPLERSP>
                </MESSAGE>
            </CIM>

- name: PullInstancesWithPath4
  description: Pull request and returns zero instances with eos=false and valid context
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 1
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        pullresult:
            context:
              - '500001'
              - root/cimv2
            eos: false
            instances: []
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: PullInstancesWithPath
      CIMObject: root/cimv2
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="PullInstancesWithPath">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="EnumerationContext">
      <VALUE>500001</VALUE>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="MaxObjectCount">
      <VALUE>1</VALUE>
      </IPARAMVALUE>
      </IMETHODCALL>
      </SIMPLEREQ>
      </MESSAGE>
      </CIM>'
  http_response:
        status: 200
        headers:
            CIMOperation: MethodResponse
        data: >
            <?xml version="1.0" encoding="utf-8" ?>
            <CIM CIMVERSION="2.0" DTDVERSION="2.0">
                <MESSAGE ID="1000" PROTOCOLVERSION="1.0">
                    <SIMPLERSP>
                        <IMETHODRESPONSE NAME="PullInstancesWithPath">
                            <IRETURNVALUE>
                            </IRETURNVALUE>
                            <PARAMVALUE NAME="EndOfSequence">
                                <VALUE>FALSE</VALUE>
                            </PARAMVALUE>
                            <PARAMVALUE NAME="EnumerationContext">
                                <VALUE>500001</VALUE>
                            </PARAMVALUE>
                        </IMETHODRESPONSE>
                    </SIMPLERSP>
                </MESSAGE>
            </CIM>

- name: PullInstancesWithPath4b
  description: Pull request and returns zero instances with eos=false and valid context. Test statistics
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    stats-enabled: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 1
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        request_len: 404
        reply_len: 590
        pullresult:
            context:
              - '500001'
              - root/cimv2
            eos: false
            instances: []
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: PullInstancesWithPath
      CIMObject: root/cimv2
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="PullInstancesWithPath">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="EnumerationContext">
      <VALUE>500001</VALUE>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="MaxObjectCount">
      <VALUE>1</VALUE>
      </IPARAMVALUE>
      </IMETHODCALL>
      </SIMPLEREQ>
      </MESSAGE>
      </CIM>'
  http_response:
        status: 200
        headers:
            CIMOperation: MethodResponse
        data: >
            <?xml version="1.0" encoding="utf-8" ?>
            <CIM CIMVERSION="2.0" DTDVERSION="2.0">
                <MESSAGE ID="1000" PROTOCOLVERSION="1.0">
                    <SIMPLERSP>
                        <IMETHODRESPONSE NAME="PullInstancesWithPath">
                            <IRETURNVALUE>
                            </IRETURNVALUE>
                            <PARAMVALUE NAME="EndOfSequence">
                                <VALUE>FALSE</VALUE>
                            </PARAMVALUE>
                            <PARAMVALUE NAME="EnumerationContext">
                                <VALUE>500001</VALUE>
                            </PARAMVALUE>
                        </IMETHODRESPONSE>
                    </SIMPLERSP>
                </MESSAGE>
            </CIM>

- name: PullInstancesWithPathF1
  description: PullInstancesWithPath request fails. Invalid Context
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 100
      context:
      - '500182'
      - root/cimv2
  pywbem_response:
     cim_status: 21
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: PullInstancesWithPath
      CIMObject: root/cimv2
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="PullInstancesWithPath">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="EnumerationContext">
      <VALUE>500182</VALUE>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="MaxObjectCount">
      <VALUE>100</VALUE>
      </IPARAMVALUE>
      </IMETHODCALL>
      </SIMPLEREQ>
      </MESSAGE>
      </CIM>'
  http_response:
    status: 200
    headers:
      cimoperation: MethodResponse
    data: >
        <?xml version="1.0" encoding="utf-8" ?>
        <CIM CIMVERSION="2.0" DTDVERSION="2.0">
          <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
            <SIMPLERSP>
              <IMETHODRESPONSE NAME="PullInstancesWithPath">
                <ERROR CODE="21" DESCRIPTION="CIM_ERR_INVALID_ENUMERATION_CONTEXT:"/>
              </IMETHODRESPONSE>
            </SIMPLERSP>
          </MESSAGE>
        </CIM>

- name: PullInstancesWithPathF2
  description: Pull request with MaxObjectCount invalid raises ValueError
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: -1
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        exception: ValueError

- name: PullInstancesWithPathF3
  description: Pull request with context None raises ValueError
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 1
      context: null
  pywbem_response:
        exception: ValueError

- name: PullInstancesWithPathF4
  description: Pull request with Invalid Input Parameter (no MaxObjectCount)
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        exception: TypeError

- name: PullInstancesWithPathF5
  description: Pull request with MaxObjectCount invalid type raises TypeError
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 'bla'
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        exception: TypeError

- name: PullInstancesWithPathF6
  description: Pull request fails. eos and context missing
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 1
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        exception: CIMXMLParseError
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: PullInstancesWithPath
      CIMObject: root/cimv2
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="PullInstancesWithPath">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="EnumerationContext">
      <VALUE>500001</VALUE>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="MaxObjectCount">
      <VALUE>1</VALUE>
      </IPARAMVALUE>
      </IMETHODCALL>
      </SIMPLEREQ>
      </MESSAGE>
      </CIM>'
  http_response:
        status: 200
        headers:
            CIMOperation: MethodResponse
        data: >
            <?xml version="1.0" encoding="utf-8" ?>
            <CIM CIMVERSION="2.0" DTDVERSION="2.0">
                <MESSAGE ID="1000" PROTOCOLVERSION="1.0">
                    <SIMPLERSP>
                        <IMETHODRESPONSE NAME="PullInstancesWithPath">
                            <IRETURNVALUE>
                            </IRETURNVALUE>
                        </IMETHODRESPONSE>
                    </SIMPLERSP>
                </MESSAGE>
            </CIM>

- name: PullInstancesWithPathF7
  description: Pull request fails. indicates no eos but context missing
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: PullInstancesWithPath
      MaxObjectCount: 1
      context:
      - '500001'
      - root/cimv2
  pywbem_response:
        exception: CIMXMLParseError
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: PullInstancesWithPath
      CIMObject: root/cimv2
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="PullInstancesWithPath">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="EnumerationContext">
      <VALUE>500001</VALUE>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="MaxObjectCount">
      <VALUE>1</VALUE>
      </IPARAMVALUE>
      </IMETHODCALL>
      </SIMPLEREQ>
      </MESSAGE>
      </CIM>'
  http_response:
        status: 200
        headers:
            CIMOperation: MethodResponse
        data: >
            <?xml version="1.0" encoding="utf-8" ?>
            <CIM CIMVERSION="2.0" DTDVERSION="2.0">
                <MESSAGE ID="1000" PROTOCOLVERSION="1.0">
                    <SIMPLERSP>
                        <IMETHODRESPONSE NAME="PullInstancesWithPath">
                            <IRETURNVALUE>
                            </IRETURNVALUE>
                            <PARAMVALUE NAME="EndOfSequence">
                                <VALUE>FALSE</VALUE>
                            </PARAMVALUE>
                        </IMETHODRESPONSE>
                    </SIMPLERSP>
                </MESSAGE>
            </CIM>
