[tog-pegasus/f21] Fixed wrong instances from CIMOM callback

vcrhonek vcrhonek at fedoraproject.org
Wed Aug 6 06:30:55 UTC 2014


commit 75cbefc92797e03e446bf81c4fd851e37c28553c
Author: Vitezslav Crhonek <vcrhonek at redhat.com>
Date:   Tue Aug 5 16:15:57 2014 +0200

    Fixed wrong instances from CIMOM callback

 ...ng-embedded-instances-from-cimom-callback.patch | 1387 ++++++++++++++++++++
 tog-pegasus.spec                                   |   10 +-
 2 files changed, 1396 insertions(+), 1 deletions(-)
---
diff --git a/pegasus-2.13.0-wrong-embedded-instances-from-cimom-callback.patch b/pegasus-2.13.0-wrong-embedded-instances-from-cimom-callback.patch
new file mode 100644
index 0000000..822bb96
--- /dev/null
+++ b/pegasus-2.13.0-wrong-embedded-instances-from-cimom-callback.patch
@@ -0,0 +1,1387 @@
+commit bbcc9985fc6935b319571c967438ba457082da75
+Author: Jan Safranek <jsafrane at redhat.com>
+Date:   Wed Dec 4 08:49:18 2013 +0100
+
+    [v3] Fixed deserialization of EmbeddedInstances
+
+diff --git a/src/Pegasus/Common/SCMOStreamer.cpp b/src/Pegasus/Common/SCMOStreamer.cpp
+index 811dbb4..7b8c906 100644
+--- a/src/Pegasus/Common/SCMOStreamer.cpp
++++ b/src/Pegasus/Common/SCMOStreamer.cpp
+@@ -418,7 +418,6 @@ bool SCMOStreamer::_getInstances()
+ 
+     // Instance references resolution table
+     SCMOResolutionTable *extRefArray = new SCMOResolutionTable[numExtRefs];
+-    Uint32 extRefIndex=0;
+     if (numExtRefs > 0)
+     {
+         if(!_buf.getBytes(extRefArray, numExtRefs*sizeof(SCMOResolutionTable)))
+@@ -465,23 +464,6 @@ bool SCMOStreamer::_getInstances()
+ 
+         SCMOInstance* scmoInstPtr = new SCMOInstance(scmbInstPtr);
+ 
+-        if (numExtRefs > 0)
+-        {
+-            // Handle the external references to other SCMOInstances
+-            Uint32 numExtRefs = scmoInstPtr->numberExtRef();
+-            for (Uint32 i=0; i < numExtRefs; i++)
+-            {
+-                Uint32 extRefPos = extRefArray[extRefIndex].index;
+-                SCMOInstance* extRefPtr = instArray[extRefPos].scmbptr.scmoInst;
+-                scmoInstPtr->putExtRef(i,extRefPtr);
+-
+-                // Mark instance as already consumed
+-                instArray[extRefPos].scmbptr.uint64 = 0;
+-
+-                extRefIndex++;
+-            }
+-        }
+-
+         instArray[x].scmbptr.scmoInst = scmoInstPtr;
+ 
+ #ifdef PEGASUS_DEBUG
+@@ -489,6 +471,32 @@ bool SCMOStreamer::_getInstances()
+ #endif
+     }
+ 
++    // resolve all references in all instances
++    if (numExtRefs > 0)
++    {
++        for (Uint32 x = 0; x < numInst; x++)
++        {
++            SCMOInstance* inst = (SCMOInstance*)instArray[x].scmbptr.scmoInst;
++            // resolve all references in this instance
++            for (Uint32 ref = 0; ref < inst->numberExtRef(); ref++)
++            {
++                SCMOInstance* oldPtr = inst->getExtRef(ref);
++                /* find the instance for given reference*/
++                for (Uint32 y = 0; y < numExtRefs; y++)
++                {
++                    if (extRefArray[y].scmbptr.scmoInst == oldPtr) {
++                        Uint64 index = extRefArray[y].index;
++                        SCMOInstance *newPtr = instArray[index].scmbptr.scmoInst;
++                        inst->putExtRef(ref, newPtr);
++                        // consume the instance
++                        instArray[index].scmbptr.uint64 = 0;
++                        break;
++                    }
++                }
++            }
++        }
++    }
++
+     // Append all non-referenced instances to output array
+     for (Uint32 x=0; x < numInst; x++)
+     {
+diff --git a/src/Pegasus/Common/tests/Makefile b/src/Pegasus/Common/tests/Makefile
+index 8318bf9..43ac8db 100644
+--- a/src/Pegasus/Common/tests/Makefile
++++ b/src/Pegasus/Common/tests/Makefile
+@@ -78,6 +78,7 @@ DIRS = \
+     Resolve \
+     Scope \
+     SCMO \
++    SCMOStreamer \
+     SpinLock \
+     Stack \
+     StrToInstName \
+diff --git a/src/Pegasus/Common/tests/SCMOStreamer/CIM_Error.xml b/src/Pegasus/Common/tests/SCMOStreamer/CIM_Error.xml
+new file mode 100644
+index 0000000..671ac43
+--- /dev/null
++++ b/src/Pegasus/Common/tests/SCMOStreamer/CIM_Error.xml
+@@ -0,0 +1,557 @@
++<CLASS NAME="CIM_Error"  SUPERCLASS="CIM_Message" >
++<QUALIFIER NAME="INDICATION" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Version" TYPE="string" TOSUBCLASS="false" TRANSLATABLE="true">
++<VALUE>2.30.0</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Exception" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="UMLPackagePath" TYPE="string">
++<VALUE>CIM::Interop</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>CIM_Error is a specialized class that contains information about the severity, cause, recommended actions and other data related to the failure of a CIM Operation. Instances of this type MAY be included as part of the response to a CIM Operation.</VALUE>
++</QUALIFIER>
++<PROPERTY NAME="ErrorType"  CLASSORIGIN="CIM_Error" TYPE="uint16">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>Primary classification of the error. The following values are defined: &#10;2 - Communications Error. Errors of this type are principally associated with the procedures and/or processes required to convey information from one point to another. &#10;3 - Quality of Service Error. Errors of this type are principally associated with failures that result in reduced functionality or performance. &#10;4 - Software Error. Error of this type are principally associated with a software or processing fault. &#10;5 - Hardware Error. Errors of this type are principally associated with an equipment or hardware failure. &#10;6 - Environmental Error. Errors of this type are principally associated with a failure condition relating the to facility, or other environmental considerations. &#10;7 - Security Error. Errors of this type are associated with security violations, detection of viruses, and similar issues. &#10;8 - Oversubscription Error. Errors of this type are principally assoc
 iated with the failure to allocate sufficient resources to complete the operation. &#10;9 - Unavailable Resource Error. Errors of this type are principally associated with the failure to access a required resource. &#10;10 -Unsupported Operation Error. Errors of this type are principally associated with requests that are not supported.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ValueMap" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>0</VALUE>
++<VALUE>1</VALUE>
++<VALUE>2</VALUE>
++<VALUE>3</VALUE>
++<VALUE>4</VALUE>
++<VALUE>5</VALUE>
++<VALUE>6</VALUE>
++<VALUE>7</VALUE>
++<VALUE>8</VALUE>
++<VALUE>9</VALUE>
++<VALUE>10</VALUE>
++<VALUE>..</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="Values" TYPE="string" TRANSLATABLE="true">
++<VALUE.ARRAY>
++<VALUE>Unknown</VALUE>
++<VALUE>Other</VALUE>
++<VALUE>Communications Error</VALUE>
++<VALUE>Quality of Service Error</VALUE>
++<VALUE>Software Error</VALUE>
++<VALUE>Hardware Error</VALUE>
++<VALUE>Environmental Error</VALUE>
++<VALUE>Security Error</VALUE>
++<VALUE>Oversubscription Error</VALUE>
++<VALUE>Unavailable Resource Error</VALUE>
++<VALUE>Unsupported Operation Error</VALUE>
++<VALUE>DMTF Reserved</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.OtherErrorType</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="OtherErrorType"  CLASSORIGIN="CIM_Error" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>A free-form string describing the ErrorType when 1, &quot;Other&quot;, is specified as the ErrorType.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.ErrorType</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="PerceivedSeverity"  CLASSORIGIN="CIM_Error" TYPE="uint16">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>An enumerated value that describes the severity of the Indication from the notifier&apos;s point of view: &#10;0 - the Perceived Severity of the indication is unknown or indeterminate. &#10;1 - Other, by CIM convention, is used to indicate that the Severity&apos;s value can be found in the OtherSeverity property. &#10;2 - Information should be used when providing an informative response. &#10;3 - Degraded/Warning should be used when its appropriate to let the user decide if action is needed. &#10;4 - Minor should be used to indicate action is needed, but the situation is not serious at this time. &#10;5 - Major should be used to indicate action is needed NOW. &#10;6 - Critical should be used to indicate action is needed NOW and the scope is broad (perhaps an imminent outage to a critical resource will result). &#10;7 - Fatal/NonRecoverable should be used to indicate an error occurred, but it&apos;s too late to take remedial action. &#10;2 and 0 - Information and Unkn
 own (respectively) follow common usage. Literally, the Error is purely informational or its severity is simply unknown.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ValueMap" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>0</VALUE>
++<VALUE>1</VALUE>
++<VALUE>2</VALUE>
++<VALUE>3</VALUE>
++<VALUE>4</VALUE>
++<VALUE>5</VALUE>
++<VALUE>6</VALUE>
++<VALUE>7</VALUE>
++<VALUE>..</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="Values" TYPE="string" TRANSLATABLE="true">
++<VALUE.ARRAY>
++<VALUE>Unknown</VALUE>
++<VALUE>Other</VALUE>
++<VALUE>Information</VALUE>
++<VALUE>Degraded/Warning</VALUE>
++<VALUE>Minor</VALUE>
++<VALUE>Major</VALUE>
++<VALUE>Critical</VALUE>
++<VALUE>Fatal/NonRecoverable</VALUE>
++<VALUE>DMTF Reserved</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="MappingStrings" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>Recommendation.ITU|X733.Perceived severity</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="ProbableCause"  CLASSORIGIN="CIM_Error" TYPE="uint16">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>An enumerated value that describes the probable cause of the error.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ValueMap" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>0</VALUE>
++<VALUE>1</VALUE>
++<VALUE>2</VALUE>
++<VALUE>3</VALUE>
++<VALUE>4</VALUE>
++<VALUE>5</VALUE>
++<VALUE>6</VALUE>
++<VALUE>7</VALUE>
++<VALUE>8</VALUE>
++<VALUE>9</VALUE>
++<VALUE>10</VALUE>
++<VALUE>11</VALUE>
++<VALUE>12</VALUE>
++<VALUE>13</VALUE>
++<VALUE>14</VALUE>
++<VALUE>15</VALUE>
++<VALUE>16</VALUE>
++<VALUE>17</VALUE>
++<VALUE>18</VALUE>
++<VALUE>19</VALUE>
++<VALUE>20</VALUE>
++<VALUE>21</VALUE>
++<VALUE>22</VALUE>
++<VALUE>23</VALUE>
++<VALUE>24</VALUE>
++<VALUE>25</VALUE>
++<VALUE>26</VALUE>
++<VALUE>27</VALUE>
++<VALUE>28</VALUE>
++<VALUE>29</VALUE>
++<VALUE>30</VALUE>
++<VALUE>31</VALUE>
++<VALUE>32</VALUE>
++<VALUE>33</VALUE>
++<VALUE>34</VALUE>
++<VALUE>35</VALUE>
++<VALUE>36</VALUE>
++<VALUE>37</VALUE>
++<VALUE>38</VALUE>
++<VALUE>39</VALUE>
++<VALUE>40</VALUE>
++<VALUE>41</VALUE>
++<VALUE>42</VALUE>
++<VALUE>43</VALUE>
++<VALUE>44</VALUE>
++<VALUE>45</VALUE>
++<VALUE>46</VALUE>
++<VALUE>47</VALUE>
++<VALUE>48</VALUE>
++<VALUE>49</VALUE>
++<VALUE>50</VALUE>
++<VALUE>51</VALUE>
++<VALUE>52</VALUE>
++<VALUE>53</VALUE>
++<VALUE>54</VALUE>
++<VALUE>55</VALUE>
++<VALUE>56</VALUE>
++<VALUE>57</VALUE>
++<VALUE>58</VALUE>
++<VALUE>59</VALUE>
++<VALUE>60</VALUE>
++<VALUE>61</VALUE>
++<VALUE>62</VALUE>
++<VALUE>63</VALUE>
++<VALUE>64</VALUE>
++<VALUE>65</VALUE>
++<VALUE>66</VALUE>
++<VALUE>67</VALUE>
++<VALUE>68</VALUE>
++<VALUE>69</VALUE>
++<VALUE>70</VALUE>
++<VALUE>71</VALUE>
++<VALUE>72</VALUE>
++<VALUE>73</VALUE>
++<VALUE>74</VALUE>
++<VALUE>75</VALUE>
++<VALUE>76</VALUE>
++<VALUE>77</VALUE>
++<VALUE>78</VALUE>
++<VALUE>79</VALUE>
++<VALUE>80</VALUE>
++<VALUE>81</VALUE>
++<VALUE>82</VALUE>
++<VALUE>83</VALUE>
++<VALUE>84</VALUE>
++<VALUE>85</VALUE>
++<VALUE>86</VALUE>
++<VALUE>87</VALUE>
++<VALUE>88</VALUE>
++<VALUE>89</VALUE>
++<VALUE>90</VALUE>
++<VALUE>91</VALUE>
++<VALUE>92</VALUE>
++<VALUE>93</VALUE>
++<VALUE>94</VALUE>
++<VALUE>95</VALUE>
++<VALUE>96</VALUE>
++<VALUE>97</VALUE>
++<VALUE>98</VALUE>
++<VALUE>99</VALUE>
++<VALUE>100</VALUE>
++<VALUE>101</VALUE>
++<VALUE>102</VALUE>
++<VALUE>103</VALUE>
++<VALUE>104</VALUE>
++<VALUE>105</VALUE>
++<VALUE>106</VALUE>
++<VALUE>107</VALUE>
++<VALUE>108</VALUE>
++<VALUE>109</VALUE>
++<VALUE>110</VALUE>
++<VALUE>111</VALUE>
++<VALUE>112</VALUE>
++<VALUE>113</VALUE>
++<VALUE>114</VALUE>
++<VALUE>115</VALUE>
++<VALUE>116</VALUE>
++<VALUE>117</VALUE>
++<VALUE>118</VALUE>
++<VALUE>119</VALUE>
++<VALUE>120</VALUE>
++<VALUE>121</VALUE>
++<VALUE>122</VALUE>
++<VALUE>123</VALUE>
++<VALUE>124</VALUE>
++<VALUE>125</VALUE>
++<VALUE>126</VALUE>
++<VALUE>127</VALUE>
++<VALUE>128</VALUE>
++<VALUE>129</VALUE>
++<VALUE>130</VALUE>
++<VALUE>..</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="Values" TYPE="string" TRANSLATABLE="true">
++<VALUE.ARRAY>
++<VALUE>Unknown</VALUE>
++<VALUE>Other</VALUE>
++<VALUE>Adapter/Card Error</VALUE>
++<VALUE>Application Subsystem Failure</VALUE>
++<VALUE>Bandwidth Reduced</VALUE>
++<VALUE>Connection Establishment Error</VALUE>
++<VALUE>Communications Protocol Error</VALUE>
++<VALUE>Communications Subsystem Failure</VALUE>
++<VALUE>Configuration/Customization Error</VALUE>
++<VALUE>Congestion</VALUE>
++<VALUE>Corrupt Data</VALUE>
++<VALUE>CPU Cycles Limit Exceeded</VALUE>
++<VALUE>Dataset/Modem Error</VALUE>
++<VALUE>Degraded Signal</VALUE>
++<VALUE>DTE-DCE Interface Error</VALUE>
++<VALUE>Enclosure Door Open</VALUE>
++<VALUE>Equipment Malfunction</VALUE>
++<VALUE>Excessive Vibration</VALUE>
++<VALUE>File Format Error</VALUE>
++<VALUE>Fire Detected</VALUE>
++<VALUE>Flood Detected</VALUE>
++<VALUE>Framing Error</VALUE>
++<VALUE>HVAC Problem</VALUE>
++<VALUE>Humidity Unacceptable</VALUE>
++<VALUE>I/O Device Error</VALUE>
++<VALUE>Input Device Error</VALUE>
++<VALUE>LAN Error</VALUE>
++<VALUE>Non-Toxic Leak Detected</VALUE>
++<VALUE>Local Node Transmission Error</VALUE>
++<VALUE>Loss of Frame</VALUE>
++<VALUE>Loss of Signal</VALUE>
++<VALUE>Material Supply Exhausted</VALUE>
++<VALUE>Multiplexer Problem</VALUE>
++<VALUE>Out of Memory</VALUE>
++<VALUE>Output Device Error</VALUE>
++<VALUE>Performance Degraded</VALUE>
++<VALUE>Power Problem</VALUE>
++<VALUE>Pressure Unacceptable</VALUE>
++<VALUE>Processor Problem (Internal Machine Error)</VALUE>
++<VALUE>Pump Failure</VALUE>
++<VALUE>Queue Size Exceeded</VALUE>
++<VALUE>Receive Failure</VALUE>
++<VALUE>Receiver Failure</VALUE>
++<VALUE>Remote Node Transmission Error</VALUE>
++<VALUE>Resource at or Nearing Capacity</VALUE>
++<VALUE>Response Time Excessive</VALUE>
++<VALUE>Retransmission Rate Excessive</VALUE>
++<VALUE>Software Error</VALUE>
++<VALUE>Software Program Abnormally Terminated</VALUE>
++<VALUE>Software Program Error (Incorrect Results)</VALUE>
++<VALUE>Storage Capacity Problem</VALUE>
++<VALUE>Temperature Unacceptable</VALUE>
++<VALUE>Threshold Crossed</VALUE>
++<VALUE>Timing Problem</VALUE>
++<VALUE>Toxic Leak Detected</VALUE>
++<VALUE>Transmit Failure</VALUE>
++<VALUE>Transmitter Failure</VALUE>
++<VALUE>Underlying Resource Unavailable</VALUE>
++<VALUE>Version Mismatch</VALUE>
++<VALUE>Previous Alert Cleared</VALUE>
++<VALUE>Login Attempts Failed</VALUE>
++<VALUE>Software Virus Detected</VALUE>
++<VALUE>Hardware Security Breached</VALUE>
++<VALUE>Denial of Service Detected</VALUE>
++<VALUE>Security Credential Mismatch</VALUE>
++<VALUE>Unauthorized Access</VALUE>
++<VALUE>Alarm Received</VALUE>
++<VALUE>Loss of Pointer</VALUE>
++<VALUE>Payload Mismatch</VALUE>
++<VALUE>Transmission Error</VALUE>
++<VALUE>Excessive Error Rate</VALUE>
++<VALUE>Trace Problem</VALUE>
++<VALUE>Element Unavailable</VALUE>
++<VALUE>Element Missing</VALUE>
++<VALUE>Loss of Multi Frame</VALUE>
++<VALUE>Broadcast Channel Failure</VALUE>
++<VALUE>Invalid Message Received</VALUE>
++<VALUE>Routing Failure</VALUE>
++<VALUE>Backplane Failure</VALUE>
++<VALUE>Identifier Duplication</VALUE>
++<VALUE>Protection Path Failure</VALUE>
++<VALUE>Sync Loss or Mismatch</VALUE>
++<VALUE>Terminal Problem</VALUE>
++<VALUE>Real Time Clock Failure</VALUE>
++<VALUE>Antenna Failure</VALUE>
++<VALUE>Battery Charging Failure</VALUE>
++<VALUE>Disk Failure</VALUE>
++<VALUE>Frequency Hopping Failure</VALUE>
++<VALUE>Loss of Redundancy</VALUE>
++<VALUE>Power Supply Failure</VALUE>
++<VALUE>Signal Quality Problem</VALUE>
++<VALUE>Battery Discharging</VALUE>
++<VALUE>Battery Failure</VALUE>
++<VALUE>Commercial Power Problem</VALUE>
++<VALUE>Fan Failure</VALUE>
++<VALUE>Engine Failure</VALUE>
++<VALUE>Sensor Failure</VALUE>
++<VALUE>Fuse Failure</VALUE>
++<VALUE>Generator Failure</VALUE>
++<VALUE>Low Battery</VALUE>
++<VALUE>Low Fuel</VALUE>
++<VALUE>Low Water</VALUE>
++<VALUE>Explosive Gas</VALUE>
++<VALUE>High Winds</VALUE>
++<VALUE>Ice Buildup</VALUE>
++<VALUE>Smoke</VALUE>
++<VALUE>Memory Mismatch</VALUE>
++<VALUE>Out of CPU Cycles</VALUE>
++<VALUE>Software Environment Problem</VALUE>
++<VALUE>Software Download Failure</VALUE>
++<VALUE>Element Reinitialized</VALUE>
++<VALUE>Timeout</VALUE>
++<VALUE>Logging Problems</VALUE>
++<VALUE>Leak Detected</VALUE>
++<VALUE>Protection Mechanism Failure</VALUE>
++<VALUE>Protecting Resource Failure</VALUE>
++<VALUE>Database Inconsistency</VALUE>
++<VALUE>Authentication Failure</VALUE>
++<VALUE>Breach of Confidentiality</VALUE>
++<VALUE>Cable Tamper</VALUE>
++<VALUE>Delayed Information</VALUE>
++<VALUE>Duplicate Information</VALUE>
++<VALUE>Information Missing</VALUE>
++<VALUE>Information Modification</VALUE>
++<VALUE>Information Out of Sequence</VALUE>
++<VALUE>Key Expired</VALUE>
++<VALUE>Non-Repudiation Failure</VALUE>
++<VALUE>Out of Hours Activity</VALUE>
++<VALUE>Out of Service</VALUE>
++<VALUE>Procedural Error</VALUE>
++<VALUE>Unexpected Information</VALUE>
++<VALUE>DMTF Reserved</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="MappingStrings" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>Recommendation.ITU|X733.Probable cause</VALUE>
++<VALUE>Recommendation.ITU|M3100.probableCause</VALUE>
++<VALUE>ITU-IANA-ALARM-TC</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.ProbableCauseDescription</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="ProbableCauseDescription"  CLASSORIGIN="CIM_Error" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>A free-form string describing the probable cause of the error.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.ProbableCause</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY.ARRAY NAME="RecommendedActions"  TYPE="string" CLASSORIGIN="CIM_Error">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>A free-form string describing recommended actions to take to resolve the error.</VALUE>
++</QUALIFIER>
++</PROPERTY.ARRAY>
++<PROPERTY NAME="ErrorSource"  CLASSORIGIN="CIM_Error" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The identifying information of the entity (i.e., the instance) generating the error. If this entity is modeled in the CIM Schema, this property contains the path of the instance encoded as a string parameter. If not modeled, the property contains some identifying string that names the entity that generated the error. The path or identifying string is formatted per the ErrorSourceFormat property.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.ErrorSourceFormat</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="ErrorSourceFormat"  CLASSORIGIN="CIM_Error" TYPE="uint16">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The format of the ErrorSource property is interpretable based on the value of this property. Values are defined as: &#10;0 - Unknown. The format is unknown or not meaningfully interpretable by a CIM client application. &#10;1 - Other. The format is defined by the value of the OtherErrorSourceFormat property.2 - CIMObjectPath. A CIM Object Path as defined in the CIM Infrastructure specification. Note: CIM 2.5 and earlier used the term object names.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ValueMap" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>0</VALUE>
++<VALUE>1</VALUE>
++<VALUE>2</VALUE>
++<VALUE>..</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="Values" TYPE="string" TRANSLATABLE="true">
++<VALUE.ARRAY>
++<VALUE>Unknown</VALUE>
++<VALUE>Other</VALUE>
++<VALUE>CIMObjectPath</VALUE>
++<VALUE>DMTF Reserved</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.ErrorSource</VALUE>
++<VALUE>CIM_Error.OtherErrorSourceFormat</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<VALUE>0</VALUE>
++</PROPERTY>
++<PROPERTY NAME="OtherErrorSourceFormat"  CLASSORIGIN="CIM_Error" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>A string defining &quot;Other&quot; values for ErrorSourceFormat. This value MUST be set to a non NULL value when ErrorSourceFormat is set to a value of 1 (&quot;Other&quot;). For all other values of ErrorSourceFormat, the value of this string must be set to NULL.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.ErrorSourceFormat</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="CIMStatusCode"  CLASSORIGIN="CIM_Error" TYPE="uint32">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The CIM status code that characterizes this instance. &#10;This property defines the status codes that MAY be return by a conforming CIM Server or Listener. Note that not all status codes are valid for each operation. The specification for each operation SHOULD define the status codes that may be returned by that operation. &#10;The following values for CIM status code are defined: &#10;1 - CIM_ERR_FAILED. A general error occurred that is not covered by a more specific error code. &#10;2 - CIM_ERR_ACCESS_DENIED. Access to a CIM resource was not available to the client. &#10;3 - CIM_ERR_INVALID_NAMESPACE. The target namespace does not exist. &#10;4 - CIM_ERR_INVALID_PARAMETER. One or more parameter values passed to the method were invalid. &#10;5 - CIM_ERR_INVALID_CLASS. The specified Class does not exist. &#10;6 - CIM_ERR_NOT_FOUND. The requested object could not be found. &#10;7 - CIM_ERR_NOT_SUPPORTED. The requested operation is not supported. &#10;8 - CIM_ERR_CLAS
 S_HAS_CHILDREN. Operation cannot be carried out on this class since it has instances. &#10;9 - CIM_ERR_CLASS_HAS_INSTANCES. Operation cannot be carried out on this class since it has instances. &#10;10 - CIM_ERR_INVALID_SUPERCLASS. Operation cannot be carried out since the specified superclass does not exist. &#10;11 - CIM_ERR_ALREADY_EXISTS. Operation cannot be carried out because an object already exists. &#10;12 - CIM_ERR_NO_SUCH_PROPERTY. The specified Property does not exist. &#10;13 - CIM_ERR_TYPE_MISMATCH. The value supplied is incompatible with the type. &#10;14 - CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED. The query language is not recognized or supported. &#10;15 - CIM_ERR_INVALID_QUERY. The query is not valid for the specified query language. &#10;16 - CIM_ERR_METHOD_NOT_AVAILABLE. The extrinsic Method could not be executed. &#10;17 - CIM_ERR_METHOD_NOT_FOUND. The specified extrinsic Method does not exist. &#10;18 - CIM_ERR_UNEXPECTED_RESPONSE. The returned response to 
 the asynchronous operation was not expected. &#10;19 - CIM_ERR_INVALID_RESPONSE_DESTINATION. The specified destination for the asynchronous response is not valid. &#10;20 - CIM_ERR_NAMESPACE_NOT_EMPTY. The specified Namespace is not empty.&#10;21 - CIM_ERR_INVALID_ENUMERATION_CONTEXT. The enumeration context supplied is not valid.&#10;22 - CIM_ERR_INVALID_OPERATION_TIMEOUT. The specified Namespace is not empty.&#10;23 - CIM_ERR_PULL_HAS_BEEN_ABANDONED. The specified Namespace is not empty.&#10;24 - CIM_ERR_PULL_CANNOT_BE_ABANDONED. The attempt to abandon a pull operation has failed.&#10;25 - CIM_ERR_FILTERED_ENUMERATION_NOT_SUPPORTED. Filtered Enumeratrions are not supported.&#10;26 - CIM_ERR_CONTINUATION_ON_ERROR_NOT_SUPPORTED. Continue on error is not supported.&#10;27 - CIM_ERR_SERVER_LIMITS_EXCEEDED. The WBEM Server limits have been exceeded (e.g. memory, connections, ...).&#10;28 - CIM_ERR_SERVER_IS_SHUTTING_DOWN. The WBEM Server is shutting down.&#10;29 - CIM_ERR_QUERY
 _FEATURE_NOT_SUPPORTED. The specified Query Feature is not supported.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ValueMap" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>1</VALUE>
++<VALUE>2</VALUE>
++<VALUE>3</VALUE>
++<VALUE>4</VALUE>
++<VALUE>5</VALUE>
++<VALUE>6</VALUE>
++<VALUE>7</VALUE>
++<VALUE>8</VALUE>
++<VALUE>9</VALUE>
++<VALUE>10</VALUE>
++<VALUE>11</VALUE>
++<VALUE>12</VALUE>
++<VALUE>13</VALUE>
++<VALUE>14</VALUE>
++<VALUE>15</VALUE>
++<VALUE>16</VALUE>
++<VALUE>17</VALUE>
++<VALUE>18</VALUE>
++<VALUE>19</VALUE>
++<VALUE>20</VALUE>
++<VALUE>21</VALUE>
++<VALUE>22</VALUE>
++<VALUE>23</VALUE>
++<VALUE>24</VALUE>
++<VALUE>25</VALUE>
++<VALUE>26</VALUE>
++<VALUE>27</VALUE>
++<VALUE>28</VALUE>
++<VALUE>29</VALUE>
++<VALUE>..</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="Values" TYPE="string" TRANSLATABLE="true">
++<VALUE.ARRAY>
++<VALUE>CIM_ERR_FAILED</VALUE>
++<VALUE>CIM_ERR_ACCESS_DENIED</VALUE>
++<VALUE>CIM_ERR_INVALID_NAMESPACE</VALUE>
++<VALUE>CIM_ERR_INVALID_PARAMETER</VALUE>
++<VALUE>CIM_ERR_INVALID_CLASS</VALUE>
++<VALUE>CIM_ERR_NOT_FOUND</VALUE>
++<VALUE>CIM_ERR_NOT_SUPPORTED</VALUE>
++<VALUE>CIM_ERR_CLASS_HAS_CHILDREN</VALUE>
++<VALUE>CIM_ERR_CLASS_HAS_INSTANCES</VALUE>
++<VALUE>CIM_ERR_INVALID_SUPERCLASS</VALUE>
++<VALUE>CIM_ERR_ALREADY_EXISTS</VALUE>
++<VALUE>CIM_ERR_NO_SUCH_PROPERTY</VALUE>
++<VALUE>CIM_ERR_TYPE_MISMATCH</VALUE>
++<VALUE>CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED</VALUE>
++<VALUE>CIM_ERR_INVALID_QUERY</VALUE>
++<VALUE>CIM_ERR_METHOD_NOT_AVAILABLE</VALUE>
++<VALUE>CIM_ERR_METHOD_NOT_FOUND</VALUE>
++<VALUE>CIM_ERR_UNEXPECTED_RESPONSE</VALUE>
++<VALUE>CIM_ERR_INVALID_RESPONSE_DESTINATION</VALUE>
++<VALUE>CIM_ERR_NAMESPACE_NOT_EMPTY</VALUE>
++<VALUE>CIM_ERR_INVALID_ENUMERATION_CONTEXT</VALUE>
++<VALUE>CIM_ERR_INVALID_OPERATION_TIMEOUT</VALUE>
++<VALUE>CIM_ERR_PULL_HAS_BEEN_ABANDONED</VALUE>
++<VALUE>CIM_ERR_PULL_CANNOT_BE_ABANDONED</VALUE>
++<VALUE>CIM_ERR_FILTERED_ENUMERATION_NOT_SUPPORTED</VALUE>
++<VALUE>CIM_ERR_CONTINUATION_ON_ERROR_NOT_SUPPORTED</VALUE>
++<VALUE>CIM_ERR_SERVER_LIMITS_EXCEEDED</VALUE>
++<VALUE>CIM_ERR_SERVER_IS_SHUTTING_DOWN</VALUE>
++<VALUE>CIM_ERR_QUERY_FEATURE_NOT_SUPPORTED</VALUE>
++<VALUE>DMTF Reserved</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="MappingStrings" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>DSP0201.DMTF|ERROR.CODE|2.3</VALUE>
++<VALUE>DSP0200.DMTF|CIMError|1.3</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.CIMStatusCodeDescription</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="CIMStatusCodeDescription"  CLASSORIGIN="CIM_Error" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>A free-form string containing a human-readable description of CIMStatusCode. This description MAY extend, but MUST be consistent with, the definition of CIMStatusCode.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="MappingStrings" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>DSP0201.DMTF|ERROR.DESCRIPTION|2.3</VALUE>
++<VALUE>DSP0200.DMTF|CIMError|1.3</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error.CIMStatusCode</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++</CLASS>
+diff --git a/src/Pegasus/Common/tests/SCMOStreamer/CIM_Indication.xml b/src/Pegasus/Common/tests/SCMOStreamer/CIM_Indication.xml
+new file mode 100644
+index 0000000..18d5777
+--- /dev/null
++++ b/src/Pegasus/Common/tests/SCMOStreamer/CIM_Indication.xml
+@@ -0,0 +1,123 @@
++<CLASS NAME="CIM_Indication" >
++<QUALIFIER NAME="INDICATION" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Abstract" TYPE="boolean" TOSUBCLASS="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Version" TYPE="string" TOSUBCLASS="false" TRANSLATABLE="true">
++<VALUE>2.24.0</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="UMLPackagePath" TYPE="string">
++<VALUE>CIM::Event</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>CIM_Indication is the abstract root class for all notifications about changes in schema, objects and their data, and about events detected by providers and instrumentation. Subclasses represent specific types of notifications. &#10;&#10;To receive an Indication, a consumer (or subscriber) must create an instance of CIM_IndicationFilter describing the criteria of the notification, an instance of CIM_ListenerDestination describing the delivery of the notification, and an instance of CIM_IndicationSubscription associating the Filter and Handler.</VALUE>
++</QUALIFIER>
++<PROPERTY NAME="IndicationIdentifier"  CLASSORIGIN="CIM_Indication" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>An identifier for the Indication. This property is similar to a key value in that it can be used for identification, when correlating Indications (see the CorrelatedIndications array). Its value SHOULD be unique as long as correlations are reported, but MAY be reused or left NULL if no future Indications will reference it in their CorrelatedIndications array.To ensure uniqueness, the value of IndicationIdentifier should be constructed using the following &quot;preferred&quot; algorithm: &#10;&lt;OrgID&gt;:&lt;LocalID&gt; &#10;Where &lt;OrgID&gt; and &lt;LocalID&gt; are separated by a colon (:), and where &lt;OrgID&gt; must include a copyrighted, trademarked, or otherwise unique name that is owned by the business entity that is creating or defining the IndicationIdentifier or that is a recognized ID that is assigned to the business entity by a recognized global authority. (This requirement is similar to the &lt;Schema Name&gt;_&lt;Class Name&gt; structure of Schema cl
 ass names.) In addition, to ensure uniqueness &lt;OrgID&gt; must not contain a colon (:). When using this algorithm, the first colon to appear in IndicationIdentifier must appear between &lt;OrgID&gt; and &lt;LocalID&gt;. &#10;&lt;LocalID&gt; is chosen by the business entity and should not be re-used to identify different underlying (real-world) elements. &#10;If the above &quot;preferred&quot; algorithm is not used, the defining entity should assure that the resulting IndicationIdentifier is not re-used across any IndicationIdentifiers that are produced by this or other providers for the NameSpace of this instance. &#10;For DMTF-defined instances, the &quot;preferred&quot; algorithm should be used with the &lt;OrgID&gt; set to CIM.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="MappingStrings" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>Recommendation.ITU|X733.Notification identifier</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY.ARRAY NAME="CorrelatedIndications"  TYPE="string" CLASSORIGIN="CIM_Indication">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>A list of IndicationIdentifiers whose notifications are correlated with (related to) this one.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="MappingStrings" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>Recommendation.ITU|X733.Correlated notifications</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Indication.IndicationIdentifier</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY.ARRAY>
