- name: References_Instances1
  description: Return reference instances for PyWBEM_Person
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: References
      ObjectName:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_Person
        namespace: root/cimv2
        keybindings:
          CreationClassName: PyWBEM_Person
          Name: Alice
      ResultClass: PyWBEM_MemberOfPersonCollection
      Role: member
  pywbem_response:
    result:
    - pywbem_object: CIMInstance
      classname: PyWBEM_MemberOfPersonCollection
      properties:
        member:
          pywbem_object: CIMProperty
          name: Member
          value:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_Person
            namespace: null
            keybindings:
              creationclassname: PyWBEM_Person
              name: Alice
          type: reference
          reference_class: CIM_ManagedElement
          is_array: false
          propagated: false
        collection:
          pywbem_object: CIMProperty
          name: Collection
          value:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_PersonCollection
            namespace: null
            keybindings:
              instanceid: PersonCollection
          type: reference
          reference_class: CIM_Collection
          is_array: false
          propagated: false
      path:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_MemberOfPersonCollection
        host: sheldon
        namespace: root/cimv2
        keybindings:
          member:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_Person
            namespace: null
            host: sheldon
            keybindings:
              creationclassname: PyWBEM_Person
              name: Alice
          collection:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_PersonCollection
            namespace: null
            keybindings:
              instanceid: PersonCollection
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: References
      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="References">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="ObjectName">
      <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>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="ResultClass">
      <CLASSNAME NAME="PyWBEM_MemberOfPersonCollection"/>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="Role">
      <VALUE>member</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="References">
      <IRETURNVALUE>
      <VALUE.OBJECTWITHPATH>
      <INSTANCEPATH>
      <NAMESPACEPATH>
      <HOST>sheldon</HOST>
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      </NAMESPACEPATH>
      <INSTANCENAME CLASSNAME="PyWBEM_MemberOfPersonCollection">
      <KEYBINDING NAME="Collection">
      <VALUE.REFERENCE>
      <INSTANCENAME CLASSNAME="PyWBEM_PersonCollection">
      <KEYBINDING NAME="InstanceID">
      <KEYVALUE VALUETYPE="string" TYPE="string">PersonCollection</KEYVALUE>
      </KEYBINDING>
      </INSTANCENAME>
      </VALUE.REFERENCE>
      </KEYBINDING>
      <KEYBINDING NAME="Member">
      <VALUE.REFERENCE>
      <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>
      </VALUE.REFERENCE>
      </KEYBINDING>
      </INSTANCENAME>
      </INSTANCEPATH>
      <INSTANCE CLASSNAME="PyWBEM_MemberOfPersonCollection" >
      <PROPERTY.REFERENCE NAME="Collection"  REFERENCECLASS="CIM_Collection">
      <VALUE.REFERENCE>
      <INSTANCENAME CLASSNAME="PyWBEM_PersonCollection">
      <KEYBINDING NAME="InstanceID">
      <KEYVALUE VALUETYPE="string" TYPE="string">PersonCollection</KEYVALUE>
      </KEYBINDING>
      </INSTANCENAME>
      </VALUE.REFERENCE>
      </PROPERTY.REFERENCE>
      <PROPERTY.REFERENCE NAME="Member"  REFERENCECLASS="CIM_ManagedElement">
      <VALUE.REFERENCE>
      <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>
      </VALUE.REFERENCE>
      </PROPERTY.REFERENCE>
      </INSTANCE>
      </VALUE.OBJECTWITHPATH>
      </IRETURNVALUE>
      </IMETHODRESPONSE>
      </SIMPLERSP>
      </MESSAGE>
      </CIM>'

