diff options
author | Anas Nashif <nashif@intel.com> | 2006-12-06 16:01:19 +0000 |
---|---|---|
committer | Anas Nashif <nashif@intel.com> | 2006-12-06 16:01:19 +0000 |
commit | 2e0f686816d9148c768e5e88c3eae37d43503b24 (patch) | |
tree | f1f6fcae6406e68a491cff8a0b7dbb536924c9cb /tests/interop | |
parent | 41269b35dc63b7c9cef86cb2876cae1612f13125 (diff) | |
download | wsmancli-2e0f686816d9148c768e5e88c3eae37d43503b24.tar.gz wsmancli-2e0f686816d9148c768e5e88c3eae37d43503b24.tar.xz wsmancli-2e0f686816d9148c768e5e88c3eae37d43503b24.zip |
added more scnarios, integrate interop test into build
Diffstat (limited to 'tests/interop')
-rwxr-xr-x | tests/interop/Scenarios.InteropWorkshop.Dec2006.MSFT.xml | 490 | ||||
-rw-r--r-- | tests/interop/Scenarios.InteropWorkshop.Dec2006.OpenWSMAN.xml | 31 | ||||
-rwxr-xr-x | tests/interop/Scenarios.InteropWorkshop.Dec2006.WISEMAN.xml | 335 | ||||
-rw-r--r-- | tests/interop/WISEMAN-results.txt | 750 | ||||
-rw-r--r-- | tests/interop/interop.c | 81 |
5 files changed, 1656 insertions, 31 deletions
diff --git a/tests/interop/Scenarios.InteropWorkshop.Dec2006.MSFT.xml b/tests/interop/Scenarios.InteropWorkshop.Dec2006.MSFT.xml new file mode 100755 index 0000000..ad3ba70 --- /dev/null +++ b/tests/interop/Scenarios.InteropWorkshop.Dec2006.MSFT.xml @@ -0,0 +1,490 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSpy v2006 sp2 U (http://www.altova.com) by Brian Reistad (Microsoft) -->
+<WSManInteropScenarios>
+ <URLs>
+ <HTTP>http://192.168.0.13:80/wsman</HTTP>
+ </URLs>
+ <Credentials SecurityProfile="Basic|Digest">
+ <Username>wsman</Username>
+ <Password>secret</Password>
+ </Credentials>
+ <Scenario Description="6.1 Identify" Supported="true">
+ <Response>
+ <wsmid:IdentifyResponse xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd">
+ <wsmid:ProtocolVersion>http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd</wsmid:ProtocolVersion>
+ <wsmid:ProductVendor>Microsoft Corporation</wsmid:ProductVendor>
+ <wsmid:ProductVersion>OS: 6.0.5734 SP: 0.0 Stack: 1.0</wsmid:ProductVersion>
+ </wsmid:IdentifyResponse>
+ </Response>
+ </Scenario>
+ <Scenario Description="6.1.1 Anonymous Identify" Supported="true">
+ <Input>
+ <HTTPHeader>WSMANIDENTIFY: unauthenticated</HTTPHeader>
+ </Input>
+ <Response>
+ <wsmid:IdentifyResponse xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd">
+ <wsmid:ProtocolVersion>http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd</wsmid:ProtocolVersion>
+ <wsmid:ProductVendor>Microsoft Corporation</wsmid:ProductVendor>
+ <wsmid:ProductVersion>OS: 0.0.0 SP: 0.0 Stack: 1.0</wsmid:ProductVersion>
+ </wsmid:IdentifyResponse>
+ </Response>
+ </Scenario>
+ <Scenario Description="6.2 Get" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Plugfest/ContactInfo</ResourceURI>
+ <SelectorSet>
+ <Selector Name="Key">1</Selector>
+ </SelectorSet>
+ </Input>
+ <Response>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>123 4th Ave. Redmond WA 98052</p:Address>
+ <p:key>1</p:key>
+ <p:Name>Mary Jones</p:Name>
+ <p:Telephone>425-123-4567</p:Telephone>
+ </p:ContactInfo>
+ </Response>
+ </Scenario>
+ <Scenario Description="6.3 Get failure - invalid resoure URI" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_InvalidClass</ResourceURI>
+ </Input>
+ <Response>
+ <f:WSManFault Code="2150858752" Machine="" xml:lang="en-US" xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault">
+ <f:Message>
+ <f:ProviderFault provider="WMIv1 plugin for Windows Remote Management " path="WsmWmiPl.dll">
+ <f:WSManFault Code="2150858752" Machine="" xml:lang="en-US">
+ <f:Message>
+ The WS-Management service cannot process the request. The service cannot find the resource identified by the reso
+ urce URI and selectors.
+ </f:Message>
+ </f:WSManFault>
+ </f:ProviderFault>
+ </f:Message>
+ </f:WSManFault>
+ </Response>
+ </Scenario>
+ <Scenario Description="6.4 Get failure (MaxEnvelop exceeded)" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_OperatingSystem</ResourceURI>
+ <SelectorSet/>
+ <MaxEnvelope>150</MaxEnvelope>
+ </Input>
+ </Scenario>
+ <Scenario Description="6.5 Get failure - invalid selectors" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Process</ResourceURI>
+ <SelectorSet>
+ <Selector Name="InvalidKey">0</Selector>
+ </SelectorSet>
+ </Input>
+ <Response>
+ <f:WSManFault Code="2150858813" Machine="" xml:lang="en-US" xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault">
+ <f:Message>
+ <f:ProviderFault provider="WMIv1 plugin for Windows Remote Management " path="WsmWmiPl.dll">
+ <f:WSManFault Code="2150858813" Machine="" xml:lang="en-US">
+ <f:Message>
+ The WS-Management service cannot process the request because the selectors for the resource are not valid. </f:Message>
+ </f:WSManFault>
+ </f:ProviderFault>
+ </f:Message>
+ </f:WSManFault>
+ </Response>
+ </Scenario>
+ <Scenario Description="6.6 Get failure - operation timeout" Supported="true">
+ <Input>
+ <ResourceURI>wsman:microsoft.test/testresource/get/timeout</ResourceURI>
+ <SelectorSet/>
+ <Timeout>20000</Timeout>
+ </Input>
+ </Scenario>
+ <Scenario Description="6.7 Fragment Get" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_OperatingSystem</ResourceURI>
+ <SelectorSet/>
+ <Dialect>http://www.w3.org/TR/1999/REC-xpath-19991116</Dialect>
+ <Expression>Caption/text()</Expression>
+ </Input>
+ <Response>
+ <w:XmlFragment xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">Microsoftr Windows VistaT Ultimate </w:XmlFragment>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.1 Enumerate" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Plugfest/ContactInfo</ResourceURI>
+ </Input>
+ <Response>
+ <Item>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>7 156st Ave. N.E. Apt#10 Redmond WA 98052</p:Address>
+ <p:key>2</p:key>
+ <p:Name>Peter Parker</p:Name>
+ <p:Telephone>425-765-4321</p:Telephone>
+ </p:ContactInfo>
+ </Item>
+ <Item>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>123 4th Ave. Redmond WA 98052</p:Address>
+ <p:key>1</p:key>
+ <p:Name>Mary Jones</p:Name>
+ <p:Telephone>425-123-4567</p:Telephone>
+ </p:ContactInfo>
+ </Item>
+ <Item>
+ <p:EmailContactInfo xsi:type="p:EmailContactInfo_Type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/EmailContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address xsi:nil="true"></p:Address>
+ <p:Email>hporter@porter.com</p:Email>
+ <p:key>4</p:key>
+ <p:Name>Harry Porter</p:Name>
+ <p:Telephone>408-654-3214</p:Telephone>
+ </p:EmailContactInfo>
+ </Item>
+ <Item>
+ <p:EmailContactInfo xsi:type="p:EmailContactInfo_Type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/EmailContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>1 Simpson Road, Richmond Canada V71 4LC</p:Address>
+ <p:Email>barts@simpson.com</p:Email>
+ <p:key>3</p:key>
+ <p:Name>Bart Simpson</p:Name>
+ <p:Telephone xsi:nil="true"></p:Telephone>
+ </p:EmailContactInfo>
+ </Item>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.2 Optimized Enumerate" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Plugfest/ContactInfo</ResourceURI>
+ </Input>
+ <Response>
+ <Item>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>7 156st Ave. N.E. Apt#10 Redmond WA 98052</p:Address>
+ <p:key>2</p:key>
+ <p:Name>Peter Parker</p:Name>
+ <p:Telephone>425-765-4321</p:Telephone>
+ </p:ContactInfo>
+ </Item>
+ <Item>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>123 4th Ave. Redmond WA 98052</p:Address>
+ <p:key>1</p:key>
+ <p:Name>Mary Jones</p:Name>
+ <p:Telephone>425-123-4567</p:Telephone>
+ </p:ContactInfo>
+ </Item>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.3 Enumerate failure" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service</ResourceURI>
+ </Input>
+ </Scenario>
+ <Scenario Description="7.4 Enumerate ObjectAndEPR" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Plugfest/ContactInfo</ResourceURI>
+ </Input>
+ <Response>
+ <Item>
+ <Obj>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com
+/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>7 156st Ave. N.E. Apt#10 Redmond WA 98052</p:Address>
+ <p:key>2</p:key>
+ <p:Name>Peter Parker</p:Name>
+ <p:Telephone>425-765-4321</p:Telephone>
+ </p:ContactInfo>
+ </Obj>
+ <EPR>
+ <a:EndpointReference xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xml:lang="en-US" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
+ <a:ReferenceParameters>
+ <w:ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo</w:ResourceURI>
+ <w:SelectorSet>
+ <w:Selector Name="key">2</w:Selector>
+ </w:SelectorSet>
+ </a:ReferenceParameters>
+ </a:EndpointReference>
+ </EPR>
+ </Item>
+ <Item>
+ <Obj>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com
+/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>123 4th Ave. Redmond WA 98052</p:Address>
+ <p:key>1</p:key>
+ <p:Name>Mary Jones</p:Name>
+ <p:Telephone>425-123-4567</p:Telephone>
+ </p:ContactInfo>
+ </Obj>
+ <EPR>
+ <a:EndpointReference xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xml:lang="en-US" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
+ <a:ReferenceParameters>
+ <w:ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo</w:ResourceURI>
+ <w:SelectorSet>
+ <w:Selector Name="key">1</w:Selector>
+ </w:SelectorSet>
+ </a:ReferenceParameters>
+ </a:EndpointReference>
+ </EPR>
+ </Item>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.5 Enumerate w/ XPath" Supported="false">
+ <Input>
+ <ResourceURI></ResourceURI>
+ <Expression></Expression>
+ </Input>
+ <Response>
+ <Item/>
+ <Item/>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.6 Enumerate w/ SelectorFilter" Supported="false">
+ <Input>
+ <ResourceURI/>
+ <Expression/>
+ </Input>
+ <Response>
+ <Item/>
+ <Item/>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.7 Enumerate w/ Other Dialect" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Plugfest/*</ResourceURI>
+ <Dialect>http://schemas.microsoft.com/wbem/wsman/1/WQL</Dialect>
+ <Expression>SELECT * FROM ContactInfo WHERE Name='Mary Jones'</Expression>
+ </Input>
+ <Response>
+ <Item>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.
+microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>123 4th Ave. Redmond WA 98052</p:Address>
+ <p:key>1</p:key>
+ <p:Name>Mary Jones</p:Name>
+ <p:Telephone>425-123-4567</p:Telephone>
+ </p:ContactInfo>
+ </Item>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.8 Enumerate w/ transform and EPR" Supported="false">
+ <Input>
+ <ResourceURI/>
+ <Dialect/>
+ <Expression/>
+ </Input>
+ <Response>
+ <Item>
+ <Obj/>
+ <EPR/>
+ </Item>
+ <Item>
+ <Obj/>
+ <EPR/>
+ </Item>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.9 Enumerate Polymorphism" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Plugfest/ContactInfo</ResourceURI>
+ </Input>
+ <Response>
+ <Item/>
+ <!-- class ContactInfo
+ {
+ int key;
+ string Name;
+ string Address;
+ string Telephone;
+ };
+
+ class EmailContactInfo : ContactInfo
+ {
+ string Email;
+ };
+ -->
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.
+microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>7 156st Ave. N.E. Apt#10 Redmond WA 98052</p:Address>
+ <p:key>2</p:key>
+ <p:Name>Peter Parker</p:Name>
+ <p:Telephone>425-765-4321</p:Telephone>
+ </p:ContactInfo>
+ <p:ContactInfo xsi:type="p:ContactInfo_Type" xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.
+microsoft.com/wbem/wsman/1/wmi/root/plugfest/ContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>123 4th Ave. Redmond WA 98052</p:Address>
+ <p:key>1</p:key>
+ <p:Name>Mary Jones</p:Name>
+ <p:Telephone>425-123-4567</p:Telephone>
+ </p:ContactInfo>
+ <p:EmailContactInfo xsi:type="p:EmailContactInfo_Type" xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http:
+//schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/EmailContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address xsi:nil="true"></p:Address>
+ <p:Email>hporter@porter.com</p:Email>
+ <p:key>4</p:key>
+ <p:Name>Harry Porter</p:Name>
+ <p:Telephone>408-654-3214</p:Telephone>
+ </p:EmailContactInfo>
+ <p:EmailContactInfo xsi:type="p:EmailContactInfo_Type" xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http:
+//schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/EmailContactInfo" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Address>1 Simpson Road, Richmond Canada V71 4LC</p:Address>
+ <p:Email>barts@simpson.com</p:Email>
+ <p:key>3</p:key>
+ <p:Name>Bart Simpson</p:Name>
+ <p:Telephone xsi:nil="true"></p:Telephone>
+ </p:EmailContactInfo>
+ <Item/>
+ </Response>
+ </Scenario>
+ <Scenario Description="8.1 Invoke" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service</ResourceURI>
+ <SelectorSet>
+ <Selector Name="Name">Spooler</Selector>
+ </SelectorSet>
+ <ActionURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service/StartService</ActionURI>
+ <MethodName>StartService</MethodName>
+ <InputMsg>
+ <p:StartService_INPUT xmlns:p="http:=//schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service"/>
+ </InputMsg>
+ </Input>
+ <Response>
+ <OutputMsg>
+ <p:StopService_OUTPUT xml:lang="en-US" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsma
+n/1/wmi/root/cimv2/Win32_Service" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:ReturnValue>10</p:ReturnValue>
+ </p:StopService_OUTPUT>
+ </OutputMsg>
+ </Response>
+ </Scenario>
+ <Scenario Description="9.1 Put " Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Plugfest/EmployeeRecord</ResourceURI>
+ <SelectorSet>
+ <Selector Name="Id">1</Selector>
+ </SelectorSet>
+ <PropertyName>Alias</PropertyName>
+ <NewValue>bsimpson</NewValue>
+ </Input>
+ <Response>
+ <p:EmployeeRecord xsi:type="p:EmployeeRecord_Type" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/plugfest/EmployeeRecord" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common">
+ <p:Alias>bsimpson</p:Alias>
+ <p:Id>1</p:Id>
+ <p:Name>Bart Simpson</p:Name>
+ </p:EmployeeRecord>
+ </Response>
+ </Scenario>
+ <Scenario Description="9.2 Fragment Put" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/wmi/root/Plugfest/EmployeeRecord</ResourceURI>
+ <SelectorSet>
+ <Selector Name="Id">2</Selector>
+ </SelectorSet>
+ <Dialect>http://www.w3.org/TR/1999/REC-xpath-19991116</Dialect>
+ <Expression>Alias</Expression>
+ <InputMsg>pparker</InputMsg>
+ </Input>
+ <Response>
+ <w:XmlFragment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <Alias>pparker</Alias>
+ </w:XmlFragment>
+ </Response>
+ </Scenario>
+ <Scenario Description="10 Eventing" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog</ResourceURI>
+ <Dialect/>
+ <Expression/>
+ <SubscribeRequest>
+ <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <s:Header>
+ <a:To>http://192.168.0.13:80/wsman</a:To>
+ <w:ResourceURI s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog</w:ResourceURI>
+ <a:ReplyTo>
+ <a:Address s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
+ </a:ReplyTo>
+ <a:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</a:Action>
+ <w:MaxEnvelopeSize s:mustUnderstand="true">153600</w:MaxEnvelopeSize>
+ <a:MessageID>uuid:757A363C-C086-49CD-B42F-666AAB930D43</a:MessageID>
+ <w:Locale xml:lang="en-US" s:mustUnderstand="false" />
+ <w:OptionSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <w:Option Name="ContentFormat">RenderedText</w:Option>
+ <w:Option Name="ReadExistingEvents" xsi:nil="true"/>
+ <w:Option Name="IgnoreChannelError" xsi:nil="true"/>
+ </w:OptionSet>
+ </s:Header>
+ <s:Body>
+ <e:Subscribe>
+ <e:Delivery Mode="http://schemas.dmtf.org/wbem/wsman/1/wsman/Pull">
+ <w:Heartbeats>PT900.000S</w:Heartbeats>
+ <w:Locale xml:lang="en-US"/>
+ <w:ContentEncoding>UTF-8</w:ContentEncoding>
+ </e:Delivery>
+ <e:Expires>PT3961315881.184S</e:Expires>
+ <w:Filter>
+ <QueryList>
+ <Query Path="System">
+ <Select>*</Select>
+ </Query>
+ </QueryList>
+ </w:Filter>
+ <w:Bookmark>
+ <BookmarkList>
+ <Bookmark Channel="System" RecordId="4740" IsCurrent="true"/>
+ </BookmarkList>
+ </w:Bookmark>
+ <w:SendBookmarks/>
+ </e:Subscribe>
+ </s:Body>
+ </s:Envelope>
+ </SubscribeRequest>
+ <PullRequest>
+ <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <s:Header>
+ <a:To>http://192.168.0.13:80/wsman</a:To>
+ <w:ResourceURI s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog</w:ResourceURI>
+ <a:ReplyTo>
+ <a:Address s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address>
+ </a:ReplyTo>
+ <a:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/eventing/Subscribe</a:Action>
+ <w:MaxEnvelopeSize s:mustUnderstand="true">153600</w:MaxEnvelopeSize>
+ <a:MessageID>uuid:757A363C-C086-49CD-B42F-666AAB930D43</a:MessageID>
+ <w:Locale xml:lang="en-US" s:mustUnderstand="false" />
+ <w:OptionSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <w:Option Name="ContentFormat">RenderedText</w:Option>
+ <w:Option Name="ReadExistingEvents" xsi:nil="true"/>
+ <w:Option Name="IgnoreChannelError" xsi:nil="true"/>
+ </w:OptionSet>
+ </s:Header>
+ <s:Body>
+ <e:Subscribe>
+ <e:Delivery Mode="http://schemas.dmtf.org/wbem/wsman/1/wsman/Pull">
+ <w:Heartbeats>PT900.000S</w:Heartbeats>
+ <w:Locale xml:lang="en-US"/>
+ <w:ContentEncoding>UTF-8</w:ContentEncoding>
+ </e:Delivery>
+ <e:Expires>PT3961315881.184S</e:Expires>
+ <w:Filter>
+ <QueryList>
+ <Query Path="System">
+ <Select>*</Select>
+ </Query>
+ </QueryList>
+ </w:Filter>
+ <w:Bookmark>
+ <BookmarkList>
+ <Bookmark Channel="System" RecordId="4740" IsCurrent="true"/>
+ </BookmarkList>
+ </w:Bookmark>
+ <w:SendBookmarks/>
+ </e:Subscribe>
+ </s:Body>
+ </s:Envelope>
+ </PullRequest>
+ </Input>
+ <Response>
+ <Event/>
+ <Event/>
+ </Response>
+ </Scenario>
+</WSManInteropScenarios>
diff --git a/tests/interop/Scenarios.InteropWorkshop.Dec2006.OpenWSMAN.xml b/tests/interop/Scenarios.InteropWorkshop.Dec2006.OpenWSMAN.xml index 3e6885b..16e54a4 100644 --- a/tests/interop/Scenarios.InteropWorkshop.Dec2006.OpenWSMAN.xml +++ b/tests/interop/Scenarios.InteropWorkshop.Dec2006.OpenWSMAN.xml @@ -160,9 +160,13 @@ </Scenario>
<Scenario Description="8.1 Invoke" Supported="true">
<Input>
- <ResourceURI/>
- <SelectorSet/>
- <MethodName/>
+ <ResourceURI>http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_InitdService</ResourceURI>
+ <SelectorSet>
+ <Selector Name="SystemCreationClassName">OMC_UnitaryComputerSystem</Selector>
+ <Selector Name="SystemName">anashif-mobl.ims.intel.com</Selector>
+ <Selector Name="Name">nfsserver</Selector>
+ </SelectorSet>
+ <MethodName>ServiceStatus</MethodName>
<InputMsg/>
</Input>
<Response>
@@ -171,11 +175,24 @@ </Scenario>
<Scenario Description="9.1 Put " Supported="true">
<Input>
- <ResourceURI/>
- <SelectorSet/>
- <PropertyName/>
- <NewValue/>
+ <ResourceURI>http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_TimeZoneSettingData</ResourceURI>
+ <SelectorSet>
+ <Selector Name="InstanceID">omc:timezone</Selector>
+ </SelectorSet>
+ <PropertyName>TimeZone</PropertyName>
+ <NewValue>US/Pacific</NewValue>
</Input>
+ <Response>
+ <p:OMC_TimeZoneSettingData xmlns:p="http://schema.omc-project.org/wbem/wscim/1/cim-schema/2/OMC_TimeZoneSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <p:InstanceID>omc:timezone</p:InstanceID>
+ <p:TimeZone>US/Eastern</p:TimeZone>
+ <p:UTCHardwareClock>false</p:UTCHardwareClock>
+ <p:ElementName xsi:nil="true"/>
+ <p:Caption xsi:nil="true"/>
+ <p:Description xsi:nil="true"/>
+ </p:OMC_TimeZoneSettingData>
+
+ </Response>
</Scenario>
<Scenario Description="9.2 Fragment Put" Supported="false">
<Input>
diff --git a/tests/interop/Scenarios.InteropWorkshop.Dec2006.WISEMAN.xml b/tests/interop/Scenarios.InteropWorkshop.Dec2006.WISEMAN.xml new file mode 100755 index 0000000..3b8a3f7 --- /dev/null +++ b/tests/interop/Scenarios.InteropWorkshop.Dec2006.WISEMAN.xml @@ -0,0 +1,335 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSpy v2006 sp2 U (http://www.altova.com) by Brian Reistad (Microsoft) -->
+<WSManInteropScenarios>
+ <URLs>
+ <HTTP>http:/192.168.0.19:8080/wsman/</HTTP>
+ <HTTPS/>
+ </URLs>
+ <Credentials SecurityProfile="Basic">
+ <Username>wsman</Username>
+ <Password>secret</Password>
+ </Credentials>
+ <Scenario Description="6.1 Identify" Supported="true"/>
+ <Scenario Description="6.1.1 Anonymous Identify" Supported="false"/>
+ <Scenario Description="6.2 Get" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI>
+ <SelectorSet>
+ <Selector Name="Name">IPMI Controller 32</Selector>
+ <Selector Name="CreationClassName">ComputerSystem</Selector>
+ </SelectorSet>
+ </Input>
+ <Response>
+ <!-- output goes here-->
+ </Response>
+ </Scenario>
+ <Scenario Description="6.3 Get failure - invalid resoure URI" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSyste</ResourceURI>
+ <SelectorSet>
+ <Selector Name="Name">IPMI Controller 32</Selector>
+ <Selector Name="CreationClassName">ComputerSystem</Selector>
+ </SelectorSet>
+ </Input>
+ </Scenario>
+ <Scenario Description="6.4 Get failure (MaxEnvelop exceeded)" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI>
+ <SelectorSet>
+ <Selector Name="Name">IPMI Controller 32</Selector>
+ <Selector Name="CreationClassName">ComputerSystem</Selector>
+ </SelectorSet>
+ <MaxEnvelopeSize>8500</MaxEnvelopeSize>
+ </Input>
+ </Scenario>
+ <Scenario Description="6.5 Get failure - invalid selectors" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</ResourceURI>
+ <SelectorSet>
+ <Selector Name="CreationClassName">NumericSensor</Selector>
+ </SelectorSet>
+ </Input>
+ </Scenario>
+ <Scenario Description="6.6 Get failure - operation timeout" Supported="true">
+ <Input>
+ <ResourceURI>wsman:test/timeout</ResourceURI>
+ <Timeout>PT0.003S</Timeout>
+ </Input>
+ </Scenario>
+ <Scenario Description="6.7 Fragment Get" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI>
+ <SelectorSet>
+ <Selector Name="Name">IPMI Controller 32</Selector>
+ <Selector Name="CreationClassName">ComputerSystem</Selector>
+ <Selector Name="NoPrefix">true</Selector>
+ </SelectorSet>
+ <Dialect>http://www.w3.org/TR/1999/REC-xpath-19991116</Dialect>
+ <Expression>/CIM_ComputerSystem/Roles</Expression>
+ </Input>
+ <Response>
+ <w:XmlFragment xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <!-- output goes here -->
+ </w:XmlFragment>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.1 Enumerate" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</ResourceURI>
+ </Input>
+ <Response>
+ <Item/>
+ <Item/>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.2 Optimized Enumerate" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</ResourceURI>
+ <MaxElements>2</MaxElements>
+ </Input>
+ </Scenario>
+ <Scenario Description="7.3 Enumerate failure" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</ResourceURI>
+ Bad EnumerationContxtId:uuid:bogas-context-0000-00000-0000
+ </Input>
+ </Scenario>
+ <Scenario Description="7.4 Enumerate ObjectAndEPR" Supported="true">
+ <Input>
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</ResourceURI>
+ </Input>
+ <Response>
+ <Item>
+ <Obj/>
+ <EPR/>
+ </Item>
+ <Item>
+ <Obj/>
+ <EPR/>
+ </Item>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.5 Enumerate w/ XPath" Supported="false">
+ <Input>
+ <ResourceURI/>
+ <Expression/>
+ </Input>
+ <Response>
+ <Item/>
+ <Item/>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.6 Enumerate w/ SelectorFilter" Supported="false">
+ <Input>
+ <ResourceURI/>
+ <Expression/>
+ </Input>
+ <Response>
+ <Item/>
+ <Item/>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.7 Enumerate w/ Other Dialect" Supported="false">
+ <Input>
+ <ResourceURI/>
+ <Dialect/>
+ <Expression/>
+ </Input>
+ <Response>
+ <Item/>
+ <Item/>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.8 Enumerate w/ transform and EPR" Supported="false">
+ <Input>
+ <ResourceURI/>
+ <Dialect/>
+ <Expression/>
+ </Input>
+ <Response>
+ <Item>
+ <Obj/>
+ <EPR/>
+ </Item>
+ <Item>
+ <Obj/>
+ <EPR/>
+ </Item>
+ </Response>
+ </Scenario>
+ <Scenario Description="7.9 Enumerate Polymorphism" Supported="false">
+ <Input>
+ <ResourceURI/>
+ </Input>
+ <Response>
+ <Item/>
+ <Item/>
+ </Response>
+ </Scenario>
+ <Scenario Description="8.1 Invoke" Supported="true">
+ <Input xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RecordLog</ResourceURI>
+ <wsman:SelectorSet xmlns:ns8="http://test.foo">
+ <wsman:Selector Name="InstanceID">IPMI:IPMI Controller 32 SEL Log</wsman:Selector>
+ </wsman:SelectorSet>
+ <MethodName>ClearLog</MethodName>
+ <InputMsg>
+ <p:ClearLog_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_RecordLog"/></InputMsg>
+ </Input>
+ <Response>
+ <OutputMsg/>
+ </Response>
+ </Scenario>
+ <Scenario Description="9.1 Put " Supported="true">
+ <Input xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</ResourceURI>
+ <wsman:SelectorSet>
+ <wsman:Selector Name="CreationClassName">NumericSensor</wsman:Selector>
+ <wsman:Selector Name="DeviceID">10.0.32</wsman:Selector>
+ <wsman:Selector Name="SystemName">IPMI Controller 32</wsman:Selector>
+ <wsman:Selector Name="SystemCreationClassName">ComputerSystem</wsman:Selector>
+ </wsman:SelectorSet>
+ <NewValue>
+ <p:CIM_NumericSensor xml:lang="en-US"
+ xmlns:cim="http://schemas.dmtf.org/wbem/wsman/1/base"
+ xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <p:Accuracy>0</p:Accuracy>
+ <p:Availability xsi:nil="true"/>
+ <p:BaseUnits>0</p:BaseUnits>
+ <p:Caption>OEM RESERVED(81.0.32)</p:Caption>
+ <p:CreationClassName>NumericSensor</p:CreationClassName>
+ <p:CurrentReading>0</p:CurrentReading>
+ <p:CurrentState>OK</p:CurrentState>
+ <p:Description>SEL Fullness(81.0.32):OEM RESERVED for OEM System Integrator defined entity 0</p:Description>
+ <p:DeviceID>81.0.32</p:DeviceID>
+ <p:ElementName>SEL Fullness(81.0.32)</p:ElementName>
+ <p:EnabledDefault>2</p:EnabledDefault>
+ <p:EnabledState>5</p:EnabledState>
+ <p:ErrorCleared xsi:nil="true"/>
+ <p:ErrorDescription xsi:nil="true"/>
+ <p:HealthState xsi:nil="true"/>
+ <p:Hysteresis>0</p:Hysteresis>
+ <p:InstallDate xsi:nil="true"/>
+ <p:IsLinear>true</p:IsLinear>
+ <p:LastErrorCode xsi:nil="true"/>
+ <p:LowerThresholdCritical>26</p:LowerThresholdCritical>
+ <p:LowerThresholdFatal>10</p:LowerThresholdFatal>
+ <p:LowerThresholdNonCritical>100</p:LowerThresholdNonCritical>
+ <p:MaxQuiesceTime xsi:nil="true"/>
+ <p:MaxReadable>255</p:MaxReadable>
+ <p:MinReadable>0</p:MinReadable>
+ <p:Name>SEL Fullness(81.0.32)</p:Name>
+ <p:NominalReading>48</p:NominalReading>
+ <p:NormalMax>63</p:NormalMax>
+ <p:NormalMin>47</p:NormalMin>
+ <p:OtherEnabledState xsi:nil="true"/>
+ <p:OtherSensorTypeDescription>OEM RESERVED</p:OtherSensorTypeDescription>
+ <p:PollingInterval xsi:nil="true"/>
+ <p:PossibleStates>OK</p:PossibleStates>
+ <p:PossibleStates>N/A</p:PossibleStates>
+ <p:PossibleStates>at or below lower non-critical threshold</p:PossibleStates>
+ <p:PossibleStates>at or below lower critical threshold</p:PossibleStates>
+ <p:PossibleStates>at or below lower non-recoverable threshold</p:PossibleStates>
+ <p:PossibleStates>at or above upper non-critical threshold</p:PossibleStates>
+ <p:PossibleStates>at or above upper critical threshold</p:PossibleStates>
+ <p:PossibleStates>at or above upper non-recoverable threshold</p:PossibleStates>
+ <p:PowerManagementSupported xsi:nil="true"/>
+ <p:PowerOnHours xsi:nil="true"/>
+ <p:RateUnits>0</p:RateUnits>
+ <p:RequestedState>12</p:RequestedState>
+ <p:Resolution>0</p:Resolution>
+ <p:SensorType>1</p:SensorType>
+ <p:Status xsi:nil="true"/>
+ <p:StatusInfo xsi:nil="true"/>
+ <p:SystemCreationClassName>ComputerSystem</p:SystemCreationClassName>
+ <p:SystemName>IPMI Controller 32</p:SystemName>
+ <p:TimeOfLastStateChange xsi:nil="true"/>
+ <p:Tolerance xsi:nil="true"/>
+ <p:TotalPowerOnHours xsi:nil="true"/>
+ <p:UnitModifier>0</p:UnitModifier>
+ <p:UpperThresholdCritical>80</p:UpperThresholdCritical>
+ <p:UpperThresholdFatal>90</p:UpperThresholdFatal>
+ <p:UpperThresholdNonCritical>66</p:UpperThresholdNonCritical>
+ </p:CIM_NumericSensor>
+ </NewValue>
+ </Input>
+ </Scenario>
+ <Scenario Description="9.2 Fragment Put" Supported="true">
+ <Input xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
+ <ResourceURI>http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</ResourceURI>
+ <wsman:SelectorSet xmlns:ns8="http://test.foo">
+ <wsman:Selector Name="CreationClassName">NumericSensor</wsman:Selector>
+ <wsman:Selector Name="DeviceID">81.0.32</wsman:Selector>
+ <wsman:Selector Name="SystemName">IPMI Controller 32</wsman:Selector>
+ <wsman:Selector Name="SystemCreationClassName">ComputerSystem</wsman:Selector>
+ </wsman:SelectorSet>
+ <Dialect>http://www.w3.org/TR/1999/REC-xpath-19991116</Dialect>
+ <Expression>//p:LowerThresholdNonCritical</Expression>
+ <InputMsg/>
+ </Input>
+ </Scenario>
+ <Scenario Description="10 Eventing" Supported="true">
+ <Input xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">
+ <ResourceURI>wsman:test/pull_source</ResourceURI>
+ <Dialect>http://www.w3.org/TR/1999/REC-xpath-19991116</Dialect>
+ <wse:Subscribe xmlns:ns8="http://test.foo">
+ <wse:Delivery Mode="http://schemas.dmtf.org/wbem/wsman/1/wsman/Pull"/>
+ </wse:Subscribe>
+ </Input>
+ <HowToPullEvents>
+ <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
+ xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing"
+ xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"
+ xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"
+ xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <env:Header>
+ <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</wsa:Action>
+ <wsa:ReplyTo xmlns:ns8="http://test.foo">
+ <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
+ </wsa:ReplyTo>
+ <wsa:MessageID xmlns:ns8="http://test.foo">uuid:a34da83f-326a-441d-9a92-c30f063112ca</wsa:MessageID>
+ <wsa:To xmlns:ns8="http://test.foo">http://localhost:8080/wsman/</wsa:To>
+ <wsman:ResourceURI xmlns:ns8="http://test.foo">wsman:test/pull_source</wsman:ResourceURI>
+ <wsman:OperationTimeout xmlns:ns8="http://test.foo">PT1M0.000S</wsman:OperationTimeout>
+ <wsman:MaxEnvelopeSize env:mustUnderstand="true" xmlns:ns8="http://test.foo">153600</wsman:MaxEnvelopeSize>
+ <wsman:Locale env:mustUnderstand="false" xml:lang="en-US" xmlns:ns8="http://test.foo"/>
+ </env:Header>
+ <env:Body>
+ <wsen:Pull xmlns:ns8="http://test.foo">
+ <wsen:EnumerationContext>5cfb05ca-9eb1-42e6-b5d0-79fd0a76b5a2</wsen:EnumerationContext>
+ <wsen:MaxElements>1</wsen:MaxElements>
+ </wsen:Pull>
+ </env:Body>
+ </env:Envelope>
+
+
+ <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
+ xmlns:log="https://wiseman.dev.java.net/test/events/pull"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
+ xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing"
+ xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"
+ xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"
+ xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <env:Header>
+ <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse</wsa:Action>
+ <wsa:MessageID xmlns:ns9="http://test.foo">uuid:6f101b82-65e3-4d2a-b15e-97c1e04d6f10</wsa:MessageID>
+ <wsa:RelatesTo xmlns:ns9="http://test.foo">uuid:a34da83f-326a-441d-9a92-c30f063112ca</wsa:RelatesTo>
+ <wsa:To xmlns:ns9="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
+ </env:Header>
+ <env:Body>
+ <wsen:PullResponse xmlns:ns9="http://test.foo">
+ <wsen:EnumerationContext>5cfb05ca-9eb1-42e6-b5d0-79fd0a76b5a2</wsen:EnumerationContext>
+ <wsen:Items>
+ <log:event1>critical</log:event1>
+ </wsen:Items>
+ </wsen:PullResponse>
+ </env:Body>
+ </env:Envelope>
+ </HowToPullEvents>
+ <Response>
+ <Event/>
+ <Event/>
+ </Response>
+ </Scenario>
+</WSManInteropScenarios>
diff --git a/tests/interop/WISEMAN-results.txt b/tests/interop/WISEMAN-results.txt new file mode 100644 index 0000000..3c5b9fa --- /dev/null +++ b/tests/interop/WISEMAN-results.txt @@ -0,0 +1,750 @@ +6.1 Identify (0) + +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd"> + <s:Header/> + <s:Body> + <wsmid:Identify/> + </s:Body> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:id="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header/> + <env:Body> + <id:IdentifyResponse> + <id:ProductVendor>The Wiseman Project - https://wiseman.dev.java.net</id:ProductVendor> + <id:ProductVersion>0.5</id:ProductVersion> + <id:ProtocolVersion>http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd</id:ProtocolVersion> + <id:SpecVersion>1.0.0a</id:SpecVersion> + <id:BuildId>200612040909</id:BuildId> + </id:IdentifyResponse> + </env:Body> +</env:Envelope> +6.1.1 Anonymous Identify: Not Supported (1) + +6.2 Get (2) + +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3bf019b7-23e2-13e2-8002-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + <wsman:SelectorSet> + <wsman:Selector Name="Name">IPMI Controller 32</wsman:Selector> + <wsman:Selector Name="CreationClassName">ComputerSystem</wsman:Selector> + </wsman:SelectorSet> + </s:Header> + <s:Body/> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse</wsa:Action> + <wsa:MessageID xmlns:ns8="http://test.foo">uuid:1cf13918-cbf8-4025-9837-fcb4b28e7018</wsa:MessageID> + <wsa:RelatesTo xmlns:ns8="http://test.foo">uuid:3bf019b7-23e2-13e2-8002-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <p:CIM_ComputerSystem xmlns:cim="http://schemas.dmtf.org/wbem/wsman/1/base" xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <p:Caption>BMC 32</p:Caption> + <p:CreationClassName>ComputerSystem</p:CreationClassName> + <p:Dedicated>14</p:Dedicated> + <p:Description>BMC 32 - IPMI v1.5 - fw v0.30.0.0.0.0</p:Description> + <p:ElementName>IPMI Controller 32</p:ElementName> + <p:EnabledDefault>2</p:EnabledDefault> + <p:EnabledState>5</p:EnabledState> + <p:HealthState xsi:nil="true"/> + <p:IdentifyingDescriptions>Wiseman-https://wiseman.dev.java.net</p:IdentifyingDescriptions> + <p:InstallDate xsi:nil="true"/> + <p:Name>IPMI Controller 32</p:Name> + <p:NameFormat>Other</p:NameFormat> + <p:OtherEnabledState xsi:nil="true"/> + <p:OtherIdentifyingInfo>0-0</p:OtherIdentifyingInfo> + <p:PrimaryOwnerContact xsi:nil="true"/> + <p:PrimaryOwnerName xsi:nil="true"/> + <p:RequestedState>12</p:RequestedState> + <p:ResetCapability xsi:nil="true"/> + <p:Roles>Hardware Management Controller</p:Roles> + <p:Status xsi:nil="true"/> + <p:TimeOfLastStateChange xsi:nil="true"/> +</p:CIM_ComputerSystem> + </env:Body> +</env:Envelope> +6.3 Get failure - invalid resoure URI (3) + +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSyste</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3bf41645-23e2-13e2-8003-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + <wsman:SelectorSet> + <wsman:Selector Name="Name">IPMI Controller 32</wsman:Selector> + <wsman:Selector Name="CreationClassName">ComputerSystem</wsman:Selector> + </wsman:SelectorSet> + </s:Header> + <s:Body/> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action> + <wsa:MessageID xmlns:ns8="http://test.foo">uuid:2fc912e4-d19a-4073-8dc4-3507a650c734</wsa:MessageID> + <wsa:RelatesTo xmlns:ns8="http://test.foo">uuid:3bf41645-23e2-13e2-8003-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <env:Fault xmlns:ns8="http://test.foo"> + <env:Code> + <env:Value>env:Sender</env:Value> + <env:Subcode> + <env:Value>wsa:DestinationUnreachable</env:Value> + </env:Subcode> + </env:Code> + <env:Reason> + <env:Text xml:lang="en-US">No route can be determined to reach the destination role defined by the WS-Addressing To.</env:Text> + </env:Reason> + <env:Detail> + <env:Text xml:lang="en-US">Handler not found for resource http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSyste</env:Text> + <wsman:FaultDetail>http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/InvalidResourceURI</wsman:FaultDetail> + </env:Detail> + </env:Fault> + </env:Body> +</env:Envelope> +6.4 Get failure (MaxEnvelop exceeded) (4) + +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3bf72507-23e2-13e2-8004-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + <wsman:SelectorSet> + <wsman:Selector Name="Name">IPMI Controller 32</wsman:Selector> + <wsman:Selector Name="CreationClassName">ComputerSystem</wsman:Selector> + </wsman:SelectorSet> + </s:Header> + <s:Body/> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse</wsa:Action> + <wsa:MessageID xmlns:ns8="http://test.foo">uuid:af038704-3eab-4714-b3e1-f48986aead89</wsa:MessageID> + <wsa:RelatesTo xmlns:ns8="http://test.foo">uuid:3bf72507-23e2-13e2-8004-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <p:CIM_ComputerSystem xmlns:cim="http://schemas.dmtf.org/wbem/wsman/1/base" xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <p:Caption>BMC 32</p:Caption> + <p:CreationClassName>ComputerSystem</p:CreationClassName> + <p:Dedicated>14</p:Dedicated> + <p:Description>BMC 32 - IPMI v1.5 - fw v0.30.0.0.0.0</p:Description> + <p:ElementName>IPMI Controller 32</p:ElementName> + <p:EnabledDefault>2</p:EnabledDefault> + <p:EnabledState>5</p:EnabledState> + <p:HealthState xsi:nil="true"/> + <p:IdentifyingDescriptions>Wiseman-https://wiseman.dev.java.net</p:IdentifyingDescriptions> + <p:InstallDate xsi:nil="true"/> + <p:Name>IPMI Controller 32</p:Name> + <p:NameFormat>Other</p:NameFormat> + <p:OtherEnabledState xsi:nil="true"/> + <p:OtherIdentifyingInfo>0-0</p:OtherIdentifyingInfo> + <p:PrimaryOwnerContact xsi:nil="true"/> + <p:PrimaryOwnerName xsi:nil="true"/> + <p:RequestedState>12</p:RequestedState> + <p:ResetCapability xsi:nil="true"/> + <p:Roles>Hardware Management Controller</p:Roles> + <p:Status xsi:nil="true"/> + <p:TimeOfLastStateChange xsi:nil="true"/> +</p:CIM_ComputerSystem> + </env:Body> +</env:Envelope> +6.5 Get failure - invalid selectors (5) + +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3bf9f1f8-23e2-13e2-8005-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + <wsman:SelectorSet> + <wsman:Selector Name="CreationClassName">NumericSensor</wsman:Selector> + </wsman:SelectorSet> + </s:Header> + <s:Body/> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.dmtf.org/wbem/wsman/1/wsman/fault</wsa:Action> + <wsa:MessageID xmlns:ns8="http://test.foo">uuid:04ed17b8-9fba-4fd0-a244-0570c46ce290</wsa:MessageID> + <wsa:RelatesTo xmlns:ns8="http://test.foo">uuid:3bf9f1f8-23e2-13e2-8005-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <env:Fault xmlns:ns8="http://test.foo"> + <env:Code> + <env:Value>env:Sender</env:Value> + <env:Subcode> + <env:Value>wsman:InvalidSelectors</env:Value> + </env:Subcode> + </env:Code> + <env:Reason> + <env:Text xml:lang="en-US">The Selectors for the resource were not valid.</env:Text> + </env:Reason> + <env:Detail> + <wsman:FaultDetail>http://schemas.dmtf.org/wbem/wsman/1/wsman/faultDetail/InsufficientSelectors</wsman:FaultDetail> + </env:Detail> + </env:Fault> + </env:Body> +</env:Envelope> +6.6 Get failure - operation timeout (6) + +6.7 Fragment Get (7) + +7.1 Enumerate (8) + +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3bfc992c-23e2-13e2-8006-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + </s:Header> + <s:Body> + <wsen:Enumerate/> + </s:Body> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse</wsa:Action> + <wsa:MessageID xmlns:ns8="http://test.foo">uuid:e427e797-3a09-480b-b022-b52e79a2178f</wsa:MessageID> + <wsa:RelatesTo xmlns:ns8="http://test.foo">uuid:3bfc992c-23e2-13e2-8006-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <wsen:EnumerateResponse xmlns:ns8="http://test.foo"> + <wsen:Expires>2147483647-12-31T23:59:59.999-14:00</wsen:Expires> + <wsen:EnumerationContext>8191fd9d-24c6-477f-9192-e27c59358ee3</wsen:EnumerationContext> + </wsen:EnumerateResponse> + </env:Body> +</env:Envelope> +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3bff5769-23e2-13e2-8007-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + </s:Header> + <s:Body> + <wsen:Pull> + <wsen:EnumerationContext>8191fd9d-24c6-477f-9192-e27c59358ee3</wsen:EnumerationContext> + </wsen:Pull> + </s:Body> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse</wsa:Action> + <wsa:MessageID xmlns:ns9="http://test.foo">uuid:9212ad20-d20a-4950-a258-a3eba0162acc</wsa:MessageID> + <wsa:RelatesTo xmlns:ns9="http://test.foo">uuid:3bff5769-23e2-13e2-8007-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns9="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <wsen:PullResponse xmlns:ns9="http://test.foo"> + <wsen:EnumerationContext>8191fd9d-24c6-477f-9192-e27c59358ee3</wsen:EnumerationContext> + <wsen:Items> + <p:CIM_NumericSensor xmlns:cim="http://schemas.dmtf.org/wbem/wsman/1/base" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <p:Accuracy>0</p:Accuracy> + <p:Availability xsi:nil="true"/> + <p:BaseUnits>2</p:BaseUnits> + <p:Caption>Temperature(10.0.32)</p:Caption> + <p:CreationClassName>NumericSensor</p:CreationClassName> + <p:CurrentReading>190</p:CurrentReading> + <p:CurrentState>OK</p:CurrentState> + <p:Description>PCI-X Slot Temp(10.0.32):Temperature for Other 1</p:Description> + <p:DeviceID>10.0.32</p:DeviceID> + <p:ElementName>PCI-X Slot Temp(10.0.32)</p:ElementName> + <p:EnabledDefault>2</p:EnabledDefault> + <p:EnabledState>5</p:EnabledState> + <p:ErrorCleared xsi:nil="true"/> + <p:ErrorDescription xsi:nil="true"/> + <p:HealthState xsi:nil="true"/> + <p:Hysteresis>0</p:Hysteresis> + <p:InstallDate xsi:nil="true"/> + <p:IsLinear>true</p:IsLinear> + <p:LastErrorCode xsi:nil="true"/> + <p:LowerThresholdCritical>-550</p:LowerThresholdCritical> + <p:LowerThresholdFatal>-550</p:LowerThresholdFatal> + <p:LowerThresholdNonCritical>40</p:LowerThresholdNonCritical> + <p:MaxQuiesceTime xsi:nil="true"/> + <p:MaxReadable>2000</p:MaxReadable> + <p:MinReadable>-550</p:MinReadable> + <p:Name>PCI-X Slot Temp(10.0.32)</p:Name> + <p:NominalReading>300</p:NominalReading> + <p:NormalMax>350</p:NormalMax> + <p:NormalMin>250</p:NormalMin> + <p:OtherEnabledState xsi:nil="true"/> + <p:OtherSensorTypeDescription xsi:nil="true"/> + <p:PollingInterval xsi:nil="true"/> + <p:PossibleStates>OK</p:PossibleStates> + <p:PossibleStates>N/A</p:PossibleStates> + <p:PossibleStates>at or below lower non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower non-recoverable threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-recoverable threshold</p:PossibleStates> + <p:PowerManagementSupported xsi:nil="true"/> + <p:PowerOnHours xsi:nil="true"/> + <p:RateUnits>0</p:RateUnits> + <p:RequestedState>12</p:RequestedState> + <p:Resolution>0</p:Resolution> + <p:SensorType>2</p:SensorType> + <p:Status xsi:nil="true"/> + <p:StatusInfo xsi:nil="true"/> + <p:SystemCreationClassName>ComputerSystem</p:SystemCreationClassName> + <p:SystemName>IPMI Controller 32</p:SystemName> + <p:TimeOfLastStateChange xsi:nil="true"/> + <p:Tolerance xsi:nil="true"/> + <p:TotalPowerOnHours xsi:nil="true"/> + <p:UnitModifier>-1</p:UnitModifier> + <p:UpperThresholdCritical>550</p:UpperThresholdCritical> + <p:UpperThresholdFatal>-550</p:UpperThresholdFatal> + <p:UpperThresholdNonCritical>450</p:UpperThresholdNonCritical> +</p:CIM_NumericSensor> + </wsen:Items> + </wsen:PullResponse> + </env:Body> +</env:Envelope> +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3c0220de-23e2-13e2-8008-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + </s:Header> + <s:Body> + <wsen:Pull> + <wsen:EnumerationContext>8191fd9d-24c6-477f-9192-e27c59358ee3</wsen:EnumerationContext> + </wsen:Pull> + </s:Body> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse</wsa:Action> + <wsa:MessageID xmlns:ns9="http://test.foo">uuid:0f78735c-b096-4b50-bff9-e573002a5a0c</wsa:MessageID> + <wsa:RelatesTo xmlns:ns9="http://test.foo">uuid:3c0220de-23e2-13e2-8008-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns9="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <wsen:PullResponse xmlns:ns9="http://test.foo"> + <wsen:Items> + <p:CIM_NumericSensor xmlns:cim="http://schemas.dmtf.org/wbem/wsman/1/base" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <p:Accuracy>0</p:Accuracy> + <p:Availability xsi:nil="true"/> + <p:BaseUnits>2</p:BaseUnits> + <p:Caption>Temperature(11.0.32)</p:Caption> + <p:CreationClassName>NumericSensor</p:CreationClassName> + <p:CurrentReading>210</p:CurrentReading> + <p:CurrentState>OK</p:CurrentState> + <p:Description>SCSI-Gbit Temp(11.0.32):Temperature for Other 2</p:Description> + <p:DeviceID>11.0.32</p:DeviceID> + <p:ElementName>SCSI-Gbit Temp(11.0.32)</p:ElementName> + <p:EnabledDefault>2</p:EnabledDefault> + <p:EnabledState>5</p:EnabledState> + <p:ErrorCleared xsi:nil="true"/> + <p:ErrorDescription xsi:nil="true"/> + <p:HealthState xsi:nil="true"/> + <p:Hysteresis>0</p:Hysteresis> + <p:InstallDate xsi:nil="true"/> + <p:IsLinear>true</p:IsLinear> + <p:LastErrorCode xsi:nil="true"/> + <p:LowerThresholdCritical>-550</p:LowerThresholdCritical> + <p:LowerThresholdFatal>-550</p:LowerThresholdFatal> + <p:LowerThresholdNonCritical>40</p:LowerThresholdNonCritical> + <p:MaxQuiesceTime xsi:nil="true"/> + <p:MaxReadable>2000</p:MaxReadable> + <p:MinReadable>-550</p:MinReadable> + <p:Name>SCSI-Gbit Temp(11.0.32)</p:Name> + <p:NominalReading>300</p:NominalReading> + <p:NormalMax>350</p:NormalMax> + <p:NormalMin>250</p:NormalMin> + <p:OtherEnabledState xsi:nil="true"/> + <p:OtherSensorTypeDescription xsi:nil="true"/> + <p:PollingInterval xsi:nil="true"/> + <p:PossibleStates>OK</p:PossibleStates> + <p:PossibleStates>N/A</p:PossibleStates> + <p:PossibleStates>at or below lower non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower non-recoverable threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-recoverable threshold</p:PossibleStates> + <p:PowerManagementSupported xsi:nil="true"/> + <p:PowerOnHours xsi:nil="true"/> + <p:RateUnits>0</p:RateUnits> + <p:RequestedState>12</p:RequestedState> + <p:Resolution>0</p:Resolution> + <p:SensorType>2</p:SensorType> + <p:Status xsi:nil="true"/> + <p:StatusInfo xsi:nil="true"/> + <p:SystemCreationClassName>ComputerSystem</p:SystemCreationClassName> + <p:SystemName>IPMI Controller 32</p:SystemName> + <p:TimeOfLastStateChange xsi:nil="true"/> + <p:Tolerance xsi:nil="true"/> + <p:TotalPowerOnHours xsi:nil="true"/> + <p:UnitModifier>-1</p:UnitModifier> + <p:UpperThresholdCritical>550</p:UpperThresholdCritical> + <p:UpperThresholdFatal>-550</p:UpperThresholdFatal> + <p:UpperThresholdNonCritical>450</p:UpperThresholdNonCritical> +</p:CIM_NumericSensor> + </wsen:Items> + <wsen:EndOfSequence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string"/> + </wsen:PullResponse> + </env:Body> +</env:Envelope> +7.2 Optimized Enumerate (9) + +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3c088bb3-23e2-13e2-8009-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + </s:Header> + <s:Body> + <wsen:Enumerate> + <wsman:OptimizeEnumeration/> + </wsen:Enumerate> + </s:Body> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/enumeration/EnumerateResponse</wsa:Action> + <wsa:MessageID xmlns:ns9="http://test.foo">uuid:de26eba6-fad2-4ef1-85cf-0cd4f366b581</wsa:MessageID> + <wsa:RelatesTo xmlns:ns9="http://test.foo">uuid:3c088bb3-23e2-13e2-8009-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns9="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <wsen:EnumerateResponse xmlns:ns9="http://test.foo"> + <wsen:EnumerationContext>c0081c39-b43e-451f-9967-810608f94780</wsen:EnumerationContext> + <wsman:Items> + <p:CIM_NumericSensor xmlns:cim="http://schemas.dmtf.org/wbem/wsman/1/base" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <p:Accuracy>0</p:Accuracy> + <p:Availability xsi:nil="true"/> + <p:BaseUnits>2</p:BaseUnits> + <p:Caption>Temperature(10.0.32)</p:Caption> + <p:CreationClassName>NumericSensor</p:CreationClassName> + <p:CurrentReading>190</p:CurrentReading> + <p:CurrentState>OK</p:CurrentState> + <p:Description>PCI-X Slot Temp(10.0.32):Temperature for Other 1</p:Description> + <p:DeviceID>10.0.32</p:DeviceID> + <p:ElementName>PCI-X Slot Temp(10.0.32)</p:ElementName> + <p:EnabledDefault>2</p:EnabledDefault> + <p:EnabledState>5</p:EnabledState> + <p:ErrorCleared xsi:nil="true"/> + <p:ErrorDescription xsi:nil="true"/> + <p:HealthState xsi:nil="true"/> + <p:Hysteresis>0</p:Hysteresis> + <p:InstallDate xsi:nil="true"/> + <p:IsLinear>true</p:IsLinear> + <p:LastErrorCode xsi:nil="true"/> + <p:LowerThresholdCritical>-550</p:LowerThresholdCritical> + <p:LowerThresholdFatal>-550</p:LowerThresholdFatal> + <p:LowerThresholdNonCritical>40</p:LowerThresholdNonCritical> + <p:MaxQuiesceTime xsi:nil="true"/> + <p:MaxReadable>2000</p:MaxReadable> + <p:MinReadable>-550</p:MinReadable> + <p:Name>PCI-X Slot Temp(10.0.32)</p:Name> + <p:NominalReading>300</p:NominalReading> + <p:NormalMax>350</p:NormalMax> + <p:NormalMin>250</p:NormalMin> + <p:OtherEnabledState xsi:nil="true"/> + <p:OtherSensorTypeDescription xsi:nil="true"/> + <p:PollingInterval xsi:nil="true"/> + <p:PossibleStates>OK</p:PossibleStates> + <p:PossibleStates>N/A</p:PossibleStates> + <p:PossibleStates>at or below lower non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower non-recoverable threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-recoverable threshold</p:PossibleStates> + <p:PowerManagementSupported xsi:nil="true"/> + <p:PowerOnHours xsi:nil="true"/> + <p:RateUnits>0</p:RateUnits> + <p:RequestedState>12</p:RequestedState> + <p:Resolution>0</p:Resolution> + <p:SensorType>2</p:SensorType> + <p:Status xsi:nil="true"/> + <p:StatusInfo xsi:nil="true"/> + <p:SystemCreationClassName>ComputerSystem</p:SystemCreationClassName> + <p:SystemName>IPMI Controller 32</p:SystemName> + <p:TimeOfLastStateChange xsi:nil="true"/> + <p:Tolerance xsi:nil="true"/> + <p:TotalPowerOnHours xsi:nil="true"/> + <p:UnitModifier>-1</p:UnitModifier> + <p:UpperThresholdCritical>550</p:UpperThresholdCritical> + <p:UpperThresholdFatal>-550</p:UpperThresholdFatal> + <p:UpperThresholdNonCritical>450</p:UpperThresholdNonCritical> +</p:CIM_NumericSensor> + </wsman:Items> + </wsen:EnumerateResponse> + </env:Body> +</env:Envelope> +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3c0b559f-23e2-13e2-800a-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + </s:Header> + <s:Body> + <wsen:Pull> + <wsen:EnumerationContext>c0081c39-b43e-451f-9967-810608f94780</wsen:EnumerationContext> + </wsen:Pull> + </s:Body> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse</wsa:Action> + <wsa:MessageID xmlns:ns9="http://test.foo">uuid:eb031411-bce6-46cc-a7e4-4adc9ac725cb</wsa:MessageID> + <wsa:RelatesTo xmlns:ns9="http://test.foo">uuid:3c0b559f-23e2-13e2-800a-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns9="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <wsen:PullResponse xmlns:ns9="http://test.foo"> + <wsen:Items> + <p:CIM_NumericSensor xmlns:cim="http://schemas.dmtf.org/wbem/wsman/1/base" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <p:Accuracy>0</p:Accuracy> + <p:Availability xsi:nil="true"/> + <p:BaseUnits>2</p:BaseUnits> + <p:Caption>Temperature(11.0.32)</p:Caption> + <p:CreationClassName>NumericSensor</p:CreationClassName> + <p:CurrentReading>210</p:CurrentReading> + <p:CurrentState>OK</p:CurrentState> + <p:Description>SCSI-Gbit Temp(11.0.32):Temperature for Other 2</p:Description> + <p:DeviceID>11.0.32</p:DeviceID> + <p:ElementName>SCSI-Gbit Temp(11.0.32)</p:ElementName> + <p:EnabledDefault>2</p:EnabledDefault> + <p:EnabledState>5</p:EnabledState> + <p:ErrorCleared xsi:nil="true"/> + <p:ErrorDescription xsi:nil="true"/> + <p:HealthState xsi:nil="true"/> + <p:Hysteresis>0</p:Hysteresis> + <p:InstallDate xsi:nil="true"/> + <p:IsLinear>true</p:IsLinear> + <p:LastErrorCode xsi:nil="true"/> + <p:LowerThresholdCritical>-550</p:LowerThresholdCritical> + <p:LowerThresholdFatal>-550</p:LowerThresholdFatal> + <p:LowerThresholdNonCritical>40</p:LowerThresholdNonCritical> + <p:MaxQuiesceTime xsi:nil="true"/> + <p:MaxReadable>2000</p:MaxReadable> + <p:MinReadable>-550</p:MinReadable> + <p:Name>SCSI-Gbit Temp(11.0.32)</p:Name> + <p:NominalReading>300</p:NominalReading> + <p:NormalMax>350</p:NormalMax> + <p:NormalMin>250</p:NormalMin> + <p:OtherEnabledState xsi:nil="true"/> + <p:OtherSensorTypeDescription xsi:nil="true"/> + <p:PollingInterval xsi:nil="true"/> + <p:PossibleStates>OK</p:PossibleStates> + <p:PossibleStates>N/A</p:PossibleStates> + <p:PossibleStates>at or below lower non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower non-recoverable threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-recoverable threshold</p:PossibleStates> + <p:PowerManagementSupported xsi:nil="true"/> + <p:PowerOnHours xsi:nil="true"/> + <p:RateUnits>0</p:RateUnits> + <p:RequestedState>12</p:RequestedState> + <p:Resolution>0</p:Resolution> + <p:SensorType>2</p:SensorType> + <p:Status xsi:nil="true"/> + <p:StatusInfo xsi:nil="true"/> + <p:SystemCreationClassName>ComputerSystem</p:SystemCreationClassName> + <p:SystemName>IPMI Controller 32</p:SystemName> + <p:TimeOfLastStateChange xsi:nil="true"/> + <p:Tolerance xsi:nil="true"/> + <p:TotalPowerOnHours xsi:nil="true"/> + <p:UnitModifier>-1</p:UnitModifier> + <p:UpperThresholdCritical>550</p:UpperThresholdCritical> + <p:UpperThresholdFatal>-550</p:UpperThresholdFatal> + <p:UpperThresholdNonCritical>450</p:UpperThresholdNonCritical> +</p:CIM_NumericSensor> + </wsen:Items> + <wsen:EndOfSequence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string"/> + </wsen:PullResponse> + </env:Body> +</env:Envelope> +7.3 Enumerate failure (10) + +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3c0e392d-23e2-13e2-800b-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + </s:Header> + <s:Body> + <wsen:Enumerate/> + </s:Body> +</s:Envelope> +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3c10d2ef-23e2-13e2-800c-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + </s:Header> + <s:Body> + <wsen:Pull> + <wsen:EnumerationContext>1fb7f89f-1bed-4b7e-b385-43ae75217f40</wsen:EnumerationContext> + </wsen:Pull> + </s:Body> +</s:Envelope> +<?xml version="1.0"?> +<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <env:Header> + <wsa:Action xmlns:ns8="http://test.foo">http://schemas.xmlsoap.org/ws/2004/09/enumeration/PullResponse</wsa:Action> + <wsa:MessageID xmlns:ns9="http://test.foo">uuid:4f6662c9-7152-4f80-8a99-9168d03d0a03</wsa:MessageID> + <wsa:RelatesTo xmlns:ns9="http://test.foo">uuid:3c10d2ef-23e2-13e2-800c-be0448251100</wsa:RelatesTo> + <wsa:To xmlns:ns9="http://test.foo">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> + </env:Header> + <env:Body> + <wsen:PullResponse xmlns:ns9="http://test.foo"> + <wsen:EnumerationContext>1fb7f89f-1bed-4b7e-b385-43ae75217f40</wsen:EnumerationContext> + <wsen:Items> + <p:CIM_NumericSensor xmlns:cim="http://schemas.dmtf.org/wbem/wsman/1/base" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <p:Accuracy>0</p:Accuracy> + <p:Availability xsi:nil="true"/> + <p:BaseUnits>2</p:BaseUnits> + <p:Caption>Temperature(10.0.32)</p:Caption> + <p:CreationClassName>NumericSensor</p:CreationClassName> + <p:CurrentReading>190</p:CurrentReading> + <p:CurrentState>OK</p:CurrentState> + <p:Description>PCI-X Slot Temp(10.0.32):Temperature for Other 1</p:Description> + <p:DeviceID>10.0.32</p:DeviceID> + <p:ElementName>PCI-X Slot Temp(10.0.32)</p:ElementName> + <p:EnabledDefault>2</p:EnabledDefault> + <p:EnabledState>5</p:EnabledState> + <p:ErrorCleared xsi:nil="true"/> + <p:ErrorDescription xsi:nil="true"/> + <p:HealthState xsi:nil="true"/> + <p:Hysteresis>0</p:Hysteresis> + <p:InstallDate xsi:nil="true"/> + <p:IsLinear>true</p:IsLinear> + <p:LastErrorCode xsi:nil="true"/> + <p:LowerThresholdCritical>-550</p:LowerThresholdCritical> + <p:LowerThresholdFatal>-550</p:LowerThresholdFatal> + <p:LowerThresholdNonCritical>40</p:LowerThresholdNonCritical> + <p:MaxQuiesceTime xsi:nil="true"/> + <p:MaxReadable>2000</p:MaxReadable> + <p:MinReadable>-550</p:MinReadable> + <p:Name>PCI-X Slot Temp(10.0.32)</p:Name> + <p:NominalReading>300</p:NominalReading> + <p:NormalMax>350</p:NormalMax> + <p:NormalMin>250</p:NormalMin> + <p:OtherEnabledState xsi:nil="true"/> + <p:OtherSensorTypeDescription xsi:nil="true"/> + <p:PollingInterval xsi:nil="true"/> + <p:PossibleStates>OK</p:PossibleStates> + <p:PossibleStates>N/A</p:PossibleStates> + <p:PossibleStates>at or below lower non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower critical threshold</p:PossibleStates> + <p:PossibleStates>at or below lower non-recoverable threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper critical threshold</p:PossibleStates> + <p:PossibleStates>at or above upper non-recoverable threshold</p:PossibleStates> + <p:PowerManagementSupported xsi:nil="true"/> + <p:PowerOnHours xsi:nil="true"/> + <p:RateUnits>0</p:RateUnits> + <p:RequestedState>12</p:RequestedState> + <p:Resolution>0</p:Resolution> + <p:SensorType>2</p:SensorType> + <p:Status xsi:nil="true"/> + <p:StatusInfo xsi:nil="true"/> + <p:SystemCreationClassName>ComputerSystem</p:SystemCreationClassName> + <p:SystemName>IPMI Controller 32</p:SystemName> + <p:TimeOfLastStateChange xsi:nil="true"/> + <p:Tolerance xsi:nil="true"/> + <p:TotalPowerOnHours xsi:nil="true"/> + <p:UnitModifier>-1</p:UnitModifier> + <p:UpperThresholdCritical>550</p:UpperThresholdCritical> + <p:UpperThresholdFatal>-550</p:UpperThresholdFatal> + <p:UpperThresholdNonCritical>450</p:UpperThresholdNonCritical> +</p:CIM_NumericSensor> + </wsen:Items> + </wsen:PullResponse> + </env:Body> +</env:Envelope> +<?xml version="1.0"?> +<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"> + <s:Header> + <wsa:Action s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull</wsa:Action> + <wsa:To s:mustUnderstand="true">http://192.168.0.17:8080/wsman/</wsa:To> + <wsman:ResourceURI s:mustUnderstand="true">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor</wsman:ResourceURI> + <wsa:MessageID s:mustUnderstand="true">uuid:3c13e965-23e2-13e2-800d-be0448251100</wsa:MessageID> + <wsa:ReplyTo> + <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address> + </wsa:ReplyTo> + </s:Header> + <s:Body> + <wsen:Pull> + <wsen:EnumerationContext>xxxx</wsen:EnumerationContext> + </wsen:Pull> + </s:Body> +</s:Envelope> diff --git a/tests/interop/interop.c b/tests/interop/interop.c index f747800..1695d0d 100644 --- a/tests/interop/interop.c +++ b/tests/interop/interop.c @@ -25,6 +25,15 @@ typedef enum { INTEROP_IDENTIFY = 0 } InteropTest; +static set_props(actionOptions *op, char *k, char *v) +{ + hash_t *h = hash_create(HASHCOUNT_T_MAX, 0, 0); + + if ( !hash_alloc_insert(h, k, v)) { + fprintf(stderr, "hash_alloc_insert failed"); + } + op->properties = h; +} static void wsman_add_selectors_list_from_node( WsXmlNodeH input, actionOptions *options) @@ -71,12 +80,12 @@ static int run_interop_test (WsManClient *cl, WsXmlNodeH scenario, InteropTest i { WsXmlDocH response; actionOptions options; - if (id == 0) { - initialize_action_options(&options); + initialize_action_options(&options); + wsman_set_action_option(&options,FLAG_DUMP_REQUEST ); + if (id == 0) { // 6.1 Identify response = wsman_identify(cl, options); xml_parser_doc_dump(stdout, response); - }else if (id == 2) { - initialize_action_options(&options); + }else if (id == 2) { // 6.2 Get WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); @@ -84,8 +93,7 @@ static int run_interop_test (WsManClient *cl, WsXmlNodeH scenario, InteropTest i char *resource_uri = ws_xml_get_node_text(r); response = ws_transfer_get(cl, resource_uri, options); xml_parser_doc_dump(stdout, response); - }else if (id == 3) { - initialize_action_options(&options); + }else if (id == 3) { // 6.3 Get failure - invalid resoure URI WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); @@ -93,8 +101,7 @@ static int run_interop_test (WsManClient *cl, WsXmlNodeH scenario, InteropTest i char *resource_uri = ws_xml_get_node_text(r); response = ws_transfer_get(cl, resource_uri, options); xml_parser_doc_dump(stdout, response); - }else if (id == 4) { - initialize_action_options(&options); + }else if (id == 4) { // 6.4 Get failure (MaxEnvelop exceeded) WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); @@ -102,8 +109,7 @@ static int run_interop_test (WsManClient *cl, WsXmlNodeH scenario, InteropTest i char *resource_uri = ws_xml_get_node_text(r); response = ws_transfer_get(cl, resource_uri, options); xml_parser_doc_dump(stdout, response); - }else if (id == 5) { - initialize_action_options(&options); + }else if (id == 5) { // 6.5 Get failure - invalid selectors WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); @@ -111,43 +117,70 @@ static int run_interop_test (WsManClient *cl, WsXmlNodeH scenario, InteropTest i char *resource_uri = ws_xml_get_node_text(r); response = ws_transfer_get(cl, resource_uri, options); xml_parser_doc_dump(stdout, response); - }else if (id == 8) { - initialize_action_options(&options); + }else if (id == 8) { // 7.1 Enumerate" WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); char *resource_uri = ws_xml_get_node_text(r); wsenum_enumerate_and_pull(cl, resource_uri , options, pull_items, NULL ); - }else if (id == 9) { - initialize_action_options(&options); + }else if (id == 9) { // 7.2 Optimized Enumerate + wsman_set_action_option(&options, FLAG_ENUMERATION_OPTIMIZATION); WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); char *resource_uri = ws_xml_get_node_text(r); wsenum_enumerate_and_pull(cl, resource_uri , options, pull_items, NULL ); - }else if (id == 10) { - initialize_action_options(&options); - wsman_set_action_option(&options, FLAG_ENUMERATION_OPTIMIZATION); + }else if (id == 10) { // 7.3 Enumerate failure WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); char *resource_uri = ws_xml_get_node_text(r); - wsenum_enumerate_and_pull(cl, resource_uri , options, pull_items, NULL ); - }else if (id == 11) { - initialize_action_options(&options); + WsXmlDocH e = wsenum_enumerate(cl, resource_uri , options ); + char *enumContext = wsenum_get_enum_context(e); + if (enumContext) { + response = wsenum_pull(cl, resource_uri, enumContext, options); + xml_parser_doc_dump(stdout, response); + WsXmlDocH response2 = wsenum_pull(cl, resource_uri, "xxxx", options); + if (response2) + xml_parser_doc_dump(stdout, response2); + } + }else if (id == 11) { // 7.4 Enumerate ObjectAndEPR + + wsman_set_action_option(&options, FLAG_ENUMERATION_ENUM_EPR); WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); char *resource_uri = ws_xml_get_node_text(r); wsenum_enumerate_and_pull(cl, resource_uri , options, pull_items, NULL ); - }else if (id == 12) { - initialize_action_options(&options); + }else if (id == 16) { // 7.9 Enumerate Polymorphism - wsman_set_action_option(&options, FLAG_ENUMERATION_ENUM_EPR); + wsman_set_action_option(&options, FLAG_POLYMORPHISM_NONE); WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); char *resource_uri = ws_xml_get_node_text(r); wsenum_enumerate_and_pull(cl, resource_uri , options, pull_items, NULL ); + }else if (id == 17) { // 8.1 Invoke + + WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); + WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); + WsXmlNodeH m = ws_xml_get_child(input, 0, NULL, "MethodName"); + char *resource_uri = ws_xml_get_node_text(r); + char *method = ws_xml_get_node_text(m); + wsman_add_selectors_list_from_node(input, &options); + response = wsman_invoke(cl, resource_uri, method, options); + xml_parser_doc_dump(stdout, response); + }else if (id == 18) { // 9.1 Put + + WsXmlNodeH input = ws_xml_get_child(scenario, 0, NULL, "Input"); + WsXmlNodeH r = ws_xml_get_child(input, 0, NULL, "ResourceURI"); + WsXmlNodeH k = ws_xml_get_child(input, 0, NULL, "PropertyName"); + WsXmlNodeH v = ws_xml_get_child(input, 0, NULL, "NewValue"); + char *resource_uri = ws_xml_get_node_text(r); + wsman_add_selectors_list_from_node(input, &options); + set_props(&options, ws_xml_get_node_text(k), ws_xml_get_node_text(v) ); + + response = ws_transfer_put(cl, resource_uri, options); + xml_parser_doc_dump(stdout, response); } return 0; @@ -227,7 +260,7 @@ int main(int argc, char** argv) WsXmlAttrH desc = ws_xml_get_node_attr(scenario, 0); char *attr_val = ws_xml_get_attr_value(desc); WsXmlAttrH supported = ws_xml_get_node_attr(scenario, 1); - if (strcmp(ws_xml_get_attr_value(supported), "true") == 0 ) { + if (strcmp(ws_xml_get_attr_value(supported), "true") == 0 ) { if (desc) { if (attr_val) printf("%s (%d)\n\n", attr_val, test_id ); |