summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorvenkat.puvvada <venkat.puvvada>2007-03-05 19:56:58 +0000
committervenkat.puvvada <venkat.puvvada>2007-03-05 19:56:58 +0000
commitc95c7862eafeae83348b10535e8f5417a167fe14 (patch)
tree9ad6a0b68a61e6fabffd69b46db086102dcd3644 /test
parent659dd7e625515294a2b1b6881d0690965ac9ec3c (diff)
downloadtog-pegasus-c95c7862eafeae83348b10535e8f5417a167fe14.zip
tog-pegasus-c95c7862eafeae83348b10535e8f5417a167fe14.tar.gz
tog-pegasus-c95c7862eafeae83348b10535e8f5417a167fe14.tar.xz
BUG#: 2436
TITLE: Inconsistent output from XmlWriter::append
Diffstat (limited to 'test')
-rw-r--r--test/wetest/static/EnumerateInstances/Makefile15
-rw-r--r--test/wetest/static/GetInstance/GetInstance52007.xml27
-rw-r--r--test/wetest/static/GetInstance/GetInstance52007rspgood.xml88
-rw-r--r--test/wetest/static/GetInstance/Makefile19
4 files changed, 126 insertions, 23 deletions
diff --git a/test/wetest/static/EnumerateInstances/Makefile b/test/wetest/static/EnumerateInstances/Makefile
index 64b0f0b..da75761 100644
--- a/test/wetest/static/EnumerateInstances/Makefile
+++ b/test/wetest/static/EnumerateInstances/Makefile
@@ -33,23 +33,12 @@ ROOT = ../../../..
include $(ROOT)/mak/config.mak
include $(ROOT)/test/config.mak
-XMLSCRIPTS = EnumerateInstances51003
-
-# Note: this is done because the server on windows returns 3 digits
-# for the exponent of a real32 or real64, while other platforms return 2.
-ifeq ($(OS_TYPE),windows)
-XMLSCRIPTS += \
- EnumerateInstancesAlt51000 \
- DeepLocalTFAlt51005 \
- DeepLocalFFAlt51007 \
- DeepLocalTFAlt51008
-else
-XMLSCRIPTS += \
+XMLSCRIPTS = \
+ EnumerateInstances51003 \
EnumerateInstances51000 \
DeepLocalTF51005 \
DeepLocalFF51007 \
DeepLocalTF51008
-endif
ifndef SECURITY_ENABLED
XMLSCRIPTS += \
diff --git a/test/wetest/static/GetInstance/GetInstance52007.xml b/test/wetest/static/GetInstance/GetInstance52007.xml
new file mode 100644
index 0000000..f2bb9df
--- /dev/null
+++ b/test/wetest/static/GetInstance/GetInstance52007.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+ <MESSAGE ID="52004" PROTOCOLVERSION="1.0">
+ <SIMPLEREQ>
+ <IMETHODCALL NAME="GetInstance">
+ <LOCALNAMESPACEPATH>
+ <NAMESPACE NAME="test"/>
+ <NAMESPACE NAME="static"/>
+ </LOCALNAMESPACEPATH>
+ <IPARAMVALUE NAME="InstanceName">
+ <INSTANCENAME CLASSNAME="PG_TestPropertyTypes">
+ <KEYBINDING NAME="CreationClassName">
+ <KEYVALUE VALUETYPE="string">
+ PG_TestPropertyTypes
+ </KEYVALUE>
+ </KEYBINDING>
+ <KEYBINDING NAME="InstanceId">
+ <KEYVALUE VALUETYPE="numeric">
+ 3
+ </KEYVALUE>
+ </KEYBINDING>
+ </INSTANCENAME>
+ </IPARAMVALUE>
+ </IMETHODCALL>
+ </SIMPLEREQ>
+ </MESSAGE>
+</CIM>
diff --git a/test/wetest/static/GetInstance/GetInstance52007rspgood.xml b/test/wetest/static/GetInstance/GetInstance52007rspgood.xml
new file mode 100644
index 0000000..1af4f0f
--- /dev/null
+++ b/test/wetest/static/GetInstance/GetInstance52007rspgood.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<CIM CIMVERSION="2.0" DTDVERSION="2.0">
+<MESSAGE ID="52004" PROTOCOLVERSION="1.0">
+<SIMPLERSP>
+<IMETHODRESPONSE NAME="GetInstance">
+<IRETURNVALUE>
+<INSTANCE CLASSNAME="PG_TestPropertyTypes">
+<PROPERTY NAME="CreationClassName" TYPE="string">
+<VALUE>
+PG_TestPropertyTypes
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="InstanceId" TYPE="uint64">
+<VALUE>
+3
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyString" TYPE="string">
+<VALUE>
+PG_TestPropertyTypes_Instance3
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyUint8" TYPE="uint8">
+<VALUE>
+120
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyUint16" TYPE="uint16">
+<VALUE>
+1600
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyUint32" TYPE="uint32">
+<VALUE>
+3200
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyUint64" TYPE="uint64">
+<VALUE>
+6400
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertySint8" TYPE="sint8">
+<VALUE>
+-120
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertySint16" TYPE="sint16">
+<VALUE>
+-1600
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertySint32" TYPE="sint32">
+<VALUE>
+-3200
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertySint64" TYPE="sint64">
+<VALUE>
+-6400
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyBoolean" TYPE="boolean">
+<VALUE>
+FALSE
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyReal32" TYPE="real32">
+<VALUE>
+-1.1234567e+00
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyReal64" TYPE="real64">
+<VALUE>
+1.2345000000000001e-08
+</VALUE>
+</PROPERTY>
+<PROPERTY NAME="PropertyDatetime" TYPE="datetime">
+<VALUE>
+20060301104354.000000:000
+</VALUE>
+</PROPERTY>
+</INSTANCE>
+</IRETURNVALUE>
+</IMETHODRESPONSE>
+</SIMPLERSP>
+</MESSAGE>
+</CIM>
diff --git a/test/wetest/static/GetInstance/Makefile b/test/wetest/static/GetInstance/Makefile
index 1491651..7a3d7bb 100644
--- a/test/wetest/static/GetInstance/Makefile
+++ b/test/wetest/static/GetInstance/Makefile
@@ -17,7 +17,7 @@
#// 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
@@ -33,14 +33,13 @@ ROOT = ../../../..
include $(ROOT)/mak/config.mak
include $(ROOT)/test/config.mak
-XMLSCRIPTS = GetInstance52000 GetInstance52001 GetInstance52002 GetInstance52003 GetInstance52005 GetInstance52006
-
-# Note: this is done because the server on windows returns 3 digits
-# for the exponent of a real32 or real64, while other platforms return 2.
-ifeq ($(OS_TYPE),windows)
-XMLSCRIPTS += GetInstanceAlt52004
-else
-XMLSCRIPTS += GetInstance52004
-endif
+XMLSCRIPTS = GetInstance52000 \
+ GetInstance52001 \
+ GetInstance52002 \
+ GetInstance52003 \
+ GetInstance52004 \
+ GetInstance52005 \
+ GetInstance52006 \
+ GetInstance52007
include $(ROOT)/test/configend.mak