- name: References_Instances2
  description: Suceeds Return reference instances for PyWBEM_Person without reference_class
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: References
      ObjectName:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_Person
        namespace: root/cimv2
        keybindings:
          CreationClassName: PyWBEM_Person
          Name: Alice
      ResultClass: PyWBEM_MemberOfPersonCollection
      Role: member
  pywbem_response:
    result:
    - pywbem_object: CIMInstance
      classname: PyWBEM_MemberOfPersonCollection
      properties:
        member:
          pywbem_object: CIMProperty
          name: Member
          value:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_Person
            namespace: null
            keybindings:
              creationclassname: PyWBEM_Person
              name: Alice
          type: reference
          is_array: false
          propagated: false
        collection:
          pywbem_object: CIMProperty
          name: Collection
          value:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_PersonCollection
            namespace: null
            keybindings:
              instanceid: PersonCollection
          type: reference
          is_array: false
          propagated: false
      path:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_MemberOfPersonCollection
        host: sheldon
        namespace: root/cimv2
        keybindings:
          member:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_Person
            namespace: null
            keybindings:
              creationclassname: PyWBEM_Person
              name: Alice
          collection:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_PersonCollection
            namespace: null
            keybindings:
              instanceid: PersonCollection
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: References
      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="References">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="ObjectName">
      <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>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="ResultClass">
      <CLASSNAME NAME="PyWBEM_MemberOfPersonCollection"/>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="Role">
      <VALUE>member</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="References">
      <IRETURNVALUE>
      <VALUE.OBJECTWITHPATH>
      <INSTANCEPATH>
      <NAMESPACEPATH>
      <HOST>sheldon</HOST>
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      </NAMESPACEPATH>
      <INSTANCENAME CLASSNAME="PyWBEM_MemberOfPersonCollection">
      <KEYBINDING NAME="Collection">
      <VALUE.REFERENCE>
      <INSTANCENAME CLASSNAME="PyWBEM_PersonCollection">
      <KEYBINDING NAME="InstanceID">
      <KEYVALUE VALUETYPE="string" TYPE="string">PersonCollection</KEYVALUE>
      </KEYBINDING>
      </INSTANCENAME>
      </VALUE.REFERENCE>
      </KEYBINDING>
      <KEYBINDING NAME="Member">
      <VALUE.REFERENCE>
      <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>
      </VALUE.REFERENCE>
      </KEYBINDING>
      </INSTANCENAME>
      </INSTANCEPATH>
      <INSTANCE CLASSNAME="PyWBEM_MemberOfPersonCollection" >
      <PROPERTY.REFERENCE NAME="Collection">
      <VALUE.REFERENCE>
      <INSTANCENAME CLASSNAME="PyWBEM_PersonCollection">
      <KEYBINDING NAME="InstanceID">
      <KEYVALUE VALUETYPE="string" TYPE="string">PersonCollection</KEYVALUE>
      </KEYBINDING>
      </INSTANCENAME>
      </VALUE.REFERENCE>
      </PROPERTY.REFERENCE>
      <PROPERTY.REFERENCE NAME="Member">
      <VALUE.REFERENCE>
      <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>
      </VALUE.REFERENCE>
      </PROPERTY.REFERENCE>
      </INSTANCE>
      </VALUE.OBJECTWITHPATH>
      </IRETURNVALUE>
      </IMETHODRESPONSE>
      </SIMPLERSP>
      </MESSAGE>
      </CIM>'

- name: References_InstancesE1
  description: ReferenceInstance request fails bad namespace
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/blah
    timeout: 10
    debug: true
    operation:
      pywbem_method: References
      ObjectName:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_Person
        namespace: root/cimv2
        keybindings:
          CreationClassName: PyWBEM_Person
          Name: Alice
  pywbem_response:
    cim_status: 3
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: References
      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="References">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="cimv2"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="ObjectName">
      <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>
      </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="References">
                    <ERROR CODE="3" DESCRIPTION="CIM_ERR_INVALID_NAMESPACE: Namespace root/blah not found"/>
                  </IMETHODRESPONSE>
                </SIMPLERSP>
              </MESSAGE>
            </CIM>

- name: References_InstancesNS1
  description: References_Instances, with leading/trailing slashes in default namespace
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: //root/mycim//
    timeout: 10
    debug: true
    operation:
      pywbem_method: References
      ObjectName:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_Person
        namespace: null
        keybindings:
          CreationClassName: PyWBEM_Person
          Name: Alice
      ResultClass: PyWBEM_MemberOfPersonCollection
      Role: member
  pywbem_response:
    result:
    - pywbem_object: CIMInstance
      classname: PyWBEM_MemberOfPersonCollection
      properties: []
      path:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_MemberOfPersonCollection
        host: acme.com:80
        namespace: root/mycim
        keybindings:
          member:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_Person
            namespace: null
            keybindings:
              creationclassname: PyWBEM_Person
              name: Alice
          collection:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_PersonCollection
            namespace: null
            keybindings:
              instanceid: PersonCollection
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: References
      CIMObject: root/mycim
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="References">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="mycim"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="ObjectName">
      <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>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="ResultClass">
      <CLASSNAME NAME="PyWBEM_MemberOfPersonCollection"/>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="Role">
      <VALUE>member</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="References">
      <IRETURNVALUE>
      <VALUE.OBJECTWITHPATH>
      <INSTANCEPATH>
      <NAMESPACEPATH>
      <HOST>acme.com:80</HOST>
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="mycim"/>
      </LOCALNAMESPACEPATH>
      </NAMESPACEPATH>
      <INSTANCENAME CLASSNAME="PyWBEM_MemberOfPersonCollection">
      <KEYBINDING NAME="Collection">
      <VALUE.REFERENCE>
      <INSTANCENAME CLASSNAME="PyWBEM_PersonCollection">
      <KEYBINDING NAME="InstanceID">
      <KEYVALUE VALUETYPE="string" TYPE="string">PersonCollection</KEYVALUE>
      </KEYBINDING>
      </INSTANCENAME>
      </VALUE.REFERENCE>
      </KEYBINDING>
      <KEYBINDING NAME="Member">
      <VALUE.REFERENCE>
      <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>
      </VALUE.REFERENCE>
      </KEYBINDING>
      </INSTANCENAME>
      </INSTANCEPATH>
      <INSTANCE CLASSNAME="PyWBEM_MemberOfPersonCollection" >
      </INSTANCE>
      </VALUE.OBJECTWITHPATH>
      </IRETURNVALUE>
      </IMETHODRESPONSE>
      </SIMPLERSP>
      </MESSAGE>
      </CIM>'

