summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authordenise.eckstein <denise.eckstein>2006-03-02 01:16:02 +0000
committerdenise.eckstein <denise.eckstein>2006-03-02 01:16:02 +0000
commitce6bb9d5b5916877672e742f7834eee299fb450b (patch)
treea45a7841493c97ba812f0299ce708f907ae6740c /test
parent5f2194c2aed9182e5acb6d59ea2509070ef39e02 (diff)
downloadtog-pegasus-ce6bb9d5b5916877672e742f7834eee299fb450b.zip
tog-pegasus-ce6bb9d5b5916877672e742f7834eee299fb450b.tar.gz
tog-pegasus-ce6bb9d5b5916877672e742f7834eee299fb450b.tar.xz
BUG#:4845
TITLE: Need to enhance CIM Export Message Header Test Coverage DESCRIPTION: Adding new wbemexec tests.
Diffstat (limited to 'test')
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMBadExpMethodCallName01.xml27
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMBadExpMethodCallName01rspgood.xml10
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMIncompatibleHTTPVersion01.xml27
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMIncompatibleHTTPVersion01rspgood.xml2
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMIncorrectCIMExportBatchRequest01.xml28
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMIncorrectCIMExportBatchRequest01rspgood.xml3
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMMissingMethodRequest01.xml27
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMMissingMethodRequest01rspgood.xml3
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMUnsupportedHTTPMethod01.xml27
-rw-r--r--test/wetest/static/ExportMessageHeaders/EMUnsupportedHTTPMethod01rspgood.xml2
-rw-r--r--test/wetest/static/ExportMessageHeaders/Makefile43
-rw-r--r--test/wetest/static/Makefile3
12 files changed, 201 insertions, 1 deletions
diff --git a/test/wetest/static/ExportMessageHeaders/EMBadExpMethodCallName01.xml b/test/wetest/static/ExportMessageHeaders/EMBadExpMethodCallName01.xml
new file mode 100644
index 0000000..5fbdce2
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMBadExpMethodCallName01.xml
@@ -0,0 +1,27 @@
+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: ExportIndicatioX
+
+<?xml version="1.0" encoding="utf-8" ?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="1001" PROTOCOLVERSION="1.0">
+<SIMPLEEXPREQ>
+<EXPMETHODCALL NAME="ExportIndicatioX">
+<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/EMBadExpMethodCallName01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMBadExpMethodCallName01rspgood.xml
new file mode 100644
index 0000000..492068c
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMBadExpMethodCallName01rspgood.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="ExportIndicatioX">
+<ERROR CODE="7" DESCRIPTION="CIM_ERR_NOT_SUPPORTED: The requested operation is not supported: &quot;Unrecognized export method: ExportIndicatioX&quot;"/>
+</EXPMETHODRESPONSE>
+</SIMPLEEXPRSP>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/ExportMessageHeaders/EMIncompatibleHTTPVersion01.xml b/test/wetest/static/ExportMessageHeaders/EMIncompatibleHTTPVersion01.xml
new file mode 100644
index 0000000..f9569a3
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMIncompatibleHTTPVersion01.xml
@@ -0,0 +1,27 @@
+M-POST /CIMListener/consumer1 HTTP/1.0
+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/ExportMessageHeaders/EMIncompatibleHTTPVersion01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMIncompatibleHTTPVersion01rspgood.xml
new file mode 100644
index 0000000..dae0431
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMIncompatibleHTTPVersion01rspgood.xml
@@ -0,0 +1,2 @@
+HTTP/1.1 400 Bad Request
+
diff --git a/test/wetest/static/ExportMessageHeaders/EMIncorrectCIMExportBatchRequest01.xml b/test/wetest/static/ExportMessageHeaders/EMIncorrectCIMExportBatchRequest01.xml
new file mode 100644
index 0000000..a100fab
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMIncorrectCIMExportBatchRequest01.xml
@@ -0,0 +1,28 @@
+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
+CIMExportBatch:
+
+<?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/EMIncorrectCIMExportBatchRequest01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMIncorrectCIMExportBatchRequest01rspgood.xml
new file mode 100644
index 0000000..2c6e1ef
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMIncorrectCIMExportBatchRequest01rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 501 Not Implemented
+CIMError: multiple-requests-unsupported
+
diff --git a/test/wetest/static/ExportMessageHeaders/EMMissingMethodRequest01.xml b/test/wetest/static/ExportMessageHeaders/EMMissingMethodRequest01.xml
new file mode 100644
index 0000000..245ec44
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMMissingMethodRequest01.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:
+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/EMMissingMethodRequest01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMMissingMethodRequest01rspgood.xml
new file mode 100644
index 0000000..6f4068b
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMMissingMethodRequest01rspgood.xml
@@ -0,0 +1,3 @@
+HTTP/1.1 400 Bad Request
+CIMError: unsupported-operation
+
diff --git a/test/wetest/static/ExportMessageHeaders/EMUnsupportedHTTPMethod01.xml b/test/wetest/static/ExportMessageHeaders/EMUnsupportedHTTPMethod01.xml
new file mode 100644
index 0000000..de146c0
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMUnsupportedHTTPMethod01.xml
@@ -0,0 +1,27 @@
+BOGUS /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/ExportMessageHeaders/EMUnsupportedHTTPMethod01rspgood.xml b/test/wetest/static/ExportMessageHeaders/EMUnsupportedHTTPMethod01rspgood.xml
new file mode 100644
index 0000000..517b2b7
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/EMUnsupportedHTTPMethod01rspgood.xml
@@ -0,0 +1,2 @@
+HTTP/1.1 501 Not Implemented
+
diff --git a/test/wetest/static/ExportMessageHeaders/Makefile b/test/wetest/static/ExportMessageHeaders/Makefile
new file mode 100644
index 0000000..9758c76
--- /dev/null
+++ b/test/wetest/static/ExportMessageHeaders/Makefile
@@ -0,0 +1,43 @@
+#//%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 = \
+ EMBadExpMethodCallName01 \
+ EMUnsupportedHTTPMethod01 \
+ EMIncompatibleHTTPVersion01 \
+ EMMissingMethodRequest01 \
+ EMIncorrectCIMExportBatchRequest01
+
+include $(ROOT)/test/configend.mak
diff --git a/test/wetest/static/Makefile b/test/wetest/static/Makefile
index d8e6ac8..7737a79 100644
--- a/test/wetest/static/Makefile
+++ b/test/wetest/static/Makefile
@@ -43,7 +43,8 @@ DIRS = \
ErrorXml\
ModifyInstance\
DeleteInstance\
- Property
+ Property\
+ ExportMessageHeaders
# These tests are not re-runnable
# ModifyClass\