++<PROPERTY NAME="IndicationTime"  CLASSORIGIN="CIM_Indication" TYPE="datetime">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The time and date of creation of the Indication. The property may be set to NULL if the entity creating the Indication is not capable of determining this information. Note that IndicationTime may be the same for two Indications that are generated in rapid succession.</VALUE>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="PerceivedSeverity"  CLASSORIGIN="CIM_Indication" TYPE="uint16">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>An enumerated value that describes the severity of the Indication from the notifier&apos;s point of view: &#10;1 - Other, by CIM convention, is used to indicate that the Severity&apos;s value can be found in the OtherSeverity property. &#10;3 - Degraded/Warning should be used when its appropriate to let the user decide if action is needed. &#10;4 - Minor should be used to indicate action is needed, but the situation is not serious at this time. &#10;5 - Major should be used to indicate action is needed NOW. &#10;6 - Critical should be used to indicate action is needed NOW and the scope is broad (perhaps an imminent outage to a critical resource will result). &#10;7 - Fatal/NonRecoverable should be used to indicate an error occurred, but it&apos;s too late to take remedial action. &#10;2 and 0 - Information and Unknown (respectively) follow common usage. Literally, the Indication is purely informational or its severity is simply unknown.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ValueMap" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>0</VALUE>
++<VALUE>1</VALUE>
++<VALUE>2</VALUE>
++<VALUE>3</VALUE>
++<VALUE>4</VALUE>
++<VALUE>5</VALUE>
++<VALUE>6</VALUE>
++<VALUE>7</VALUE>
++<VALUE>..</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="Values" TYPE="string" TRANSLATABLE="true">
++<VALUE.ARRAY>
++<VALUE>Unknown</VALUE>
++<VALUE>Other</VALUE>
++<VALUE>Information</VALUE>
++<VALUE>Degraded/Warning</VALUE>
++<VALUE>Minor</VALUE>
++<VALUE>Major</VALUE>
++<VALUE>Critical</VALUE>
++<VALUE>Fatal/NonRecoverable</VALUE>
++<VALUE>DMTF Reserved</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="MappingStrings" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>Recommendation.ITU|X733.Perceived severity</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="OtherSeverity"  CLASSORIGIN="CIM_Indication" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>Holds the value of the user defined severity value when &apos;PerceivedSeverity&apos; is 1 (&quot;Other&quot;).</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_AlertIndication.PerceivedSeverity</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="IndicationFilterName"  CLASSORIGIN="CIM_Indication" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>An identifier for the indication filter that selects this indication and causes it to be sent. This property is to be filled out by the indication sending service. The value shall be correlatable with the Name property of the instance of CIM_IndicationFilter describing the criteria of the indication. The value of the IndicationFilterName should be formatted using the following algorithm: &lt; OrgID &gt; : &lt; LocalID &gt;, where &lt; OrgID &gt; and &lt; LocalID &gt; are separated by a colon (:) and &lt; OrgID &gt; shall include a copyrighted, trademarked, or otherwise unique name that is owned by the business entity that is creating or defining the value or that is a registered ID assigned to the business entity by a recognized global authority. In addition, to ensure uniqueness, &lt; OrgID &gt; shall not contain a colon (:).When using this algorithm, the first colon to appear in the value shall appear between &lt; OrgID &gt; and &lt; LocalID &gt;. &lt; LocalID &gt;
  is chosen by the business entity and shall be used uniquely.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_IndicationFilter.Name</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="SequenceContext"  CLASSORIGIN="CIM_Indication" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The sequence context portion of a sequence identifier for the indication. The sequence number portion of the sequence identifier is provided by the SequenceNumber property. The combination of both property values represents the sequence identifier for the indication.&#10;The sequence identifier for the indication enables a CIM listener to identify duplicate indications when the CIM service attempts the delivery retry of indications, to reorder indications that arrive out-of-order, and to detect lost indications.&#10;If a CIM service does not support sequence identifiers for indications, this property shall be NULL.&#10;If a CIM service supports sequence identifiers for indications, this property shall be maintained by the CIM service for each registered listener destination, and its value shall uniquely identify the CIM service and the indication service within the CIM service such that restarts of the CIM service and deregistration of listener destinations to the CI
 M service cause the value to change, without reusing earlier values for a sufficiently long time.&#10;When retrying the delivery of an indication, this property shall have the same value as in the original delivery.&#10;To guarantee this uniqueness, the property value should be constructed using the following format (defined in ABNF): sequence-context = indication-service-name &quot;#&quot; cim-service-start-id &quot;#&quot; listener-destination-creation-time&#10;Where: indication-service-name is the value of the Name property of the CIM_IndicationService instance responsible for delivering the indication. cim-service-start-id is an identifier that uniquely identifies the CIM service start, for example via a timestamp of the start time, or via a counter that increases for each start or restart. listener-destination-creation-time is a timestamp of the creation time of the CIM_ListenerDestination instance representing the listener destination.&#10;Since this format is only a r
 ecommendation, CIM clients shall treat the value as an opaque identifier for the sequence context and shall not rely on this format.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Indication.SequenceNumber</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="SequenceNumber"  CLASSORIGIN="CIM_Indication" TYPE="sint64">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The sequence number portion of a sequence identifier for the indication. The sequence context portion of the sequence identifier is provided by the SequenceContext property. The combination of both property values represents the sequence identifier for the indication.&#10;The sequence identifier for the indication enables a CIM listener to identify duplicate indications when the CIM service attempts the delivery retry of indications, to reorder indications that arrive out-of-order, and to detect lost indications.&#10;If a CIM service does not support sequence identifiers for indications, this property shall be NULL.&#10;If a CIM service supports sequence identifiers for indications, this property shall be maintained by the CIM service for each registered listener destination, and its value shall uniquely identify the indication within the sequence context provided by SequenceContext. It shall start at 0 whenever the sequence context string changes. Otherwise, it shal
 l be increased by 1 for every new indication to that listener destination, and it shall wrap to 0 when the value range is exceeded.&#10;When retrying the delivery of an indication, this property shall have the same value as in the original delivery.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Indication.SequenceContext</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++</CLASS>