- name: References_InstancesNS2
  description: References_Instances, with leading/trailing slashes in object namespace
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: null
    timeout: 10
    debug: true
    operation:
      pywbem_method: References
      ObjectName:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_Person
        namespace: //root/mycim//
        keybindings:
          CreationClassName: PyWBEM_Person
          Name: Alice
      ResultClass: PyWBEM_MemberOfPersonCollection
      Role: member
  pywbem_response:
    result:
    - pywbem_object: CIMInstance
      classname: PyWBEM_MemberOfPersonCollection
      properties: []
      path:
        pywbem_object: CIMInstanceName
        classname: PyWBEM_MemberOfPersonCollection
        host: acme.com:80
        namespace: root/mycim
        keybindings:
          member:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_Person
            namespace: null
            keybindings:
              creationclassname: PyWBEM_Person
              name: Alice
          collection:
            pywbem_object: CIMInstanceName
            classname: PyWBEM_PersonCollection
            namespace: null
            keybindings:
              instanceid: PersonCollection
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: References
      CIMObject: root/mycim
    data: '<?xml version="1.0" encoding="utf-8" ?>
      <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
      <SIMPLEREQ>
      <IMETHODCALL NAME="References">
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="mycim"/>
      </LOCALNAMESPACEPATH>
      <IPARAMVALUE NAME="ObjectName">
      <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>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="ResultClass">
      <CLASSNAME NAME="PyWBEM_MemberOfPersonCollection"/>
      </IPARAMVALUE>
      <IPARAMVALUE NAME="Role">
      <VALUE>member</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="References">
      <IRETURNVALUE>
      <VALUE.OBJECTWITHPATH>
      <INSTANCEPATH>
      <NAMESPACEPATH>
      <HOST>acme.com:80</HOST>
      <LOCALNAMESPACEPATH>
      <NAMESPACE NAME="root"/>
      <NAMESPACE NAME="mycim"/>
      </LOCALNAMESPACEPATH>
      </NAMESPACEPATH>
      <INSTANCENAME CLASSNAME="PyWBEM_MemberOfPersonCollection">
      <KEYBINDING NAME="Collection">
      <VALUE.REFERENCE>
      <INSTANCENAME CLASSNAME="PyWBEM_PersonCollection">
      <KEYBINDING NAME="InstanceID">
      <KEYVALUE VALUETYPE="string" TYPE="string">PersonCollection</KEYVALUE>
      </KEYBINDING>
      </INSTANCENAME>
      </VALUE.REFERENCE>
      </KEYBINDING>
      <KEYBINDING NAME="Member">
      <VALUE.REFERENCE>
      <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>
      </VALUE.REFERENCE>
      </KEYBINDING>
      </INSTANCENAME>
      </INSTANCEPATH>
      <INSTANCE CLASSNAME="PyWBEM_MemberOfPersonCollection" >
      </INSTANCE>
      </VALUE.OBJECTWITHPATH>
      </IRETURNVALUE>
      </IMETHODRESPONSE>
      </SIMPLERSP>
      </MESSAGE>
      </CIM>'

