winrm 2.3.0 → 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/winrm/http/response_handler.rb +1 -1
  3. data/lib/winrm/http/transport.rb +2 -2
  4. data/lib/winrm/psrp/message.rb +128 -128
  5. data/lib/winrm/psrp/message_data/error_record.rb +2 -0
  6. data/lib/winrm/psrp/message_data/pipeline_output.rb +1 -1
  7. data/lib/winrm/psrp/message_factory.rb +14 -2
  8. data/lib/winrm/psrp/powershell_output_decoder.rb +142 -142
  9. data/lib/winrm/shells/base.rb +1 -0
  10. data/lib/winrm/shells/power_shell.rb +4 -4
  11. data/lib/winrm/version.rb +1 -1
  12. metadata +16 -90
  13. data/.gitignore +0 -10
  14. data/.rubocop.yml +0 -38
  15. data/.travis.yml +0 -10
  16. data/Gemfile +0 -2
  17. data/Rakefile +0 -33
  18. data/Vagrantfile +0 -6
  19. data/WinrmAppveyor.psm1 +0 -32
  20. data/appveyor.yml +0 -50
  21. data/changelog.md +0 -133
  22. data/preamble +0 -17
  23. data/tests/integration/auth_timeout_spec.rb +0 -17
  24. data/tests/integration/cmd_spec.rb +0 -130
  25. data/tests/integration/config-example.yml +0 -16
  26. data/tests/integration/issue_59_spec.rb +0 -25
  27. data/tests/integration/powershell_spec.rb +0 -164
  28. data/tests/integration/spec_helper.rb +0 -62
  29. data/tests/integration/transport_spec.rb +0 -98
  30. data/tests/integration/wql_spec.rb +0 -33
  31. data/tests/matchers.rb +0 -59
  32. data/tests/spec/configuration_spec.rb +0 -183
  33. data/tests/spec/connection_spec.rb +0 -37
  34. data/tests/spec/exception_spec.rb +0 -49
  35. data/tests/spec/http/transport_factory_spec.rb +0 -66
  36. data/tests/spec/http/transport_spec.rb +0 -43
  37. data/tests/spec/output_spec.rb +0 -128
  38. data/tests/spec/psrp/fragment_spec.rb +0 -60
  39. data/tests/spec/psrp/message_data/base_spec.rb +0 -11
  40. data/tests/spec/psrp/message_data/error_record_spec.rb +0 -39
  41. data/tests/spec/psrp/message_data/pipeline_host_call_spec.rb +0 -23
  42. data/tests/spec/psrp/message_data/pipeline_output_spec.rb +0 -30
  43. data/tests/spec/psrp/message_data/pipeline_state_spec.rb +0 -38
  44. data/tests/spec/psrp/message_data/runspace_pool_host_call_spec.rb +0 -23
  45. data/tests/spec/psrp/message_data/runspacepool_state_spec.rb +0 -14
  46. data/tests/spec/psrp/message_data/session_capability_spec.rb +0 -28
  47. data/tests/spec/psrp/message_data_spec.rb +0 -33
  48. data/tests/spec/psrp/message_defragmenter_spec.rb +0 -45
  49. data/tests/spec/psrp/message_fragmenter_spec.rb +0 -103
  50. data/tests/spec/psrp/powershell_output_decoder_spec.rb +0 -98
  51. data/tests/spec/psrp/psrp_message_spec.rb +0 -73
  52. data/tests/spec/psrp/recieve_response_reader_spec.rb +0 -170
  53. data/tests/spec/psrp/uuid_spec.rb +0 -28
  54. data/tests/spec/response_handler_spec.rb +0 -69
  55. data/tests/spec/shells/base_spec.rb +0 -227
  56. data/tests/spec/shells/cmd_spec.rb +0 -75
  57. data/tests/spec/shells/powershell_spec.rb +0 -221
  58. data/tests/spec/spec_helper.rb +0 -46
  59. data/tests/spec/stubs/clixml/error_record.xml.erb +0 -84
  60. data/tests/spec/stubs/clixml/pipeline_state.xml.erb +0 -88
  61. data/tests/spec/stubs/responses/get_command_output_response.xml.erb +0 -13
  62. data/tests/spec/stubs/responses/get_command_output_response_not_done.xml.erb +0 -10
  63. data/tests/spec/stubs/responses/get_omi_command_output_response.xml.erb +0 -23
  64. data/tests/spec/stubs/responses/get_omi_command_output_response_not_done.xml.erb +0 -24
  65. data/tests/spec/stubs/responses/get_omi_config_response.xml +0 -45
  66. data/tests/spec/stubs/responses/get_omi_powershell_keepalive_response.xml.erb +0 -33
  67. data/tests/spec/stubs/responses/get_powershell_keepalive_response.xml.erb +0 -10
  68. data/tests/spec/stubs/responses/get_powershell_output_response.xml.erb +0 -12
  69. data/tests/spec/stubs/responses/get_powershell_output_response_not_done.xml.erb +0 -9
  70. data/tests/spec/stubs/responses/open_shell_omi.xml +0 -43
  71. data/tests/spec/stubs/responses/open_shell_v1.xml +0 -19
  72. data/tests/spec/stubs/responses/open_shell_v2.xml +0 -20
  73. data/tests/spec/stubs/responses/soap_fault_omi.xml +0 -31
  74. data/tests/spec/stubs/responses/soap_fault_v1.xml +0 -36
  75. data/tests/spec/stubs/responses/soap_fault_v2.xml +0 -42
  76. data/tests/spec/stubs/responses/wmi_error_v2.xml +0 -41
  77. data/tests/spec/wsmv/cleanup_command_spec.rb +0 -20
  78. data/tests/spec/wsmv/close_shell_spec.rb +0 -15
  79. data/tests/spec/wsmv/command_output_decoder_spec.rb +0 -35
  80. data/tests/spec/wsmv/command_output_spec.rb +0 -43
  81. data/tests/spec/wsmv/command_spec.rb +0 -17
  82. data/tests/spec/wsmv/configuration_spec.rb +0 -15
  83. data/tests/spec/wsmv/create_pipeline_spec.rb +0 -30
  84. data/tests/spec/wsmv/create_shell_spec.rb +0 -39
  85. data/tests/spec/wsmv/init_runspace_pool_spec.rb +0 -38
  86. data/tests/spec/wsmv/keep_alive_spec.rb +0 -21
  87. data/tests/spec/wsmv/receive_response_reader_spec.rb +0 -124
  88. data/tests/spec/wsmv/send_data_spec.rb +0 -30
  89. data/tests/spec/wsmv/wql_query_spec.rb +0 -11
  90. data/tests/spec/wsmv/write_stdin_spec.rb +0 -20
  91. data/winrm.gemspec +0 -46
