summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorkumpf <kumpf>2006-04-18 18:28:26 +0000
committerkumpf <kumpf>2006-04-18 18:28:26 +0000
commit5f0b32b77f6c6828a258a1eccff49efd05454a41 (patch)
tree2553adf16404054ae6844b7919ea825b30c8ebe7 /test
parentcbbee41a9fc570c47f7d61bbabf7457985700e3c (diff)
downloadtog-pegasus-5f0b32b77f6c6828a258a1eccff49efd05454a41.zip
tog-pegasus-5f0b32b77f6c6828a258a1eccff49efd05454a41.tar.gz
tog-pegasus-5f0b32b77f6c6828a258a1eccff49efd05454a41.tar.xz
BUG#: 4967
TITLE: DuplicateContentLengthTag01 test fails when not using local connection DESCRIPTION: Update wbemexec to do less manipulation of the request message it sends, to improve consistency of behavior for local and remote connections. Update the affected test cases.
Diffstat (limited to 'test')
-rw-r--r--test/wetest/static/Headers/BadCIMOperationValue01.xml2
-rw-r--r--test/wetest/static/Headers/BadContentLengthValue01.xml31
-rw-r--r--test/wetest/static/Headers/BadContentLengthValue01rspgood.xml3
-rw-r--r--test/wetest/static/Headers/DuplicateContentLengthTag01rspgood.xml2
-rw-r--r--test/wetest/static/Headers/DuplicateTransferEncodingTag01rspgood.xml4
-rw-r--r--test/wetest/static/Headers/Makefile1
-rw-r--r--test/wetest/static/Headers/MissingCIMBatchTag01.xml2
7 files changed, 40 insertions, 5 deletions
diff --git a/test/wetest/static/Headers/BadCIMOperationValue01.xml b/test/wetest/static/Headers/BadCIMOperationValue01.xml
index 094238e..77e263a 100644
--- a/test/wetest/static/Headers/BadCIMOperationValue01.xml
+++ b/test/wetest/static/Headers/BadCIMOperationValue01.xml
@@ -25,7 +25,7 @@ Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23
<PARAMVALUE NAME="IterationIdentifier" PARAMTYPE="string"><VALUE>123</VALUE></PARAMVALUE>
<PARAMVALUE NAME="MoveAbsolute" PARAMTYPE="boolean"><VALUE>TRUE</VALUE></PARAMVALUE>
<PARAMVALUE NAME="RecordNumber" PARAMTYPE="sint64"><VALUE>444</VALUE></PARAMVALUE>
- </METHODCALL>
+ </METHODCALL>
</SIMPLEREQ>
</MESSAGE>
</CIM>
diff --git a/test/wetest/static/Headers/BadContentLengthValue01.xml b/test/wetest/static/Headers/BadContentLengthValue01.xml
new file mode 100644
index 0000000..c10d3e1
--- /dev/null
+++ b/test/wetest/static/Headers/BadContentLengthValue01.xml
@@ -0,0 +1,31 @@
+M-POST /cimom HTTP/1.1
+Host: testsystem
+Content-Type: application/xml; charset="utf-8"
+Content-Length: 845a
+Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=23
+23-CIMProtocolVersion: 1.0
+23-CIMOperation: MethodCall
+23-CIMMethod: PositionAtRecord
+23-CIMObject: root/cimv2:CIM_MessageLog.CreationClassName="CIM_MessageLog"
+
+<?xml version="1.0" encoding="utf-8" ?>
+ <CIM CIMVERSION="2.0" DTDVERSION="2.0">
+ <MESSAGE ID="87872" PROTOCOLVERSION="1.0">
+ <SIMPLEREQ>
+ <METHODCALL NAME="PositionAtRecord">
+ <LOCALINSTANCEPATH>
+ <LOCALNAMESPACEPATH>
+ <NAMESPACE NAME="root"/>
+ <NAMESPACE NAME="cimv2"/>
+ </LOCALNAMESPACEPATH>
+ <INSTANCENAME CLASSNAME="CIM_MessageLog">
+ <KEYBINDING NAME="CreationClassName"><KEYVALUE>CIM_MessageLog</KEYVALUE></KEYBINDING>
+ </INSTANCENAME>
+ </LOCALINSTANCEPATH>
+ <PARAMVALUE NAME="IterationIdentifier" PARAMTYPE="string"><VALUE>123</VALUE></PARAMVALUE>
+ <PARAMVALUE NAME="MoveAbsolute" PARAMTYPE="boolean"><VALUE>TRUE</VALUE></PARAMVALUE>
+ <PARAMVALUE NAME="RecordNumber" PARAMTYPE="sint64"><VALUE>444</VALUE></PARAMVALUE>
+ </METHODCALL>
+ </SIMPLEREQ>
+ </MESSAGE>
+ </CIM>
diff --git a/test/wetest/static/Headers/BadContentLengthValue01rspgood.xml b/test/wetest/static/Headers/BadContentLengthValue01rspgood.xml
new file mode 100644
index 0000000..84c6af6
--- /dev/null
+++ b/test/wetest/static/Headers/BadContentLengthValue01rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 400 Bad Request
+PGErrorDetail: Invalid%20Content-Length%20header%20detected
+
diff --git a/test/wetest/static/Headers/DuplicateContentLengthTag01rspgood.xml b/test/wetest/static/Headers/DuplicateContentLengthTag01rspgood.xml
index 84c6af6..9ca6b36 100644
--- a/test/wetest/static/Headers/DuplicateContentLengthTag01rspgood.xml
+++ b/test/wetest/static/Headers/DuplicateContentLengthTag01rspgood.xml
@@ -1,3 +1,3 @@
HTTP/1.1 400 Bad Request
-PGErrorDetail: Invalid%20Content-Length%20header%20detected
+PGErrorDetail: Duplicate%20Content-Length%20header%20detected
diff --git a/test/wetest/static/Headers/DuplicateTransferEncodingTag01rspgood.xml b/test/wetest/static/Headers/DuplicateTransferEncodingTag01rspgood.xml
index 24dd3c4..e1cadba 100644
--- a/test/wetest/static/Headers/DuplicateTransferEncodingTag01rspgood.xml
+++ b/test/wetest/static/Headers/DuplicateTransferEncodingTag01rspgood.xml
@@ -1,3 +1,3 @@
-HTTP/1.1 501 Not Implemented
-PGErrorDetail: unimplemented%20transfer-encoding%20value
+HTTP/1.1 400 Bad Request
+PGErrorDetail: Duplicate%20Transfer-Encoding%20header%20detected
diff --git a/test/wetest/static/Headers/Makefile b/test/wetest/static/Headers/Makefile
index 4809928..8a5a146 100644
--- a/test/wetest/static/Headers/Makefile
+++ b/test/wetest/static/Headers/Makefile
@@ -42,6 +42,7 @@ XMLSCRIPTS = \
BadCIMObjectValue04 \
BadCIMOperationValue01 \
BadCIMProtocolVersionValue01 \
+ BadContentLengthValue01 \
BadTransferEncodingValue01 \
DuplicateCIMOperationTag01 \
DuplicateContentLengthTag01 \
diff --git a/test/wetest/static/Headers/MissingCIMBatchTag01.xml b/test/wetest/static/Headers/MissingCIMBatchTag01.xml
index e928464..0cb6954 100644
--- a/test/wetest/static/Headers/MissingCIMBatchTag01.xml
+++ b/test/wetest/static/Headers/MissingCIMBatchTag01.xml
@@ -1,7 +1,7 @@
M-POST /cimom HTTP/1.1
Host: testsystem
Content-Type: application/xml; charset="utf-8"
-Content-Length: 449
+Content-Length: 488
Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=35
35-CIMProtocolVersion: 1.0
35-CIMOperation: MethodCall