- name: References_InstancesE2
  description: Test References returning an association instance with a reference to a class (invalid according to DSP0004). See pywbemtools issue 806.
  pywbem_request:
    url: http://acme.com:80
    creds:
    - username
    - password
    namespace: root/cimv2
    timeout: 10
    debug: true
    operation:
      pywbem_method: References
      ObjectName:
        pywbem_object: CIMInstanceName
        classname: MY_Array
        namespace: MyNamespace
        keybindings:
          CreationClassName: "MY_Array"
          Name: MyArrayName
  pywbem_response:
    exception: CIMXMLParseError
  http_request:
    verb: POST
    url: http://acme.com:80/cimom
    headers:
      CIMOperation: MethodCall
      CIMMethod: References
      CIMObject: MyNamespace
    data: '<?xml version="1.0" encoding="utf-8" ?>
    <CIM CIMVERSION="2.0" DTDVERSION="2.0">
      <MESSAGE ID="1001" PROTOCOLVERSION="1.0">
        <SIMPLEREQ>
          <IMETHODCALL NAME="References">
            <LOCALNAMESPACEPATH>
              <NAMESPACE NAME="MyNamespace" />
            </LOCALNAMESPACEPATH>
            <IPARAMVALUE NAME="ObjectName">
              <INSTANCENAME CLASSNAME="MY_Array">
                <KEYBINDING NAME="CreationClassName">
                  <KEYVALUE VALUETYPE="string" TYPE="string">MY_Array</KEYVALUE>
                </KEYBINDING>
                <KEYBINDING NAME="Name">
                  <KEYVALUE VALUETYPE="string" TYPE="string">MyArrayName</KEYVALUE>
                </KEYBINDING>
              </INSTANCENAME>
            </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="References">
            <IRETURNVALUE>
              <VALUE.OBJECTWITHPATH>
                <INSTANCEPATH>
                  <NAMESPACEPATH>
                    <HOST>myhost</HOST>
                    <LOCALNAMESPACEPATH>
                      <NAMESPACE NAME="MyNamespace" />
                    </LOCALNAMESPACEPATH>
                  </NAMESPACEPATH>
                  <INSTANCENAME CLASSNAME="MY_McsRedundancySetIdentity">
                    <KEYBINDING NAME="SameElement">
                      <VALUE.REFERENCE>
                        <LOCALCLASSPATH>
                          <LOCALNAMESPACEPATH>
                            <NAMESPACE NAME="MyNamespace" />
                          </LOCALNAMESPACEPATH>
                          <CLASSNAME NAME="MY_McsControllerRedundancySet" />
                        </LOCALCLASSPATH>
                      </VALUE.REFERENCE>
                    </KEYBINDING>
                    <KEYBINDING NAME="SystemElement">
                      <VALUE.REFERENCE>
                        <LOCALINSTANCEPATH>
                          <LOCALNAMESPACEPATH>
                            <NAMESPACE NAME="MyNamespace" />
                          </LOCALNAMESPACEPATH>
                          <INSTANCENAME CLASSNAME="MY_Array">
                            <KEYBINDING NAME="CreationClassName">
                              <KEYVALUE VALUETYPE="string">MY_Array</KEYVALUE>
                            </KEYBINDING>
                            <KEYBINDING NAME="Name">
                              <KEYVALUE VALUETYPE="string">MyArrayName</KEYVALUE>
                            </KEYBINDING>
                          </INSTANCENAME>
                        </LOCALINSTANCEPATH>
                      </VALUE.REFERENCE>
                    </KEYBINDING>
                  </INSTANCENAME>
                </INSTANCEPATH>
                <INSTANCE CLASSNAME="MY_McsRedundancySetIdentity">
                  <PROPERTY.REFERENCE NAME="SystemElement">
                    <VALUE.REFERENCE>
                      <LOCALINSTANCEPATH>
                        <LOCALNAMESPACEPATH>
                          <NAMESPACE NAME="MyNamespace" />
                        </LOCALNAMESPACEPATH>
                        <INSTANCENAME CLASSNAME="MY_Array">
                          <KEYBINDING NAME="CreationClassName">
                            <KEYVALUE VALUETYPE="string">MY_Array</KEYVALUE>
                          </KEYBINDING>
                          <KEYBINDING NAME="Name">
                            <KEYVALUE VALUETYPE="string">MyArrayName</KEYVALUE>
                          </KEYBINDING>
                        </INSTANCENAME>
                      </LOCALINSTANCEPATH>
                    </VALUE.REFERENCE>
                  </PROPERTY.REFERENCE>
                  <PROPERTY.REFERENCE NAME="SameElement">
                    <VALUE.REFERENCE>
                      <LOCALCLASSPATH>
                        <LOCALNAMESPACEPATH>
                          <NAMESPACE NAME="MyNamespace" />
                        </LOCALNAMESPACEPATH>
                        <CLASSNAME NAME="MY_McsControllerRedundancySet" />
                      </LOCALCLASSPATH>
                    </VALUE.REFERENCE>
                  </PROPERTY.REFERENCE>
                </INSTANCE>
              </VALUE.OBJECTWITHPATH>
            </IRETURNVALUE>
          </IMETHODRESPONSE>
        </SIMPLERSP>
      </MESSAGE>
    </CIM>'