+diff --git a/src/Pegasus/Common/tests/SCMOStreamer/CIM_InstIndication.xml b/src/Pegasus/Common/tests/SCMOStreamer/CIM_InstIndication.xml
+new file mode 100644
+index 0000000..64efa96
+--- /dev/null
++++ b/src/Pegasus/Common/tests/SCMOStreamer/CIM_InstIndication.xml
+@@ -0,0 +1,48 @@
++<CLASS NAME="CIM_InstIndication"  SUPERCLASS="CIM_Indication" >
++<QUALIFIER NAME="INDICATION" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Abstract" TYPE="boolean" TOSUBCLASS="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Version" TYPE="string" TOSUBCLASS="false" TRANSLATABLE="true">
++<VALUE>2.29.0</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="UMLPackagePath" TYPE="string">
++<VALUE>CIM::Event</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>CIM_InstIndication is an abstract superclass describing changes to instances. Subclasses represent specific types of change notifications, such as instance creation, deletion and modification.</VALUE>
++</QUALIFIER>
++<PROPERTY NAME="SourceInstance"  CLASSORIGIN="CIM_InstIndication" TYPE="string">
++<QUALIFIER NAME="Required" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>A copy of the instance that changed to generate the Indication. SourceInstance contains the current values of the properties selected by the Indication Filter&apos;s Query. In the case of CIM_InstDeletion, the property values are copied before the instance is deleted.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="EmbeddedObject" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="SourceInstanceModelPath"  CLASSORIGIN="CIM_InstIndication" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The Model Path of the SourceInstance. The following format MUST be used to encode the Model Path: &#10;&lt;NamespacePath&gt;:&lt;ClassName&gt;.&lt;Prop1&gt;=&quot;&lt;Value1&gt;&quot;, &#10;&lt;Prop2&gt;=&quot;&lt;Value2&gt;&quot;, ...</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_InstIndication.SourceInstance</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="SourceInstanceHost"  CLASSORIGIN="CIM_InstIndication" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The host name or IP address of the SourceInstance.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_InstIndication.SourceInstance</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++</CLASS>
+diff --git a/src/Pegasus/Common/tests/SCMOStreamer/CIM_InstMethodCall.xml b/src/Pegasus/Common/tests/SCMOStreamer/CIM_InstMethodCall.xml
+new file mode 100644
+index 0000000..f27d00a
+--- /dev/null
++++ b/src/Pegasus/Common/tests/SCMOStreamer/CIM_InstMethodCall.xml
+@@ -0,0 +1,120 @@
++<CLASS NAME="CIM_InstMethodCall"  SUPERCLASS="CIM_InstIndication" >
++<QUALIFIER NAME="INDICATION" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Version" TYPE="string" TOSUBCLASS="false" TRANSLATABLE="true">
++<VALUE>2.8.1000</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="UMLPackagePath" TYPE="string">
++<VALUE>CIM::Event</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>CIM_InstMethodCall notifies when an instance&apos;s method is invoked.</VALUE>
++</QUALIFIER>
++<PROPERTY NAME="MethodName"  CLASSORIGIN="CIM_InstMethodCall" TYPE="string">
++<QUALIFIER NAME="Required" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The name of the method invoked.</VALUE>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="MethodParameters"  CLASSORIGIN="CIM_InstMethodCall" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The parameters of the method, formatted as an EmbeddedObject (with a predefined class name of &quot;__MethodParameters&quot;.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="EmbeddedObject" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="ReturnValue"  CLASSORIGIN="CIM_InstMethodCall" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>ReturnValue&apos;s data is dependent on the PreCall property. When PreCall is TRUE, this property is NULL describing that there is no method return value (since the method has not yet executed). When PreCall is FALSE, ReturnValue contains a string representation of the method&apos;s return value.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_InstMethodCall.PreCall</VALUE>
++<VALUE>CIM_InstMethodCall.ReturnValueType</VALUE>
++<VALUE>CIM_InstMethodCall.Error</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="ReturnValueType"  CLASSORIGIN="CIM_InstMethodCall" TYPE="uint16">
++<QUALIFIER NAME="Experimental" TYPE="boolean" TOSUBCLASS="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The type of the method return value.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ValueMap" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>2</VALUE>
++<VALUE>3</VALUE>
++<VALUE>4</VALUE>
++<VALUE>5</VALUE>
++<VALUE>6</VALUE>
++<VALUE>7</VALUE>
++<VALUE>8</VALUE>
++<VALUE>9</VALUE>
++<VALUE>10</VALUE>
++<VALUE>11</VALUE>
++<VALUE>12</VALUE>
++<VALUE>13</VALUE>
++<VALUE>14</VALUE>
++<VALUE>15</VALUE>
++<VALUE>16</VALUE>
++<VALUE>..</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="Values" TYPE="string" TRANSLATABLE="true">
++<VALUE.ARRAY>
++<VALUE>boolean</VALUE>
++<VALUE>string</VALUE>
++<VALUE>char16</VALUE>
++<VALUE>uint8</VALUE>
++<VALUE>sint8</VALUE>
++<VALUE>uint16</VALUE>
++<VALUE>sint16</VALUE>
++<VALUE>uint32</VALUE>
++<VALUE>sint32</VALUE>
++<VALUE>uint64</VALUE>
++<VALUE>sint64</VALUE>
++<VALUE>datetime</VALUE>
++<VALUE>real32</VALUE>
++<VALUE>real64</VALUE>
++<VALUE>reference</VALUE>
++<VALUE>DMTF Reserved</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_InstMethodCall.ReturnValue</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY.ARRAY NAME="Error"  TYPE="string" CLASSORIGIN="CIM_InstMethodCall">
++<QUALIFIER NAME="Experimental" TYPE="boolean" TOSUBCLASS="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>Error&apos;s data is dependent on the PreCall property. When PreCall is TRUE, this property is NULL describing that there is no method Error instances (since the method has not yet executed). When PreCall is FALSE, Error contains an array of zero or more entries containing CIM_ERROR instances represented as an array of Embedded Instances.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="EmbeddedInstance" TYPE="string">
++<VALUE>CIM_Error</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_InstMethodCall.PreCall</VALUE>
++<VALUE>CIM_InstMethodCall.ReturnValue</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY.ARRAY>
++<PROPERTY NAME="PreCall"  CLASSORIGIN="CIM_InstMethodCall" TYPE="boolean">
++<QUALIFIER NAME="Required" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>Boolean indicating whether the Indication is sent before the method begins executing (TRUE) or when the method completes (FALSE). When TRUE, the inherited property SourceInstance contains the value of the instance (the properties defined by the Filter&apos;s Query clause), before execution of the method. When PreCall is FALSE, SourceInstance embeds the instance as it appears after the completion of the method.</VALUE>
++</QUALIFIER>
++</PROPERTY>
++</CLASS>
+diff --git a/src/Pegasus/Common/tests/SCMOStreamer/CIM_Message.xml b/src/Pegasus/Common/tests/SCMOStreamer/CIM_Message.xml
+new file mode 100644
+index 0000000..d966c53
+--- /dev/null
++++ b/src/Pegasus/Common/tests/SCMOStreamer/CIM_Message.xml
+@@ -0,0 +1,82 @@
++<CLASS NAME="CIM_Message" >
++<QUALIFIER NAME="INDICATION" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Experimental" TYPE="boolean" TOSUBCLASS="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Version" TYPE="string" TOSUBCLASS="false" TRANSLATABLE="true">
++<VALUE>2.30.0</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Exception" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="UMLPackagePath" TYPE="string">
++<VALUE>CIM::Interop</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>CIM_Message instances represent DMTF standard messages that contain identification of the message, dynamic message arguments and the expanded message text. They can be used for returning detailed information from methods.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Error</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++<PROPERTY NAME="OwningEntity"  CLASSORIGIN="CIM_Message" TYPE="string">
++<QUALIFIER NAME="Required" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>A string that uniquely identifies the entity that owns the definition of the message. OwningEntity shall include a copyrighted, trademarked or otherwise unique name that is owned by the business entity or standards body defining the message.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Message.MessageID</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="MessageID"  CLASSORIGIN="CIM_Message" TYPE="string">
++<QUALIFIER NAME="Required" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>An opaque string that uniquely identifies, within the scope of the OwningEntity, the format of the Message.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Message.OwningEntity</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="ContinuedInNextMessage"  CLASSORIGIN="CIM_Message" TYPE="boolean">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>An indicator that allows combining multiple messages into one logical message. The messages being combined need to be consecutive messages in an ordered sequence of messages (e.g. an indexed array of embedded instances of CIM_Message).&#10;A value of True indicates that the logical message continues with the next message after this message.&#10;A value of False or Null indicates that the logical message ends at this message.&#10;For instances of CIM_Message that are not part of an ordered sequence of messages, this property is meaningless and shall be Null.</VALUE>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="Message"  CLASSORIGIN="CIM_Message" TYPE="string">
++<QUALIFIER NAME="Required" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>The message text, with all dynamic elements expanded.&#10;The property value shall constructed by combining all static and dynamic message elements defined in the message definition in the order defined, using the values specified in the MessageArguments array property for the dynamic elements, in the order of the array.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Message.MessageArguments</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY.ARRAY NAME="MessageArguments"  TYPE="string" CLASSORIGIN="CIM_Message">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>An array containing the values of the dynamic elements of the message, in the order in which the dynamic elements are defined in the message definition.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ArrayType" TYPE="string" OVERRIDABLE="false">
++<VALUE>Indexed</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="ModelCorrespondence" TYPE="string">
++<VALUE.ARRAY>
++<VALUE>CIM_Message.Message</VALUE>
++</VALUE.ARRAY>
++</QUALIFIER>
++</PROPERTY.ARRAY>
++</CLASS>
+diff --git a/src/Pegasus/Common/tests/SCMOStreamer/CIM_MethodResult.xml b/src/Pegasus/Common/tests/SCMOStreamer/CIM_MethodResult.xml
+new file mode 100644
+index 0000000..32aa910
+--- /dev/null
++++ b/src/Pegasus/Common/tests/SCMOStreamer/CIM_MethodResult.xml
+@@ -0,0 +1,38 @@
++<CLASS NAME="CIM_MethodResult"  SUPERCLASS="CIM_ManagedElement" >
++<QUALIFIER NAME="Version" TYPE="string" TOSUBCLASS="false" TRANSLATABLE="true">
++<VALUE>2.31.0</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="UMLPackagePath" TYPE="string">
++<VALUE>CIM::System::Processing</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>Jobs are sometimes used to represent extrinsic method invocations that execute for times longer than the length of time is reasonable to require a client to wait. The method executing continues beyond the method return to the client. The class provides the result of the execution of a Job that was itself started by the side-effect of this extrinsic method invocation. &#10;The indication instances embedded an instance of this class shall be the same indications delivered to listening clients or recorded, all or in part, to logs. Basically, this approach is a corollary to the functionality provided by an instance of ListenerDestinationLog (as defined in the Interop Model). The latter provides a comprehensive, persistent mechanism for recording Job results, but is also more resource-intensive and requires supporting logging functionality. Both the extra resources and logging may not be available in all environments (for example, embedded environments). Therefore, this i
 nstance-based approach is also provided. &#10;The MethodResult instances shall not exist after the associated ConcreteJob is deleted.</VALUE>
++</QUALIFIER>
++<PROPERTY NAME="InstanceID"  CLASSORIGIN="CIM_ManagedElement" TYPE="string">
++<QUALIFIER NAME="Key" TYPE="boolean" OVERRIDABLE="false">
++<VALUE>TRUE</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Override" TYPE="string" TOSUBCLASS="false">
++<VALUE>InstanceID</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class. In order to ensure uniqueness within the NameSpace, the value of InstanceID SHOULD be constructed using the following &apos;preferred&apos; algorithm: &#10;&lt;OrgID&gt;:&lt;LocalID&gt; &#10;Where &lt;OrgID&gt; and &lt;LocalID&gt; are separated by a colon &apos;:&apos;, and where &lt;OrgID&gt; MUST include a copyrighted, trademarked or otherwise unique name that is owned by the business entity creating/defining the InstanceID, or is a registered ID that is assigned to the business entity by a recognized global authority (This is similar to the &lt;Schema Name&gt;_&lt;Class Name&gt; structure of Schema class names.) In addition, to ensure uniqueness &lt;OrgID&gt; MUST NOT contain a colon (&apos;:&apos;). When using this algorithm, the first colon to appear in InstanceID MUST appear between &lt;OrgID&gt; and &lt;LocalID&gt;. &#10;&lt;LocalID&gt; is ch
 osen by the business entity and SHOULD not be re-used to identify different underlying (real-world) elements. If the above &apos;preferred&apos; algorithm is not used, the defining entity MUST assure that the resultant InstanceID is not re-used across any InstanceIDs produced by this or other providers for this instance&apos;s NameSpace. &#10;For DMTF defined instances, the &apos;preferred&apos; algorithm MUST be used with the &lt;OrgID&gt; set to &apos;CIM&apos;.</VALUE>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="PreCallIndication"  CLASSORIGIN="CIM_MethodResult" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>This property contains a CIM_InstMethodCall Indication that describes the pre-execution values of the extrinisic method invocation.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="EmbeddedInstance" TYPE="string">
++<VALUE>CIM_InstMethodCall</VALUE>
++</QUALIFIER>
++</PROPERTY>
++<PROPERTY NAME="PostCallIndication"  CLASSORIGIN="CIM_MethodResult" TYPE="string">
++<QUALIFIER NAME="Description" TYPE="string" TRANSLATABLE="true">
++<VALUE>This property contains a CIM_InstMethodCall Indication that describes the post-execution values of the extrinisic method invocation.</VALUE>
++</QUALIFIER>
++<QUALIFIER NAME="EmbeddedInstance" TYPE="string">
++<VALUE>CIM_InstMethodCall</VALUE>
++</QUALIFIER>
++</PROPERTY>
++</CLASS>
+diff --git a/src/Pegasus/Common/tests/SCMOStreamer/Makefile b/src/Pegasus/Common/tests/SCMOStreamer/Makefile
+new file mode 100644
+index 0000000..3b905c9
+--- /dev/null
++++ b/src/Pegasus/Common/tests/SCMOStreamer/Makefile
+@@ -0,0 +1,45 @@
++#//%LICENSE////////////////////////////////////////////////////////////////
++#//
++#// Licensed to The Open Group (TOG) under one or more contributor license
++#// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
++#// this work for additional information regarding copyright ownership.
++#// Each contributor licenses this file to you under the OpenPegasus Open
++#// Source License; you may not use this file except in compliance with the
++#// License.
++#//
++#// 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 = ../../../../..
++DIR = Pegasus/Common/tests/SCMO
++include $(ROOT)/mak/config.mak
++include ../libraries.mak
++
++LOCAL_DEFINES = -DPEGASUS_INTERNALONLY
++
++PROGRAM = TestSCMOStreamer
++
++SOURCES = TestSCMOStreamer.cpp
++
++include $(ROOT)/mak/program.mak
++
++tests:
++	$(PROGRAM)
++
++poststarttests:
+diff --git a/src/Pegasus/Common/tests/SCMOStreamer/TestSCMOStreamer.cpp b/src/Pegasus/Common/tests/SCMOStreamer/TestSCMOStreamer.cpp
+new file mode 100644
+index 0000000..50da41e
+--- /dev/null
++++ b/src/Pegasus/Common/tests/SCMOStreamer/TestSCMOStreamer.cpp
+@@ -0,0 +1,239 @@
++//%LICENSE////////////////////////////////////////////////////////////////
++//
++// Licensed to The Open Group (TOG) under one or more contributor license
++// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
++// this work for additional information regarding copyright ownership.
++// Each contributor licenses this file to you under the OpenPegasus Open
++// Source License; you may not use this file except in compliance with the
++// License.
++//
++// 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.
++//
++//////////////////////////////////////////////////////////////////////////
++//
++//%/////////////////////////////////////////////////////////////////////////////
++
++#include <Pegasus/Common/XmlReader.h>
++#include <Pegasus/Common/XmlParser.h>
++#include <Pegasus/Common/Config.h>
++#include <Pegasus/Common/FileSystem.h>
++#include <Pegasus/Common/SCMOClassCache.h>
++#include <Pegasus/Common/CIMBuffer.h>
++#include <Pegasus/Common/SCMOStreamer.h>
++
++
++PEGASUS_USING_PEGASUS;
++PEGASUS_USING_STD;
++
++#define VCOUT if (verbose) cout
++
++static Boolean verbose;
++static Boolean loadClassOnce;
++
++const String TESTSCMO2XML("/src/Pegasus/Common/tests/SCMOStreamer/");
++
++#define TEST_INSTANCE_ID "my_instance_id"
++#define TEST_ERROR_SOURCE "my_error_source"
++#define TEST_PRE_METHOD_NAME "my_pre_method_name"
++#define TEST_POST_METHOD_NAME "my_post_method_name"
++
++SCMOClass _scmoClassCache_GetClass(
++    const CIMNamespaceName& nameSpace,
++    const CIMName& className)
++{
++    CIMClass cl;
++    Buffer text;
++
++    VCOUT << endl << "Loading class " << className.getString() << endl;
++
++    String filename (getenv("PEGASUS_ROOT"));
++    filename.append(TESTSCMO2XML);
++    filename.append(className.getString());
++    filename.append(".xml");
++
++    FileSystem::loadFileToMemory(text,(const char*)filename.getCString());
++
++    XmlParser theParser((char*)text.getData());
++    XmlReader::getObject(theParser,cl);
++
++    // The class was loaded.
++    loadClassOnce = true;
++
++    VCOUT << endl << "Done." << endl;
++
++    return SCMOClass(
++        cl, (const char*)nameSpace.getString().getCString());
++}
++
++
++void SCMOInstanceConverterTest()
++{
++
++    CIMClass CIM_CSClass;
++    CIMInstance CIM_CSInstance;
++    Buffer text;
++    CIMNamespaceName nm("root/cimv2");
++
++    VCOUT << endl << "SCMOStreamer Test.." << endl;
++
++    VCOUT << endl << "Loading classes" << endl;
++    CIMName CIM_MethodResultName("CIM_MethodResult");
++    SCMOClass CIM_MethodResult = _scmoClassCache_GetClass(nm, CIM_MethodResultName);
++
++    CIMName CIM_InstMethodCallName("CIM_InstMethodCall");
++    SCMOClass CIM_InstMethodCall = _scmoClassCache_GetClass(nm, CIM_InstMethodCallName);
++
++    CIMName CIM_ErrorName("CIM_Error");
++    SCMOClass CIM_Error = _scmoClassCache_GetClass(nm, CIM_ErrorName);
++
++    VCOUT << endl << "Creating CIM_Error instance" << endl;
++    SCMOInstance error = SCMOInstance(CIM_Error);
++    SCMBUnion val;
++    val.extString.pchar  = TEST_ERROR_SOURCE;
++    val.extString.length = strlen(val.extString.pchar);
++    error.setPropertyWithOrigin("ErrorSource", CIMTYPE_STRING, &val);
++
++    VCOUT << endl << "Creating PreCall instance" << endl;
++    SCMOInstance preCall = SCMOInstance(CIM_InstMethodCall);
++    val.extString.pchar  = TEST_PRE_METHOD_NAME;
++    val.extString.length = strlen(val.extString.pchar);
++    preCall.setPropertyWithOrigin("MethodName", CIMTYPE_STRING, &val);
++
++    VCOUT << endl << "Creating PostCall instance" << endl;
++    SCMOInstance postCall = SCMOInstance(CIM_InstMethodCall);
++    val.extString.pchar  = TEST_POST_METHOD_NAME;
++    val.extString.length = strlen(val.extString.pchar);
++    postCall.setPropertyWithOrigin("MethodName", CIMTYPE_STRING, &val);
++    val.extRefPtr = &error;
++    postCall.setPropertyWithOrigin("Error", CIMTYPE_INSTANCE, &val, true, 1);
++
++    VCOUT << endl << "Creating MethodResult instance" << endl;
++    SCMOInstance methodResult = SCMOInstance(CIM_MethodResult);
++    val.extString.pchar  = TEST_INSTANCE_ID;
++    val.extString.length = strlen(val.extString.pchar);
++    methodResult.setPropertyWithOrigin("InstanceID", CIMTYPE_STRING, &val);
++    val.extRefPtr = &preCall;
++    methodResult.setPropertyWithOrigin("PreCallIndication", CIMTYPE_INSTANCE, &val);
++    val.extRefPtr = &postCall;
++    methodResult.setPropertyWithOrigin("PostCallIndication", CIMTYPE_INSTANCE, &val);
++
++    VCOUT << "serialize" << endl;
++
++    Array<SCMOInstance> in;
++    in.append(methodResult);
++
++    CIMBuffer buf(4096);
++    buf.putSCMOInstanceA(in);
++    VCOUT << "serialize took " << buf.size() << endl;
++
++    VCOUT << "deserialize" << endl;
++    Array<SCMOInstance> out;
++    buf.rewind();
++    bool ret = buf.getSCMOInstanceA(out);
++    VCOUT << "deserialize returned " << ret << endl;
++    VCOUT << "out size " << out.size() << endl;
++
++    SCMOInstance &methodResult2 = out[0];
++
++    CIMType type;
++    const SCMBUnion *pval;
++    Boolean isArray;
++    Uint32 size;
++
++    //
++    methodResult2.getProperty("InstanceID", type, &pval, isArray, size);
++    PEGASUS_TEST_ASSERT(pval != NULL);
++    VCOUT << "Got Instance ID: " << pval->extString.pchar << endl;
++    PEGASUS_TEST_ASSERT(strcmp(pval->extString.pchar, TEST_INSTANCE_ID) == 0);
++
++    // check PreCallIndication
++    methodResult2.getProperty("PreCallIndication", type, &pval, isArray, size);
++    PEGASUS_TEST_ASSERT(pval != NULL);
++    SCMOInstance *preCall2 = pval->extRefPtr;
++
++    preCall2->getProperty("MethodName", type, &pval, isArray, size);
++    PEGASUS_TEST_ASSERT(pval != NULL);
++    VCOUT << "Got PreCallIndication.MethodName: " << pval->extString.pchar << endl;
++    PEGASUS_TEST_ASSERT(strcmp(pval->extString.pchar, TEST_PRE_METHOD_NAME) == 0);
++
++    // check PostCallIndication
++    methodResult2.getProperty("PostCallIndication", type, &pval, isArray, size);
++    PEGASUS_TEST_ASSERT(pval != NULL);
++    SCMOInstance *postCall2 = pval->extRefPtr;
++
++    postCall2->getProperty("MethodName", type, &pval, isArray, size);
++    PEGASUS_TEST_ASSERT(pval != NULL);
++    VCOUT << "Got PostCallIndication.MethodName: " << pval->extString.pchar << endl;
++    PEGASUS_TEST_ASSERT(strcmp(pval->extString.pchar, TEST_POST_METHOD_NAME) == 0);
++
++    // check error
++    postCall2->getProperty("Error", type, &pval, isArray, size);
++    PEGASUS_TEST_ASSERT(pval != NULL);
++    SCMOInstance *error2 = pval->extRefPtr;
++
++    error2->getProperty("ErrorSource", type, &pval, isArray, size);
++    PEGASUS_TEST_ASSERT(pval != NULL);
++    VCOUT << "Got Error[0].ErrorSource: " << pval->extString.pchar << endl;
++    PEGASUS_TEST_ASSERT(strcmp(pval->extString.pchar, TEST_ERROR_SOURCE) == 0);
++
++    VCOUT << endl << "Done." << endl << endl;
++}
++
++
++int main (int argc, char *argv[])
++{
++
++    CIMClass CIM_TESTClass2;
++
++    verbose = getenv("PEGASUS_TEST_VERBOSE") ? true : false;
++
++    try
++    {
++        // init the cache.
++        SCMOClassCache* _thecache = SCMOClassCache::getInstance();
++        _thecache->setCallBack(_scmoClassCache_GetClass);
++
++        SCMOInstanceConverterTest();
++
++         //destroy the cache.
++        _thecache->destroy();
++    }
++    catch (CIMException& e)
++    {
++        cout << endl << "CIMException: " ;
++        cout << e.getMessage() << endl << endl ;
++        exit(-1);
++    }
++
++    catch (Exception& e)
++    {
++        cout << endl << "Exception: " ;
++        cout << e.getMessage() << endl << endl ;
++        exit(-1);
++    }
++    catch (...)
++    {
++        cout << endl << "Unkown exception!" << endl << endl;
++        exit(-1);
++    }
++
++    cout << argv[0] << " +++++ passed all tests" << endl;
++    return 0;
++
++}
diff --git a/tog-pegasus.spec b/tog-pegasus.spec
index f7ee69f..18571d5 100644
--- a/tog-pegasus.spec
+++ b/tog-pegasus.spec
@@ -8,7 +8,7 @@
 
 Name:           tog-pegasus
 Version:        %{major_ver}.0
-Release:        14%{?dist}
+Release:        15%{?dist}
 Epoch:          2
 Summary:        OpenPegasus WBEM Services for Linux
 
@@ -85,6 +85,9 @@ Patch29:        pegasus-2.13.0-enable-subscriptions-for-nonprivileged-users.patc
 Patch30:        pegasus-2.13.0-SSLGeneration.patch
 # 31: bz#1111571, backported from upstream
 Patch31:        pegasus-2.13.0-CMGetKey-data-type-fix.patch
+# 32: bz#1038013, fixes wrong EmbeddedInstances from CIMOM callback,
+#     backported from upstream
+Patch32:        pegasus-2.13.0-wrong-embedded-instances-from-cimom-callback.patch
 
 BuildRequires:  procps, libstdc++, pam-devel
 BuildRequires:  openssl, openssl-devel
@@ -231,6 +234,7 @@ yes | mak/CreateDmtfSchema 238 %{SOURCE9} cim_schema_2.38.0
 %patch29 -p1 -b .enable-subscriptions-for-nonprivileged-users
 %patch30 -p1 -b .genssl
 %patch31 -p0 -b .CMGetKey-data-type-fix
+%patch32 -p1 -b .wrong-embedded-instances-from-cimom-callback
 
 
 %build
@@ -507,6 +511,10 @@ fi
 
 
 %changelog
+* Tue Aug 05 2014 Michal Minar <miminar at redhat.com> - 2:2.13.0-15
+- Fixed wrong instances from CIMOM callback
+  Resolves: #1038013
+
 * Tue Jul 01 2014 Vitezslav Crhonek <vcrhonek at redhat.com> - 2:2.13.0-14
 - Fix cmpi: CMGetKey() returns wrong data type for some data types
   Resolves: #1111571


More information about the scm-commits mailing list