summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorcarolann.graves <carolann.graves>2006-09-20 21:16:06 +0000
committercarolann.graves <carolann.graves>2006-09-20 21:16:06 +0000
commit385500194e6eaceebab22982ced139ea8fc6d6ce (patch)
treec3302afa82d70cca9f45341e6295b089bee5ab4d /test
parent4a211e55cbe73112145920ba4c3b668099052b70 (diff)
downloadtog-pegasus-385500194e6eaceebab22982ced139ea8fc6d6ce.zip
tog-pegasus-385500194e6eaceebab22982ced139ea8fc6d6ce.tar.gz
tog-pegasus-385500194e6eaceebab22982ced139ea8fc6d6ce.tar.xz
BUG#: 5581
TITLE: Add wbemexec tests to improve ExportServer/CIMExportRequestDecoder.cpp code coverage DESCRIPTION: Added wbemexec tests.
Diffstat (limited to 'test')
-rw-r--r--test/wetest/static/ExportErrorXml/BadCimVersion01.xml27
-rw-r--r--test/wetest/static/ExportErrorXml/BadCimVersion01rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadDtdVersion01.xml27
-rw-r--r--test/wetest/static/ExportErrorXml/BadDtdVersion01rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadDtdVersion02.xml27
-rw-r--r--test/wetest/static/ExportErrorXml/BadDtdVersion02rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadDtdVersion03.xml27
-rw-r--r--test/wetest/static/ExportErrorXml/BadDtdVersion03rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadDtdVersion04.xml27
-rw-r--r--test/wetest/static/ExportErrorXml/BadDtdVersion04rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion01.xml28
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion01rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion02.xml28
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion02rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion03.xml28
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion03rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion04.xml28
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion04rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion05.xml28
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion05rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion06.xml27
-rw-r--r--test/wetest/static/ExportErrorXml/BadProtocolVersion06rspgood.xml3
-rw-r--r--test/wetest/static/ExportErrorXml/Makefile50
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMBadContentType01.xml27
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMBadContentType01rspgood.xml4
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMMissingContentType01.xml26
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMMissingContentType01rspgood.xml4
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMMissingHost01.xml26
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMMissingHost01rspgood.xml3
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMTextContentType01.xml27
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMTextContentType01rspgood.xml10
-rw-r--r--test/wetest/static/ExportMessageHeaders/Makefile6
-rw-r--r--test/wetest/static/Makefile3
33 files changed, 519 insertions, 2 deletions
diff --git a/test/wetest/static/ExportErrorXml/BadCimVersion01.xml b/test/wetest/static/ExportErrorXml/BadCimVersion01.xml
new file mode 100644
index 0000000..3c50971
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadCimVersion01.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="3.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadCimVersion01rspgood.xml b/test/wetest/static/ExportErrorXml/BadCimVersion01rspgood.xml
new file mode 100644
index 0000000..c13b54a
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadCimVersion01rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-cim-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadDtdVersion01.xml b/test/wetest/static/ExportErrorXml/BadDtdVersion01.xml
new file mode 100644
index 0000000..42e3eca
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadDtdVersion01.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="3.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadDtdVersion01rspgood.xml b/test/wetest/static/ExportErrorXml/BadDtdVersion01rspgood.xml
new file mode 100644
index 0000000..16b95ca
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadDtdVersion01rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-dtd-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadDtdVersion02.xml b/test/wetest/static/ExportErrorXml/BadDtdVersion02.xml
new file mode 100644
index 0000000..8066e26
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadDtdVersion02.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2,0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadDtdVersion02rspgood.xml b/test/wetest/static/ExportErrorXml/BadDtdVersion02rspgood.xml
new file mode 100644
index 0000000..16b95ca
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadDtdVersion02rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-dtd-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadDtdVersion03.xml b/test/wetest/static/ExportErrorXml/BadDtdVersion03.xml
new file mode 100644
index 0000000..fa61979
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadDtdVersion03.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadDtdVersion03rspgood.xml b/test/wetest/static/ExportErrorXml/BadDtdVersion03rspgood.xml
new file mode 100644
index 0000000..16b95ca
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadDtdVersion03rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-dtd-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadDtdVersion04.xml b/test/wetest/static/ExportErrorXml/BadDtdVersion04.xml
new file mode 100644
index 0000000..0b50f77
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadDtdVersion04.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.a">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadDtdVersion04rspgood.xml b/test/wetest/static/ExportErrorXml/BadDtdVersion04rspgood.xml
new file mode 100644
index 0000000..16b95ca
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadDtdVersion04rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-dtd-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion01.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion01.xml
new file mode 100644
index 0000000..0e37a2a
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion01.xml
@@ -0,0 +1,28 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMProtocolVersion: 1.
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion01rspgood.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion01rspgood.xml
new file mode 100644
index 0000000..366213d
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion01rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-protocol-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion02.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion02.xml
new file mode 100644
index 0000000..3c0e960
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion02.xml
@@ -0,0 +1,28 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMProtocolVersion: 2.0
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="2.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion02rspgood.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion02rspgood.xml
new file mode 100644
index 0000000..366213d
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion02rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-protocol-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion03.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion03.xml
new file mode 100644
index 0000000..111619c
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion03.xml
@@ -0,0 +1,28 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMProtocolVersion: 1,0
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1,0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion03rspgood.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion03rspgood.xml
new file mode 100644
index 0000000..366213d
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion03rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-protocol-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion04.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion04.xml
new file mode 100644
index 0000000..18f64d1
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion04.xml
@@ -0,0 +1,28 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMProtocolVersion: 1.a
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.a">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion04rspgood.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion04rspgood.xml
new file mode 100644
index 0000000..366213d
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion04rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-protocol-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion05.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion05.xml
new file mode 100644
index 0000000..3cbf5cc
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion05.xml
@@ -0,0 +1,28 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMProtocolVersion: 1.+
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.+">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion05rspgood.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion05rspgood.xml
new file mode 100644
index 0000000..366213d
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion05rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: unsupported-protocol-version
+
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion06.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion06.xml
new file mode 100644
index 0000000..ff4af37
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion06.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="2.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportErrorXml/BadProtocolVersion06rspgood.xml b/test/wetest/static/ExportErrorXml/BadProtocolVersion06rspgood.xml
new file mode 100644
index 0000000..a25101b
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/BadProtocolVersion06rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 400 Bad Request
+CIMError: header-mismatch
+
diff --git a/test/wetest/static/ExportErrorXml/Makefile b/test/wetest/static/ExportErrorXml/Makefile
new file mode 100644
index 0000000..a362c17
--- /dev/null
+++ b/test/wetest/static/ExportErrorXml/Makefile
@@ -0,0 +1,50 @@
+#//%2006////////////////////////////////////////////////////////////////////////
+#//
+#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
+#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
+#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
+#// IBM Corp.; EMC Corporation, The Open Group.
+#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
+#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
+#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+#// EMC Corporation; VERITAS Software Corporation; The Open Group.
+#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
+#// EMC Corporation; Symantec Corporation; The Open Group.
+#//
+#// Permission is hereby granted, free of charge, to any person obtaining a copy
+#// of this software and associated documentation files (the "Software"), to
+#// deal in the Software without restriction, including without limitation the
+#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+#// sell copies of the Software, and to permit persons to whom the Software is
+#// furnished to do so, subject to the following conditions:
+#//
+#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
+#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
+#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
+#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#//
+#//==============================================================================
+
+ROOT = ../../../..
+include $(ROOT)/mak/config.mak
+include $(ROOT)/test/config.mak
+
+XMLSCRIPTS = \
+ BadCimVersion01 \
+ BadDtdVersion01 \
+ BadDtdVersion02 \
+ BadDtdVersion03 \
+ BadDtdVersion04 \
+ BadProtocolVersion01 \
+ BadProtocolVersion02 \
+ BadProtocolVersion03 \
+ BadProtocolVersion04 \
+ BadProtocolVersion05 \
+ BadProtocolVersion06
+
+
+include $(ROOT)/test/configend.mak
diff --git a/test/wetest/static/ExportMessageHeaders/EMBadContentType01.xml b/test/wetest/static/ExportMessageHeaders/EMBadContentType01.xml
new file mode 100644
index 0000000..71c7aa4
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMBadContentType01.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: bad
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportMessageHeaders/EMBadContentType01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMBadContentType01rspgood.xml
new file mode 100644
index 0000000..9bb09dd
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMBadContentType01rspgood.xml
@@ -0,0 +1,4 @@
+HTTP/1.1 400 Bad Request
+CIMError: header-mismatch
+PGErrorDetail: CIMContentType%20value%20syntax%20error.
+
diff --git a/test/wetest/static/ExportMessageHeaders/EMMissingContentType01.xml b/test/wetest/static/ExportMessageHeaders/EMMissingContentType01.xml
new file mode 100644
index 0000000..0721650
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMMissingContentType01.xml
@@ -0,0 +1,26 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportMessageHeaders/EMMissingContentType01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMMissingContentType01rspgood.xml
new file mode 100644
index 0000000..9bb09dd
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMMissingContentType01rspgood.xml
@@ -0,0 +1,4 @@
+HTTP/1.1 400 Bad Request
+CIMError: header-mismatch
+PGErrorDetail: CIMContentType%20value%20syntax%20error.
+
diff --git a/test/wetest/static/ExportMessageHeaders/EMMissingHost01.xml b/test/wetest/static/ExportMessageHeaders/EMMissingHost01.xml
new file mode 100644
index 0000000..766b41d
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMMissingHost01.xml
@@ -0,0 +1,26 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+Content-Type: application/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportMessageHeaders/EMMissingHost01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMMissingHost01rspgood.xml
new file mode 100644
index 0000000..9e9f3f1
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMMissingHost01rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 400 Bad Request
+PGErrorDetail: HTTP%20request%20message%20lacks%20a%20Host%20header%20field.
+
diff --git a/test/wetest/static/ExportMessageHeaders/EMTextContentType01.xml b/test/wetest/static/ExportMessageHeaders/EMTextContentType01.xml
new file mode 100644
index 0000000..478cd0b
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMTextContentType01.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.1
+HOST: localhost:5988
+Content-Type: text/xml; charset="utf-8"
+content-length: 0000000485
+TE: chunked, trailers
+CIMExport: MethodRequest
+CIMExportMethod: ExportIndication
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndication">
+<EXPPARAMVALUE NAME="NewIndication">
+<INSTANCE CLASSNAME="My_IndicationClass" >
+<PROPERTY NAME="DeviceName" TYPE="string">
+<VALUE>Disk</VALUE>
+</PROPERTY>
+<PROPERTY NAME="DeviceId" TYPE="uint32">
+<VALUE>1</VALUE>
+</PROPERTY>
+</INSTANCE>
+</EXPPARAMVALUE>
+</EXPMETHODCALL>
+</SIMPLEEXPREQ>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportMessageHeaders/EMTextContentType01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMTextContentType01rspgood.xml
new file mode 100644
index 0000000..d19c488
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMTextContentType01rspgood.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPRSP>
+<EXPMETHODRESPONSE NAME="ExportIndication">
+<ERROR CODE="7" DESCRIPTION="CIM_ERR_NOT_SUPPORTED: The requested operation is not supported"/>
+</EXPMETHODRESPONSE>
+</SIMPLEEXPRSP>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportMessageHeaders/Makefile b/test/wetest/static/ExportMessageHeaders/Makefile
index 9758c76..81455b8 100644
--- a/test/wetest/static/ExportMessageHeaders/Makefile
+++ b/test/wetest/static/ExportMessageHeaders/Makefile
@@ -38,6 +38,10 @@ XMLSCRIPTS = \
EMUnsupportedHTTPMethod01 \
EMIncompatibleHTTPVersion01 \
EMMissingMethodRequest01 \
- EMIncorrectCIMExportBatchRequest01
+ EMIncorrectCIMExportBatchRequest01 \
+ EMBadContentType01 \
+ EMMissingContentType01 \
+ EMMissingHost01 \
+ EMTextContentType01
include $(ROOT)/test/configend.mak
diff --git a/test/wetest/static/Makefile b/test/wetest/static/Makefile
index 7737a79..2261d16 100644
--- a/test/wetest/static/Makefile
+++ b/test/wetest/static/Makefile
@@ -44,7 +44,8 @@ DIRS = \
ModifyInstance\
DeleteInstance\
Property\
- ExportMessageHeaders
+ ExportMessageHeaders \
+ ExportErrorXml
# These tests are not re-runnable
# ModifyClass\