@@ -1,46 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler/setup'
3
- require 'winrm'
4
- require 'json'
5
- require_relative '../matchers'
6
-
7
- # Unit test spec helper
8
- module SpecUnitHelper
9
- def stubbed_response(file)
10
- File.read("tests/spec/stubs/responses/#{file}")
11
- end
12
-
13
- def stubbed_clixml(file)
14
- File.read("tests/spec/stubs/clixml/#{file}")
15
- end
16
-
17
- def default_connection_opts
18
- {
19
- user: 'Administrator',
20
- password: 'password',
21
- endpoint: 'http://localhost:5985/wsman',
22
- max_envelope_size: 153600,
23
- session_id: '05A2622B-B842-4EB8-8A78-0225C8A993DF',
24
- operation_timeout: 60,
25
- locale: 'en-US'
26
- }
27
- end
28
- end
29
-
30
- # Strip leading whitespace from each line that is the same as the
31
- # amount of whitespace on the first line of the string.
32
- # Leaves _additional_ indentation on later lines intact.
33
- # and remove newlines.
34
- class String
35
- def unindent
36
- gsub(/^#{self[/\A[ \t]*/]}/, '').delete("\n")
37
- end
38
-
39
- def to_byte_string
40
- force_encoding(Encoding::ASCII_8BIT)
41
- end
42
- end
43
-
44
- RSpec.configure do |config|
45
- config.include(SpecUnitHelper)
46
- end
@@ -1,84 +0,0 @@
1
- <?xml version="1.0"?>
2
- <Obj RefId="0">
3
- <TN RefId="0">
4
- <T>System.Management.Automation.ErrorRecord</T>
5
- <T>System.Object</T>
6
- </TN>
7
- <ToString><%= error_message %></ToString>
8
- <MS>
9
- <B N="writeErrorStream">true</B>
10
- <Obj N="Exception" RefId="1">
11
- <TN RefId="1">
12
- <T>Microsoft.PowerShell.Commands.WriteErrorException</T>
13
- <T>Microsoft.PowerShell.CoreClr.Stubs.SystemException</T>
14
- <T>System.Exception</T>
15
- <T>System.Object</T>
16
- </TN>
17
- <ToString>Microsoft.PowerShell.Commands.WriteErrorException: <%= error_message %></ToString>
18
- <Props>
19
- <S N="Message"><%= error_message %></S>
20
- <Obj N="Data" RefId="2">
21
- <TN RefId="2">
22
- <T>System.Collections.ListDictionaryInternal</T>
23
- <T>System.Object</T>
24
- </TN>
25
- <DCT/>
26
- </Obj>
27
- <Nil N="InnerException"/>
28
- <Nil N="StackTrace"/>
29
- <Nil N="HelpLink"/>
30
- <Nil N="Source"/>
31
- <I32 N="HResult">-2146233088</I32>
32
- </Props>
33
- </Obj>
34
- <Nil N="TargetObject"/>
35
- <S N="FullyQualifiedErrorId"><%= error_id %></S>
36
- <Obj N="InvocationInfo" RefId="3">
37
- <TN RefId="3">
38
- <T>System.Management.Automation.InvocationInfo</T>
39
- <T>System.Object</T>
40
- </TN>
41
- <ToString>System.Management.Automation.InvocationInfo</ToString>
42
- <Props>
43
- <Nil N="MyCommand"/>
44
- <Obj N="BoundParameters" RefId="4">
45
- <TN RefId="4">
46
- <T>System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]</T>
47
- <T>System.Object</T>
48
- </TN>
49
- <DCT/>
50
- </Obj>
51
- <Obj N="UnboundArguments" RefId="5">
52
- <TN RefId="5">
53
- <T>System.Collections.Generic.List`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]</T>
54
- <T>System.Object</T>
55
- </TN>
56
- <LST/>
57
- </Obj>
58
- <I32 N="ScriptLineNumber">1</I32>
59
- <I32 N="OffsetInLine">1</I32>
60
- <I64 N="HistoryId">1</I64>
61
- <S N="ScriptName"/>
62
- <S N="Line">write-error '<%= error_message %>'</S>
63
- <S N="PositionMessage">At line:1 char:1_x000D__x000A_+ write-error '<%= error_message %>'_x000D__x000A_+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</S>
64
- <S N="PSScriptRoot"><%= script_root %></S>
65
- <Nil N="PSCommandPath"/>
66
- <S N="InvocationName"/>
67
- <I32 N="PipelineLength">0</I32>
68
- <I32 N="PipelinePosition">0</I32>
69
- <B N="ExpectingInput">false</B>
70
- <S N="CommandOrigin">Internal</S>
71
- <Nil N="DisplayScriptPosition"/>
72
- </Props>
73
- </Obj>
74
- <I32 N="ErrorCategory_Category">0</I32>
75
- <S N="ErrorCategory_Activity">Write-Error</S>
76
- <S N="ErrorCategory_Reason">WriteErrorException</S>
77
- <S N="ErrorCategory_TargetName"/>
78
- <S N="ErrorCategory_TargetType"/>
79
- <S N="ErrorCategory_Message"><%= category_message %></S>
80
- <B N="SerializeExtendedInfo">false</B>
81
- <S N="ErrorDetails_ScriptStackTrace"><%= stack_trace %></S>
82
- <Nil N="PSMessageDetails"/>
83
- </MS>
84
- </Obj>
@@ -1,88 +0,0 @@
1
- <?xml version="1.0"?>
2
- <Obj RefId="0">
3
- <MS>
4
- <I32 N="PipelineState"><%= pipeline_state %></I32>
5
- <Obj N="ExceptionAsErrorRecord" RefId="1">
6
- <TN RefId="0">
7
- <T>System.Management.Automation.ErrorRecord</T>
8
- <T>System.Object</T>
9
- </TN>
10
- <ToString><%= error_message %></ToString>
11
- <MS>
12
- <Obj N="Exception" RefId="2">
13
- <TN RefId="1">
14
- <T>System.Management.Automation.RuntimeException</T>
15
- <T>Microsoft.PowerShell.CoreClr.Stubs.SystemException</T>
16
- <T>System.Exception</T>
17
- <T>System.Object</T>
18
- </TN>
19
- <ToString>System.Management.Automation.RuntimeException: <%= error_message %></ToString>
20
- <Props>
21
- <S N="ErrorRecord"><%= error_message %></S>
22
- <B N="WasThrownFromThrowStatement">true</B>
23
- <S N="Message"><%= error_message %></S>
24
- <Obj N="Data" RefId="3">
25
- <TN RefId="2">
26
- <T>System.Collections.ListDictionaryInternal</T>
27
- <T>System.Object</T>
28
- </TN>
29
- <DCT />
30
- </Obj>
31
- <Nil N="InnerException" />
32
- <Nil N="StackTrace" />
33
- <Nil N="HelpLink" />
34
- <Nil N="Source" />
35
- <I32 N="HResult">-2146233088</I32>
36
- </Props>
37
- </Obj>
38
- <S N="TargetObject"><%= error_message %></S>
39
- <S N="FullyQualifiedErrorId"><%= error_id %></S>
40
- <Obj N="InvocationInfo" RefId="4">
41
- <TN RefId="3">
42
- <T>System.Management.Automation.InvocationInfo</T>
43
- <T>System.Object</T>
44
- </TN>
45
- <ToString>System.Management.Automation.InvocationInfo</ToString>
46
- <Props>
47
- <Nil N="MyCommand" />
48
- <Obj N="BoundParameters" RefId="5">
49
- <TN RefId="4">
50
- <T>System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]</T>
51
- <T>System.Object</T>
52
- </TN>
53
- <DCT />
54
- </Obj>
55
- <Obj N="UnboundArguments" RefId="6">
56
- <TN RefId="5">
57
- <T>System.Collections.Generic.List`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]</T>
58
- <T>System.Object</T>
59
- </TN>
60
- <LST />
61
- </Obj>
62
- <I32 N="ScriptLineNumber">1</I32>
63
- <I32 N="OffsetInLine">1</I32>
64
- <I64 N="HistoryId">-1</I64>
65
- <S N="ScriptName"></S>
66
- <S N="Line">throw '<%= error_message %>'</S>
67
- <S N="PositionMessage">At line:1 char:1_x000D__x000A_+ throw '<%= error_message %>'_x000D__x000A_+ ~~~~~~~~~~~~~~~~~~~~~~~~</S>
68
- <S N="PSScriptRoot"></S>
69
- <Nil N="PSCommandPath" />
70
- <S N="InvocationName"></S>
71
- <I32 N="PipelineLength">0</I32>
72
- <I32 N="PipelinePosition">0</I32>
73
- <B N="ExpectingInput">false</B>
74
- <S N="CommandOrigin">Internal</S>
75
- <Nil N="DisplayScriptPosition" />
76
- </Props>
77
- </Obj>
78
- <I32 N="ErrorCategory_Category">14</I32>
79
- <S N="ErrorCategory_Activity"></S>
80
- <S N="ErrorCategory_Reason">RuntimeException</S>
81
- <S N="ErrorCategory_TargetName"><%= error_message %></S><S N="ErrorCategory_TargetType">String</S>
82
- <S N="ErrorCategory_Message"><%= category_message %></S>
83
- <B N="SerializeExtendedInfo">false</B>
84
- <S N="ErrorDetails_ScriptStackTrace">at &lt;ScriptBlock&gt;, &lt;No file&gt;: line 1</S>
85
- </MS>
86
- </Obj>
87
- </MS>
88
- </Obj>
@@ -1,13 +0,0 @@
1
- <s:Envelope xmlns:a='http://schemas.xmlsoap.org/ws/2004/08/addressing' xml:lang='en-US' xmlns:p='http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd' xmlns:rsp='http://schemas.microsoft.com/wbem/wsman/1/windows/shell' xmlns:s='http://www.w3.org/2003/05/soap-envelope' xmlns:w='http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'>
2
- <s:Header>
3
- </s:Header>
4
- <s:Body>
5
- <rsp:ReceiveResponse>
6
- <rsp:Stream CommandId='<%= command_id %>' Name='stdout'><%= test_data_stdout %></rsp:Stream>
7
- <rsp:Stream CommandId='<%= command_id %>' End='true' Name='stderr'><%= test_data_stderr %></rsp:Stream>
8
- <rsp:CommandState CommandId='<%= command_id %>' State='http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done'>
9
- <rsp:ExitCode>0</rsp:ExitCode>
10
- </rsp:CommandState>
11
- </rsp:ReceiveResponse>
12
- </s:Body>
13
- </s:Envelope>
@@ -1,10 +0,0 @@
1
- <s:Envelope xmlns:a='http://schemas.xmlsoap.org/ws/2004/08/addressing' xml:lang='en-US' xmlns:p='http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd' xmlns:rsp='http://schemas.microsoft.com/wbem/wsman/1/windows/shell' xmlns:s='http://www.w3.org/2003/05/soap-envelope' xmlns:w='http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'>
2
- <s:Header>
3
- </s:Header>
4
- <s:Body>
5
- <rsp:ReceiveResponse>
6
- <rsp:Stream CommandId='<%= command_id %>' Name='stdout'><%= test_data_stdout %></rsp:Stream>
7
- <rsp:Stream CommandId='<%= command_id %>' End='true' Name='stderr'><%= test_data_stderr %></rsp:Stream>
8
- </rsp:ReceiveResponse>
9
- </s:Body>
10
- </s:Envelope>
@@ -1,23 +0,0 @@
1
- <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://www.w3.org/2003/05/soap-envelope'
2
- xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/addressing'
3
- xmlns:wsen='http://schemas.xmlsoap.org/ws/2004/09/enumeration'
4
- xmlns:e='http://schemas.xmlsoap.org/ws/2004/08/eventing'
5
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
6
- xmlns:wsmb='http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd'
7
- xmlns:wsman='http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'
8
- xmlns:wxf='http://schemas.xmlsoap.org/ws/2004/09/transfer'
9
- xmlns:cim='http://schemas.dmtf.org/wbem/wscim/1/common'
10
- xmlns:msftwinrm='http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd'
11
- xmlns:wsmid='http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd'>
12
- <SOAP-ENV:Header>
13
- <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
14
- <wsa:Action>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/ReceiveResponse</wsa:Action>
15
- <wsa:MessageID>uuid:5825BEA8-76AB-0005-0000-000000640000</wsa:MessageID>
16
- <wsa:RelatesTo>uuid:E22E9766-0817-4056-99F8-EB5997BC2138</wsa:RelatesTo>
17
- </SOAP-ENV:Header>
18
- <SOAP-ENV:Body>
19
- <p:ReceiveResponse xmlns:p='http://schemas.microsoft.com/wbem/wsman/1/windows/shell'>
20
- <p:CommandState State='http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done'/>
21
- </p:ReceiveResponse>
22
- </SOAP-ENV:Body>
23
- </SOAP-ENV:Envelope>
@@ -1,24 +0,0 @@
1
- <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://www.w3.org/2003/05/soap-envelope'
2
- xmlns:wsa='http://schemas.xmlsoap.org/ws/2004/08/addressing'
3
- xmlns:wsen='http://schemas.xmlsoap.org/ws/2004/09/enumeration'
4
- xmlns:e='http://schemas.xmlsoap.org/ws/2004/08/eventing'
5
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
6
- xmlns:wsmb='http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd'
7
- xmlns:wsman='http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'
8
- xmlns:wxf='http://schemas.xmlsoap.org/ws/2004/09/transfer'
9
- xmlns:cim='http://schemas.dmtf.org/wbem/wscim/1/common'
10
- xmlns:msftwinrm='http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd'
11
- xmlns:wsmid='http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd'>
12
- <SOAP-ENV:Header>
13
- <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
14
- <wsa:Action>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/ReceiveResponse</wsa:Action>
15
- <wsa:MessageID>uuid:5825BEA8-76AB-0005-0000-000000640000</wsa:MessageID>
16
- <wsa:RelatesTo>uuid:E22E9766-0817-4056-99F8-EB5997BC2138</wsa:RelatesTo>
17
- </SOAP-ENV:Header>
18
- <SOAP-ENV:Body>
19
- <p:ReceiveResponse xmlns:p='http://schemas.microsoft.com/wbem/wsman/1/windows/shell'>
20
- <p:Stream Name='stdout'><%= test_data_stdout %></p:Stream>
21
- <p:CommandState State='http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Running'/>
22
- </p:ReceiveResponse>
23
- </SOAP-ENV:Body>
24
- </SOAP-ENV:Envelope>
@@ -1,45 +0,0 @@
1
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
2
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
3
- xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"
4
- xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"
5
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
- xmlns:wsmb="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd"
7
- xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"
8
- xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer"
9
- xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common"
10
- xmlns:msftwinrm="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"
11
- xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd">
12
- <SOAP-ENV:Header>
13
- <wsa:To>
14
- http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
15
- </wsa:To>
16
- <wsa:Action>
17
- http://schemas.dmtf.org/wbem/wsman/1/wsman/fault
18
- </wsa:Action>
19
- <wsa:MessageID>
20
- uuid:5825BEA8-76AB-0005-0000-000001A80000
21
- </wsa:MessageID>
22
- <wsa:RelatesTo>
23
- uuid:01022086-C0D6-45DA-85F2-21FA2B476FCA
24
- </wsa:RelatesTo>
25
- </SOAP-ENV:Header>
26
- <SOAP-ENV:Body>
27
- <SOAP-ENV:Fault>
28
- <SOAP-ENV:Code>
29
- <SOAP-ENV:Value>
30
- SOAP-ENV:Receiver
31
- </SOAP-ENV:Value>
32
- <SOAP-ENV:Subcode>
33
- <SOAP-ENV:Value>
34
- wsman:InternalError
35
- </SOAP-ENV:Value>
36
- </SOAP-ENV:Subcode>
37
- </SOAP-ENV:Code>
38
- <SOAP-ENV:Reason>
39
- <SOAP-ENV:Text xml:lang="en-US">
40
- get-instance: instance name parameter is missing
41
- </SOAP-ENV:Text>
42
- </SOAP-ENV:Reason>
43
- </SOAP-ENV:Fault>
44
- </SOAP-ENV:Body>
45
- </SOAP-ENV:Envelope>
@@ -1,33 +0,0 @@
1
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
2
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
3
- xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"
4
- xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"
5
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
- xmlns:wsmb="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd"
7
- xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"
8
- xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer"
9
- xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common"
10
- xmlns:msftwinrm="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"
11
- xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd">
12
- <SOAP-ENV:Header>
13
- <wsa:To>
14
- http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
15
- </wsa:To>
16
- <wsa:Action>
17
- http://schemas.microsoft.com/wbem/wsman/1/windows/shell/ReceiveResponse
18
- </wsa:Action>
19
- <wsa:MessageID>
20
- uuid:5825BEA8-76AB-0005-0000-000000510000
21
- </wsa:MessageID>
22
- <wsa:RelatesTo>
23
- uuid:28C42606-83D7-4948-A06A-47B75E7575D3
24
- </wsa:RelatesTo>
25
- </SOAP-ENV:Header>
26
- <SOAP-ENV:Body>
27
- <p:ReceiveResponse xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/windows/shell">
28
- <p:Stream Name="stdout"><%= test_data_stdout2 %></p:Stream>
29
- <p:CommandState State="http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Running">
30
- </p:CommandState>
31
- </p:ReceiveResponse>
32
- </SOAP-ENV:Body>
33
- </SOAP-ENV:Envelope>
@@ -1,10 +0,0 @@
1
- <s:Envelope xmlns:a='http://schemas.xmlsoap.org/ws/2004/08/addressing' xml:lang='en-US' xmlns:p='http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd' xmlns:rsp='http://schemas.microsoft.com/wbem/wsman/1/windows/shell' xmlns:s='http://www.w3.org/2003/05/soap-envelope' xmlns:w='http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'>
2
- <s:Header>
3
- </s:Header>
4
- <s:Body>
5
- <rsp:ReceiveResponse>
6
- <rsp:Stream Name='stdout'><%= test_data_stdout1 %></rsp:Stream>
7
- <rsp:Stream Name='stdout'><%= test_data_stdout2 %></rsp:Stream>
8
- </rsp:ReceiveResponse>
9
- </s:Body>
10
- </s:Envelope>
@@ -1,12 +0,0 @@
1
- <s:Envelope xmlns:a='http://schemas.xmlsoap.org/ws/2004/08/addressing' xml:lang='en-US' xmlns:p='http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd' xmlns:rsp='http://schemas.microsoft.com/wbem/wsman/1/windows/shell' xmlns:s='http://www.w3.org/2003/05/soap-envelope' xmlns:w='http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'>
2
- <s:Header>
3
- </s:Header>
4
- <s:Body>
5
- <rsp:ReceiveResponse>
6
- <rsp:Stream CommandId='<%= command_id %>' Name='stdout'><%= test_data_stdout %></rsp:Stream>
7
- <rsp:CommandState CommandId='<%= command_id %>' State='http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done'>
8
- <rsp:ExitCode>0</rsp:ExitCode>
9
- </rsp:CommandState>
10
- </rsp:ReceiveResponse>
11
- </s:Body>
12
- </s:Envelope>
@@ -1,9 +0,0 @@
1
- <s:Envelope xmlns:a='http://schemas.xmlsoap.org/ws/2004/08/addressing' xml:lang='en-US' xmlns:p='http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd' xmlns:rsp='http://schemas.microsoft.com/wbem/wsman/1/windows/shell' xmlns:s='http://www.w3.org/2003/05/soap-envelope' xmlns:w='http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'>
2
- <s:Header>
3
- </s:Header>
4
- <s:Body>
5
- <rsp:ReceiveResponse>
6
- <rsp:Stream CommandId='<%= command_id %>' Name='stdout'><%= test_data_stdout %></rsp:Stream>
7
- </rsp:ReceiveResponse>
8
- </s:Body>
9
- </s:Envelope>
@@ -1,43 +0,0 @@
1
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
2
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
3
- xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration"
4
- xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing"
5
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
- xmlns:wsmb="http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd"
7
- xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"
8
- xmlns:wxf="http://schemas.xmlsoap.org/ws/2004/09/transfer"
9
- xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common"
10
- xmlns:msftwinrm="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"
11
- xmlns:wsmid="http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd">
12
- <SOAP-ENV:Header>
13
- <wsa:To>
14
- http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
15
- </wsa:To>
16
- <wsa:Action>
17
- http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse
18
- </wsa:Action>
19
- <wsa:MessageID>
20
- uuid:5825BEA8-76AB-0005-0000-000001A90000
21
- </wsa:MessageID>
22
- <wsa:RelatesTo>
23
- uuid:C872AD16-50F1-4CD3-908B-35AED7E485B7
24
- </wsa:RelatesTo>
25
- </SOAP-ENV:Header>
26
- <SOAP-ENV:Body>
27
- <wxf:ResourceCreated>
28
- <wsa:Address>
29
- http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
30
- </wsa:Address>
31
- <wsa:ReferenceParameters>
32
- <wsman:ResourceURI>
33
- http://schemas.microsoft.com/powershell/Microsoft.PowerShell
34
- </wsman:ResourceURI>
35
- <wsman:SelectorSet>
36
- <wsman:Selector Name="ShellId">
37
- 74142DC5-E14D-4FCC-86ED-63DA3EE8407E
38
- </wsman:Selector>
39
- </wsman:SelectorSet>
40
- </wsa:ReferenceParameters>
41
- </wxf:ResourceCreated>
42
- </SOAP-ENV:Body>
43
- </SOAP-ENV:Envelope>