PEGASUS_USING_STD;
const CIMNamespaceName NAMESPACE = CIMNamespaceName ("root/PG_InterOp");
-const CIMNamespaceName SOURCENAMESPACE =
+const CIMNamespaceName SOURCENAMESPACE =
CIMNamespaceName ("root/SampleProvider");
Boolean verbose;
-void _createModuleInstance
- (CIMClient & client,
+void _createModuleInstance
+ (CIMClient & client,
const String & name,
const String & location)
{
CIMInstance moduleInstance (PEGASUS_CLASSNAME_PROVIDERMODULE);
moduleInstance.addProperty (CIMProperty (CIMName ("Name"), name));
- moduleInstance.addProperty (CIMProperty (CIMName ("Vendor"),
+ moduleInstance.addProperty (CIMProperty (CIMName ("Vendor"),
String ("Hewlett-Packard Company")));
- moduleInstance.addProperty (CIMProperty (CIMName ("Version"),
+ moduleInstance.addProperty (CIMProperty (CIMName ("Version"),
String ("2.0")));
moduleInstance.addProperty (CIMProperty (CIMName ("InterfaceType"),
String ("C++Default")));
- moduleInstance.addProperty (CIMProperty (CIMName ("InterfaceVersion"),
+ moduleInstance.addProperty (CIMProperty (CIMName ("InterfaceVersion"),
String ("2.2.0")));
moduleInstance.addProperty (CIMProperty (CIMName ("Location"), location));
CIMObjectPath path = client.createInstance (NAMESPACE, moduleInstance);
}
-void _createProviderInstance
- (CIMClient & client,
+void _createProviderInstance
+ (CIMClient & client,
const String & name,
const String & providerModuleName)
{
CIMInstance providerInstance (PEGASUS_CLASSNAME_PROVIDER);
providerInstance.addProperty (CIMProperty (CIMName ("Name"), name));
- providerInstance.addProperty (CIMProperty (CIMName ("ProviderModuleName"),
+ providerInstance.addProperty (CIMProperty (CIMName ("ProviderModuleName"),
providerModuleName));
CIMObjectPath path = client.createInstance (NAMESPACE, providerInstance);
}
-void _createCapabilityInstance
- (CIMClient & client,
+void _createCapabilityInstance
+ (CIMClient & client,
const String & providerModuleName,
const String & providerName,
const String & capabilityID,
providerName));
capabilityInstance.addProperty (CIMProperty (CIMName ("CapabilityID"),
capabilityID));
- capabilityInstance.addProperty (CIMProperty (CIMName ("ClassName"),
+ capabilityInstance.addProperty (CIMProperty (CIMName ("ClassName"),
className));
- capabilityInstance.addProperty (CIMProperty (CIMName ("Namespaces"),
+ capabilityInstance.addProperty (CIMProperty (CIMName ("Namespaces"),
namespaces));
capabilityInstance.addProperty (CIMProperty (CIMName ("ProviderType"),
providerTypes));
{
propertyNameStrings.append (supportedProperties [i].getString ());
}
- capabilityInstance.addProperty (CIMProperty
+ capabilityInstance.addProperty (CIMProperty
(CIMName ("supportedProperties"), propertyNameStrings));
}
CIMObjectPath path = client.createInstance (NAMESPACE, capabilityInstance);
}
-void _modifyCapabilityInstance
- (CIMClient & client,
+void _modifyCapabilityInstance
+ (CIMClient & client,
const String & providerModuleName,
const String & providerName,
const String & capabilityID,
{
propertyNameStrings.append (supportedProperties [i].getString ());
}
- capabilityInstance.addProperty (CIMProperty
+ capabilityInstance.addProperty (CIMProperty
(CIMName ("SupportedProperties"), propertyNameStrings));
}
Array <CIMKeyBinding> keyBindings;
keyBindings.append (CIMKeyBinding ("ProviderModuleName", providerModuleName,
CIMKeyBinding::STRING));
- keyBindings.append (CIMKeyBinding ("ProviderName", providerName,
+ keyBindings.append (CIMKeyBinding ("ProviderName", providerName,
CIMKeyBinding::STRING));
- keyBindings.append (CIMKeyBinding ("CapabilityID", capabilityID,
+ keyBindings.append (CIMKeyBinding ("CapabilityID", capabilityID,
CIMKeyBinding::STRING));
path.setClassName (PEGASUS_CLASSNAME_PROVIDERCAPABILITIES);
path.setKeyBindings (keyBindings);
{
if (null)
{
- instance.addProperty (CIMProperty (CIMName (name),
+ instance.addProperty (CIMProperty (CIMName (name),
CIMValue (CIMTYPE_STRING, false)));
}
else
{
if (null)
{
- instance.addProperty (CIMProperty (CIMName (name),
+ instance.addProperty (CIMProperty (CIMName (name),
CIMValue (CIMTYPE_UINT16, false)));
}
else
{
if (null)
{
- instance.addProperty (CIMProperty (CIMName (name),
+ instance.addProperty (CIMProperty (CIMName (name),
CIMValue (CIMTYPE_UINT32, false)));
}
else
{
if (null)
{
- instance.addProperty (CIMProperty (CIMName (name),
+ instance.addProperty (CIMProperty (CIMName (name),
CIMValue (CIMTYPE_UINT64, false)));
}
else
CIMObjectPath _buildFilterOrHandlerPath
(const CIMName & className,
- const String & name)
+ const String & name,
+ const CIMNamespaceName & namespaceName = CIMNamespaceName ())
{
CIMObjectPath path;
keyBindings.append (CIMKeyBinding ("Name", name, CIMKeyBinding::STRING));
path.setClassName (className);
path.setKeyBindings (keyBindings);
+ path.setNameSpace (namespaceName);
return path;
}
-CIMObjectPath _buildSubscriptionPath
+CIMObjectPath _buildSubscriptionPath
(const String & filterName,
const CIMName & handlerClass,
- const String & handlerName)
+ const String & handlerName,
+ const CIMNamespaceName & filterNS,
+ const CIMNamespaceName & handlerNS)
{
- CIMObjectPath filterPath = _buildFilterOrHandlerPath
- (PEGASUS_CLASSNAME_INDFILTER, filterName);
+ CIMObjectPath filterPath = _buildFilterOrHandlerPath
+ (PEGASUS_CLASSNAME_INDFILTER, filterName, filterNS);
- CIMObjectPath handlerPath = _buildFilterOrHandlerPath (handlerClass,
- handlerName);
+ CIMObjectPath handlerPath = _buildFilterOrHandlerPath (handlerClass,
+ handlerName, handlerNS);
Array<CIMKeyBinding> subscriptionKeyBindings;
subscriptionKeyBindings.append (CIMKeyBinding ("Filter",
return subscriptionPath;
}
+CIMObjectPath _buildSubscriptionPath
+ (const String & filterName,
+ const CIMName & handlerClass,
+ const String & handlerName)
+{
+ return _buildSubscriptionPath (filterName, handlerClass, handlerName,
+ CIMNamespaceName (), CIMNamespaceName ());
+}
+
CIMInstance _buildSubscriptionInstance
(const CIMObjectPath & filterPath,
const CIMName & handlerClass,
if (keyBindings [i].getName ().equal ("SystemCreationClassName"))
{
SCCNfound = true;
- PEGASUS_ASSERT (keyBindings [i].getValue () ==
+ PEGASUS_ASSERT (keyBindings [i].getValue () ==
System::getSystemCreationClassName ());
}
else if (keyBindings [i].getName ().equal ("SystemName"))
{
SNfound = true;
- PEGASUS_ASSERT (keyBindings [i].getValue () ==
+ PEGASUS_ASSERT (keyBindings [i].getValue () ==
System::getFullyQualifiedHostName ());
}
else if (keyBindings [i].getName ().equal ("CreationClassName"))
{
CCNfound = true;
- PEGASUS_ASSERT (keyBindings [i].getValue () ==
+ PEGASUS_ASSERT (keyBindings [i].getValue () ==
className.getString ());
}
else if (keyBindings [i].getName ().equal ("Name"))
Nfound = true;
PEGASUS_ASSERT (keyBindings [i].getValue () == name);
}
- else
+ else
{
PEGASUS_ASSERT (false);
}
(const CIMObjectPath & path,
const String & filterName,
const CIMName & handlerClass,
- const String & handlerName)
+ const String & handlerName,
+ const CIMNamespaceName & filterNS,
+ const CIMNamespaceName & handlerNS)
{
PEGASUS_ASSERT (path.getClassName () == PEGASUS_CLASSNAME_INDSUBSCRIPTION);
Array <CIMKeyBinding> keyBindings = path.getKeyBindings ();
if (keyBindings [i].getName ().equal ("Filter"))
{
filterFound = true;
- CIMObjectPath filterPath = _buildFilterOrHandlerPath
- (PEGASUS_CLASSNAME_INDFILTER, filterName);
- PEGASUS_ASSERT (keyBindings [i].getValue () ==
+ CIMObjectPath filterPath = _buildFilterOrHandlerPath
+ (PEGASUS_CLASSNAME_INDFILTER, filterName, filterNS);
+ PEGASUS_ASSERT (keyBindings [i].getValue () ==
filterPath.toString ());
}
else if (keyBindings [i].getName ().equal ("Handler"))
{
handlerFound = true;
- CIMObjectPath handlerPath = _buildFilterOrHandlerPath
- (handlerClass, handlerName);
- PEGASUS_ASSERT (keyBindings [i].getValue () ==
+ CIMObjectPath handlerPath = _buildFilterOrHandlerPath
+ (handlerClass, handlerName, handlerNS);
+ PEGASUS_ASSERT (keyBindings [i].getValue () ==
handlerPath.toString ());
}
- else
+ else
{
PEGASUS_ASSERT (false);
}
PEGASUS_ASSERT (handlerFound);
}
+void _checkSubscriptionPath
+ (const CIMObjectPath & path,
+ const String & filterName,
+ const CIMName & handlerClass,
+ const String & handlerName)
+{
+ _checkSubscriptionPath (path, filterName, handlerClass, handlerName,
+ CIMNamespaceName (), CIMNamespaceName ());
+}
+
void _checkStringProperty
(CIMInstance & instance,
const String & name,
PEGASUS_ASSERT (e.getCode () == expectedCode);
}
-void _deleteSubscriptionInstance
- (CIMClient & client,
+void _deleteSubscriptionInstance
+ (CIMClient & client,
const String & filterName,
const CIMName & handlerClass,
- const String & handlerName)
+ const String & handlerName,
+ const CIMNamespaceName & filterNS,
+ const CIMNamespaceName & handlerNS)
{
- CIMObjectPath subscriptionPath = _buildSubscriptionPath
- (filterName, handlerClass, handlerName);
+ CIMObjectPath subscriptionPath = _buildSubscriptionPath
+ (filterName, handlerClass, handlerName, filterNS, handlerNS);
client.deleteInstance (NAMESPACE, subscriptionPath);
}
-void _deleteHandlerInstance
- (CIMClient & client,
+void _deleteSubscriptionInstance
+ (CIMClient & client,
+ const String & filterName,
+ const CIMName & handlerClass,
+ const String & handlerName)
+{
+ _deleteSubscriptionInstance (client, filterName, handlerClass, handlerName,
+ CIMNamespaceName (), CIMNamespaceName ());
+}
+
+void _deleteHandlerInstance
+ (CIMClient & client,
const CIMName & className,
const String & name)
{
client.deleteInstance (NAMESPACE, path);
}
-void _deleteFilterInstance
- (CIMClient & client,
+void _deleteFilterInstance
+ (CIMClient & client,
const String & name)
{
- CIMObjectPath path = _buildFilterOrHandlerPath
+ CIMObjectPath path = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDFILTER, name);
client.deleteInstance (NAMESPACE, path);
}
-void _deleteCapabilityInstance
- (CIMClient & client,
+void _deleteCapabilityInstance
+ (CIMClient & client,
const String & providerModuleName,
const String & providerName,
const String & capabilityID)
client.deleteInstance (NAMESPACE, path);
}
-void _deleteProviderInstance
- (CIMClient & client,
+void _deleteProviderInstance
+ (CIMClient & client,
const String & name,
const String & providerModuleName)
{
client.deleteInstance (NAMESPACE, path);
}
-void _deleteModuleInstance
- (CIMClient & client,
+void _deleteModuleInstance
+ (CIMClient & client,
const String & name)
{
Array<CIMKeyBinding> keyBindings;
void _usage ()
{
- cerr
+ cerr
<< "Usage: TestSubscription "
- << "{register | test | unregister | cleanup }"
+ << "{register | test | unregister | cleanup }"
<< endl;
}
//
// Register the ProcessIndicationProvider
//
- _createModuleInstance (client,
- String ("ProcessIndicationProviderModule"),
+ _createModuleInstance (client,
+ String ("ProcessIndicationProviderModule"),
String ("ProcessIndicationProvider"));
- _createProviderInstance (client,
- String ("ProcessIndicationProvider"),
+ _createProviderInstance (client,
+ String ("ProcessIndicationProvider"),
String ("ProcessIndicationProviderModule"));
- _createCapabilityInstance (client,
- String ("ProcessIndicationProviderModule"),
+ _createCapabilityInstance (client,
+ String ("ProcessIndicationProviderModule"),
String ("ProcessIndicationProvider"),
String ("ProcessIndicationProviderCapability"),
String ("CIM_ProcessIndication"),
- namespaces,
+ namespaces,
providerTypes,
CIMPropertyList ());
//
// Register the AlertIndicationProvider
//
- _createModuleInstance (client,
- String ("AlertIndicationProviderModule"),
+ _createModuleInstance (client,
+ String ("AlertIndicationProviderModule"),
String ("AlertIndicationProvider"));
- _createProviderInstance (client,
- String ("AlertIndicationProvider"),
+ _createProviderInstance (client,
+ String ("AlertIndicationProvider"),
String ("AlertIndicationProviderModule"));
- _createCapabilityInstance (client,
- String ("AlertIndicationProviderModule"),
+ _createCapabilityInstance (client,
+ String ("AlertIndicationProviderModule"),
String ("AlertIndicationProvider"),
String ("AlertIndicationProviderCapability"),
String ("CIM_AlertIndication"),
- namespaces,
+ namespaces,
providerTypes,
CIMPropertyList ());
}
//
CIMInstance filter01 (PEGASUS_CLASSNAME_INDFILTER);
query = "SELECT * FROM CIM_ProcessIndication";
- _addStringProperty (filter01, "SystemCreationClassName",
+ _addStringProperty (filter01, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _addStringProperty (filter01, "SystemName",
+ _addStringProperty (filter01, "SystemName",
System::getFullyQualifiedHostName ());
- _addStringProperty (filter01, "CreationClassName",
+ _addStringProperty (filter01, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_addStringProperty (filter01, "Name", "Filter01");
- _addStringProperty (filter01, "SourceNamespace",
+ _addStringProperty (filter01, "SourceNamespace",
SOURCENAMESPACE.getString ());
_addStringProperty (filter01, "Query", query);
_addStringProperty (filter01, "QueryLanguage", qlang);
_checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDFILTER, "Filter01");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_checkStringProperty (retrievedInstance, "Name", "Filter01");
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
SOURCENAMESPACE.getString ());
_checkStringProperty (retrievedInstance, "Query", query);
_checkStringProperty (retrievedInstance, "QueryLanguage", qlang);
//
// Enumerate filters
//
- instances = client.enumerateInstances
+ instances = client.enumerateInstances
(NAMESPACE, PEGASUS_CLASSNAME_INDFILTER);
PEGASUS_ASSERT (instances.size () == 1);
- _checkStringProperty (instances [0], "SystemCreationClassName",
+ _checkStringProperty (instances [0], "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (instances [0], "SystemName",
+ _checkStringProperty (instances [0], "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (instances [0], "CreationClassName",
+ _checkStringProperty (instances [0], "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_checkStringProperty (instances [0], "Name", "Filter01");
- _checkStringProperty (instances [0], "SourceNamespace",
+ _checkStringProperty (instances [0], "SourceNamespace",
SOURCENAMESPACE.getString ());
_checkStringProperty (instances [0], "Query", query);
_checkStringProperty (instances [0], "QueryLanguage", qlang);
paths = client.enumerateInstanceNames
(NAMESPACE, PEGASUS_CLASSNAME_INDFILTER);
PEGASUS_ASSERT (paths.size () == 1);
- _checkFilterOrHandlerPath (paths [0], PEGASUS_CLASSNAME_INDFILTER,
+ _checkFilterOrHandlerPath (paths [0], PEGASUS_CLASSNAME_INDFILTER,
"Filter01");
//
- // Create filter that selects some properties from
+ // Create filter that selects some properties from
// CIM_ProcessIndication
//
CIMInstance filter02 (PEGASUS_CLASSNAME_INDFILTER);
_addStringProperty (filter02, "Name", "Filter02");
_addStringProperty (filter02, "Query", query);
_addStringProperty (filter02, "QueryLanguage", qlang);
- _addStringProperty (filter02, "SourceNamespace",
+ _addStringProperty (filter02, "SourceNamespace",
SOURCENAMESPACE.getString ());
path = client.createInstance (NAMESPACE, filter02);
_checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDFILTER, "Filter02");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_checkStringProperty (retrievedInstance, "Name", "Filter02");
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
SOURCENAMESPACE.getString ());
_checkStringProperty (retrievedInstance, "Query", query);
_checkStringProperty (retrievedInstance, "QueryLanguage", qlang);
_addStringProperty (filter03, "Name", "Filter03");
_addStringProperty (filter03, "Query", query);
_addStringProperty (filter03, "QueryLanguage", qlang);
- _addStringProperty (filter03, "SourceNamespace",
+ _addStringProperty (filter03, "SourceNamespace",
SOURCENAMESPACE.getString ());
path = client.createInstance (NAMESPACE, filter03);
_checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDFILTER, "Filter03");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_checkStringProperty (retrievedInstance, "Name", "Filter03");
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
SOURCENAMESPACE.getString ());
_checkStringProperty (retrievedInstance, "Query", query);
_checkStringProperty (retrievedInstance, "QueryLanguage", qlang);
_addStringProperty (filter04, "Name", "Filter04");
_addStringProperty (filter04, "Query", query);
_addStringProperty (filter04, "QueryLanguage", qlang);
- _addStringProperty (filter04, "SourceNamespace",
+ _addStringProperty (filter04, "SourceNamespace",
SOURCENAMESPACE.getString ());
path = client.createInstance (NAMESPACE, filter04);
_checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDFILTER, "Filter04");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_checkStringProperty (retrievedInstance, "Name", "Filter04");
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
SOURCENAMESPACE.getString ());
_checkStringProperty (retrievedInstance, "Query", query);
_checkStringProperty (retrievedInstance, "QueryLanguage", qlang);
_addStringProperty (filter04a, "Name", "Filter04a");
_addStringProperty (filter04a, "Query", query);
_addStringProperty (filter04a, "QueryLanguage", "CIM:CQL"); // hardcode to CQL
- _addStringProperty (filter04a, "SourceNamespace",
+ _addStringProperty (filter04a, "SourceNamespace",
SOURCENAMESPACE.getString ());
path = client.createInstance (NAMESPACE, filter04a);
_checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDFILTER, "Filter04a");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_checkStringProperty (retrievedInstance, "Name", "Filter04a");
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
SOURCENAMESPACE.getString ());
_checkStringProperty (retrievedInstance, "Query", query);
_checkStringProperty (retrievedInstance, "QueryLanguage", "CIM:CQL"); // hardcode to CQL
_addStringProperty (filter05, "Name", "Filter05");
_addStringProperty (filter05, "Query", query);
_addStringProperty (filter05, "QueryLanguage", qlang);
- _addStringProperty (filter05, "SourceNamespace",
+ _addStringProperty (filter05, "SourceNamespace",
SOURCENAMESPACE.getString ());
path = client.createInstance (NAMESPACE, filter05);
_checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDFILTER, "Filter05");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_checkStringProperty (retrievedInstance, "Name", "Filter05");
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
SOURCENAMESPACE.getString ());
_checkStringProperty (retrievedInstance, "Query", query);
_checkStringProperty (retrievedInstance, "QueryLanguage", qlang);
_addStringProperty (filter06, "Name", "Filter06");
_addStringProperty (filter06, "Query", query);
_addStringProperty (filter06, "QueryLanguage", qlang);
- _addStringProperty (filter06, "SourceNamespace",
+ _addStringProperty (filter06, "SourceNamespace",
SOURCENAMESPACE.getString ());
path = client.createInstance (NAMESPACE, filter06);
_checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDFILTER, "Filter06");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
_checkStringProperty (retrievedInstance, "Name", "Filter06");
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
SOURCENAMESPACE.getString ());
_checkStringProperty (retrievedInstance, "Query", query);
_checkStringProperty (retrievedInstance, "QueryLanguage", qlang);
// Create persistent CIMXML handler
//
CIMInstance handler01 (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
- _addStringProperty (handler01, "SystemCreationClassName",
+ _addStringProperty (handler01, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _addStringProperty (handler01, "SystemName",
+ _addStringProperty (handler01, "SystemName",
System::getFullyQualifiedHostName ());
- _addStringProperty (handler01, "CreationClassName",
+ _addStringProperty (handler01, "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML.getString ());
_addStringProperty (handler01, "Name", "Handler01");
_addStringProperty (handler01, "Owner", "an owner");
_addUint16Property (handler01, "PersistenceType", 2);
_addStringProperty (handler01, "OtherPersistenceType", String::EMPTY, true);
- _addStringProperty (handler01, "Destination",
+ _addStringProperty (handler01, "Destination",
"localhost/CIMListener/test1");
path = client.createInstance (NAMESPACE, handler01);
- _checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler01");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML.getString ());
_checkStringProperty (retrievedInstance, "Name", "Handler01");
_checkStringProperty (retrievedInstance, "Owner", "an owner");
_checkUint16Property (retrievedInstance, "PersistenceType", 2);
- _checkStringProperty (retrievedInstance, "OtherPersistenceType",
+ _checkStringProperty (retrievedInstance, "OtherPersistenceType",
String::EMPTY, true);
- _checkStringProperty (retrievedInstance, "Destination",
+ _checkStringProperty (retrievedInstance, "Destination",
"localhost/CIMListener/test1");
//
// Enumerate handlers
//
- instances = client.enumerateInstances
+ instances = client.enumerateInstances
(NAMESPACE, PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
PEGASUS_ASSERT (instances.size () == 1);
- _checkStringProperty (instances [0], "SystemCreationClassName",
+ _checkStringProperty (instances [0], "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (instances [0], "SystemName",
+ _checkStringProperty (instances [0], "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (instances [0], "CreationClassName",
+ _checkStringProperty (instances [0], "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML.getString ());
_checkStringProperty (instances [0], "Name", "Handler01");
_checkStringProperty (instances [0], "Owner", "an owner");
_checkUint16Property (instances [0], "PersistenceType", 2);
- _checkStringProperty (instances [0], "OtherPersistenceType",
+ _checkStringProperty (instances [0], "OtherPersistenceType",
String::EMPTY, true);
- _checkStringProperty (instances [0], "Destination",
+ _checkStringProperty (instances [0], "Destination",
"localhost/CIMListener/test1");
//
CIMInstance handler02 (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler02, "Name", "Handler02");
_addUint16Property (handler02, "PersistenceType", 3);
- _addStringProperty (handler02, "Destination",
+ _addStringProperty (handler02, "Destination",
"localhost/CIMListener/test2");
path = client.createInstance (NAMESPACE, handler02);
- _checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler02");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML.getString ());
_checkStringProperty (retrievedInstance, "Name", "Handler02");
_checkUint16Property (retrievedInstance, "PersistenceType", 3);
- _checkStringProperty (retrievedInstance, "Destination",
+ _checkStringProperty (retrievedInstance, "Destination",
"localhost/CIMListener/test2");
//
// Create persistent SNMP handler
//
CIMInstance handler03 (PEGASUS_CLASSNAME_INDHANDLER_SNMP);
- _addStringProperty (handler03, "SystemCreationClassName",
+ _addStringProperty (handler03, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _addStringProperty (handler03, "SystemName",
+ _addStringProperty (handler03, "SystemName",
System::getFullyQualifiedHostName ());
- _addStringProperty (handler03, "CreationClassName",
+ _addStringProperty (handler03, "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_SNMP.getString ());
_addStringProperty (handler03, "Name", "Handler03");
_addStringProperty (handler03, "Owner", "an owner");
_addStringProperty (handler03, "SNMPEngineID", "an ID");
path = client.createInstance (NAMESPACE, handler03);
- _checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDHANDLER_SNMP,
+ _checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_INDHANDLER_SNMP,
"Handler03");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_SNMP.getString ());
_checkStringProperty (retrievedInstance, "Name", "Handler03");
_checkStringProperty (retrievedInstance, "Owner", "an owner");
_checkUint16Property (retrievedInstance, "PersistenceType", 2);
- _checkStringProperty (retrievedInstance, "OtherPersistenceType",
+ _checkStringProperty (retrievedInstance, "OtherPersistenceType",
String::EMPTY, true);
_checkStringProperty (retrievedInstance, "TargetHost", "localhost");
_checkUint16Property (retrievedInstance, "TargetHostFormat", 2);
//
// Enumerate handlers
//
- instances = client.enumerateInstances
+ instances = client.enumerateInstances
(NAMESPACE, PEGASUS_CLASSNAME_INDHANDLER_SNMP);
PEGASUS_ASSERT (instances.size () == 1);
- _checkStringProperty (instances [0], "SystemCreationClassName",
+ _checkStringProperty (instances [0], "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (instances [0], "SystemName",
+ _checkStringProperty (instances [0], "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (instances [0], "CreationClassName",
+ _checkStringProperty (instances [0], "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_SNMP.getString ());
_checkStringProperty (instances [0], "Name", "Handler03");
_checkStringProperty (instances [0], "Owner", "an owner");
_checkUint16Property (instances [0], "PersistenceType", 2);
- _checkStringProperty (instances [0], "OtherPersistenceType",
+ _checkStringProperty (instances [0], "OtherPersistenceType",
String::EMPTY, true);
_checkStringProperty (instances [0], "TargetHost", "localhost");
_checkUint16Property (instances [0], "TargetHostFormat", 2);
// Create persistent CIMXML listener destination
//
CIMInstance listenerdestination01 (PEGASUS_CLASSNAME_LSTNRDST_CIMXML);
- _addStringProperty (listenerdestination01, "SystemCreationClassName",
+ _addStringProperty (listenerdestination01, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _addStringProperty (listenerdestination01, "SystemName",
+ _addStringProperty (listenerdestination01, "SystemName",
System::getFullyQualifiedHostName ());
- _addStringProperty (listenerdestination01, "CreationClassName",
+ _addStringProperty (listenerdestination01, "CreationClassName",
PEGASUS_CLASSNAME_LSTNRDST_CIMXML.getString ());
- _addStringProperty (listenerdestination01, "Name",
+ _addStringProperty (listenerdestination01, "Name",
"ListenerDestination01");
_addUint16Property (listenerdestination01, "PersistenceType", 2);
- _addStringProperty (listenerdestination01, "OtherPersistenceType",
+ _addStringProperty (listenerdestination01, "OtherPersistenceType",
String::EMPTY, true);
- _addStringProperty (listenerdestination01, "Destination",
+ _addStringProperty (listenerdestination01, "Destination",
"localhost/CIMListener/test3");
path = client.createInstance (NAMESPACE, listenerdestination01);
- _checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _checkFilterOrHandlerPath (path, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination01");
retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_LSTNRDST_CIMXML.getString ());
_checkStringProperty (retrievedInstance, "Name", "ListenerDestination01");
_checkUint16Property (retrievedInstance, "PersistenceType", 2);
- _checkStringProperty (retrievedInstance, "OtherPersistenceType",
+ _checkStringProperty (retrievedInstance, "OtherPersistenceType",
String::EMPTY, true);
- _checkStringProperty (retrievedInstance, "Destination",
+ _checkStringProperty (retrievedInstance, "Destination",
"localhost/CIMListener/test3");
//
// Enumerate listener destinations
//
- instances = client.enumerateInstances
+ instances = client.enumerateInstances
(NAMESPACE, PEGASUS_CLASSNAME_LSTNRDST_CIMXML);
PEGASUS_ASSERT (instances.size () == 1);
- _checkStringProperty (instances [0], "SystemCreationClassName",
+ _checkStringProperty (instances [0], "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (instances [0], "SystemName",
+ _checkStringProperty (instances [0], "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (instances [0], "CreationClassName",
+ _checkStringProperty (instances [0], "CreationClassName",
PEGASUS_CLASSNAME_LSTNRDST_CIMXML.getString ());
_checkStringProperty (instances [0], "Name", "ListenerDestination01");
_checkUint16Property (instances [0], "PersistenceType", 2);
- _checkStringProperty (instances [0], "OtherPersistenceType",
+ _checkStringProperty (instances [0], "OtherPersistenceType",
String::EMPTY, true);
- _checkStringProperty (instances [0], "Destination",
+ _checkStringProperty (instances [0], "Destination",
"localhost/CIMListener/test3");
//
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler01"));
_addUint16Property (subscription01, "OnFatalErrorPolicy", 2);
- _addStringProperty (subscription01, "OtherOnFatalErrorPolicy",
+ _addStringProperty (subscription01, "OtherOnFatalErrorPolicy",
String::EMPTY, true);
_addUint64Property (subscription01, "FailureTriggerTimeInterval", 60);
_addUint16Property (subscription01, "SubscriptionState", 2);
_addStringProperty (subscription01, "OtherSubscriptionState", String::EMPTY,
true);
- _addUint64Property (subscription01, "SubscriptionDuration",
+ _addUint64Property (subscription01, "SubscriptionDuration",
PEGASUS_UINT64_LITERAL(60000000000));
_addUint16Property (subscription01, "RepeatNotificationPolicy", 1);
- _addStringProperty (subscription01, "OtherRepeatNotificationPolicy",
+ _addStringProperty (subscription01, "OtherRepeatNotificationPolicy",
"another policy");
_addUint64Property (subscription01, "RepeatNotificationInterval", 60);
_addUint64Property (subscription01, "RepeatNotificationGap", 30);
_addUint16Property (subscription01, "RepeatNotificationCount", 5);
path = client.createInstance (NAMESPACE, subscription01);
- _checkSubscriptionPath (path, "Filter01",
+ _checkSubscriptionPath (path, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
- _checkStringProperty (retrievedInstance, "OtherOnFatalErrorPolicy",
+ _checkStringProperty (retrievedInstance, "OtherOnFatalErrorPolicy",
String::EMPTY, true);
_checkUint64Property (retrievedInstance, "FailureTriggerTimeInterval", 60);
_checkUint16Property (retrievedInstance, "SubscriptionState", 2);
- _checkStringProperty (retrievedInstance, "OtherSubscriptionState",
+ _checkStringProperty (retrievedInstance, "OtherSubscriptionState",
String::EMPTY, true);
- _checkUint64Property (retrievedInstance, "SubscriptionDuration",
+ _checkUint64Property (retrievedInstance, "SubscriptionDuration",
PEGASUS_UINT64_LITERAL(60000000000));
_checkUint16Property (retrievedInstance, "RepeatNotificationPolicy", 1);
- _checkStringProperty (retrievedInstance, "OtherRepeatNotificationPolicy",
+ _checkStringProperty (retrievedInstance, "OtherRepeatNotificationPolicy",
"another policy");
_checkUint64Property (retrievedInstance, "RepeatNotificationInterval", 60);
_checkUint64Property (retrievedInstance, "RepeatNotificationGap", 30);
//
// Enumerate subscriptions
//
- instances = client.enumerateInstances
+ instances = client.enumerateInstances
(NAMESPACE, PEGASUS_CLASSNAME_INDSUBSCRIPTION);
PEGASUS_ASSERT (instances.size () == 1);
_checkUint16Property (instances [0], "OnFatalErrorPolicy", 2);
- _checkStringProperty (instances [0], "OtherOnFatalErrorPolicy",
+ _checkStringProperty (instances [0], "OtherOnFatalErrorPolicy",
String::EMPTY, true);
_checkUint64Property (instances [0], "FailureTriggerTimeInterval", 60);
_checkUint16Property (instances [0], "SubscriptionState", 2);
- _checkStringProperty (instances [0], "OtherSubscriptionState",
+ _checkStringProperty (instances [0], "OtherSubscriptionState",
String::EMPTY, true);
- _checkUint64Property (instances [0], "SubscriptionDuration",
+ _checkUint64Property (instances [0], "SubscriptionDuration",
PEGASUS_UINT64_LITERAL(60000000000));
_checkUint16Property (instances [0], "RepeatNotificationPolicy", 1);
- _checkStringProperty (instances [0], "OtherRepeatNotificationPolicy",
+ _checkStringProperty (instances [0], "OtherRepeatNotificationPolicy",
"another policy");
_checkUint64Property (instances [0], "RepeatNotificationInterval", 60);
_checkUint64Property (instances [0], "RepeatNotificationGap", 30);
paths = client.enumerateInstanceNames
(NAMESPACE, PEGASUS_CLASSNAME_INDSUBSCRIPTION);
PEGASUS_ASSERT (paths.size () == 1);
- _checkSubscriptionPath (path, "Filter01",
+ _checkSubscriptionPath (path, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
CIMInstance subscription02 = _buildSubscriptionInstance
"Handler01"));
path = client.createInstance (NAMESPACE, subscription02);
- _checkSubscriptionPath (path, "Filter02",
+ _checkSubscriptionPath (path, "Filter02",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
"Handler01"));
path = client.createInstance (NAMESPACE, subscription03);
- _checkSubscriptionPath (path, "Filter03",
+ _checkSubscriptionPath (path, "Filter03",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
"Handler01"));
path = client.createInstance (NAMESPACE, subscription04);
- _checkSubscriptionPath (path, "Filter04",
+ _checkSubscriptionPath (path, "Filter04",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
"Handler01"));
path = client.createInstance (NAMESPACE, subscription05);
- _checkSubscriptionPath (path, "Filter05",
+ _checkSubscriptionPath (path, "Filter05",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
"Handler01"));
path = client.createInstance (NAMESPACE, subscription06);
- _checkSubscriptionPath (path, "Filter06",
+ _checkSubscriptionPath (path, "Filter06",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
"Handler02"));
path = client.createInstance (NAMESPACE, subscription07);
- _checkSubscriptionPath (path, "Filter01",
+ _checkSubscriptionPath (path, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler02");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
//
// Delete transient handler - referencing subscription must be deleted
//
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler02");
try
{
"Handler03"));
path = client.createInstance (NAMESPACE, subscription08);
- _checkSubscriptionPath (path, "Filter01",
+ _checkSubscriptionPath (path, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_SNMP, "Handler03");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
"ListenerDestination01"));
path = client.createInstance (NAMESPACE, subscription09);
- _checkSubscriptionPath (path, "Filter01",
+ _checkSubscriptionPath (path, "Filter01",
PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination01");
retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
//
// Enumerate filters
//
- instances = client.enumerateInstances (NAMESPACE,
+ instances = client.enumerateInstances (NAMESPACE,
PEGASUS_CLASSNAME_INDFILTER);
#ifndef PEGASUS_DISABLE_CQL
PEGASUS_ASSERT (instances.size () == 7);
#endif
- paths = client.enumerateInstanceNames (NAMESPACE,
+ paths = client.enumerateInstanceNames (NAMESPACE,
PEGASUS_CLASSNAME_INDFILTER);
#ifndef PEGASUS_DISABLE_CQL
PEGASUS_ASSERT (paths.size () == 7);
//
// Enumerate handlers and listener destinations
//
- Array <CIMInstance> handlers = client.enumerateInstances
+ Array <CIMInstance> handlers = client.enumerateInstances
(NAMESPACE, PEGASUS_CLASSNAME_INDHANDLER);
PEGASUS_ASSERT (handlers.size () == 2);
- Array <CIMInstance> listDests = client.enumerateInstances
+ Array <CIMInstance> listDests = client.enumerateInstances
(NAMESPACE, PEGASUS_CLASSNAME_LSTNRDST);
PEGASUS_ASSERT (listDests.size () == 3);
Array <CIMObjectPath> cimxmlHandlerPaths = client.enumerateInstanceNames
(NAMESPACE, PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
PEGASUS_ASSERT (cimxmlHandlerPaths.size () == 1);
- _checkFilterOrHandlerPath (cimxmlHandlerPaths [0],
+ _checkFilterOrHandlerPath (cimxmlHandlerPaths [0],
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
Array <CIMObjectPath> snmpHandlerPaths = client.enumerateInstanceNames
(NAMESPACE, PEGASUS_CLASSNAME_INDHANDLER_SNMP);
PEGASUS_ASSERT (snmpHandlerPaths.size () == 1);
- _checkFilterOrHandlerPath (snmpHandlerPaths [0],
+ _checkFilterOrHandlerPath (snmpHandlerPaths [0],
PEGASUS_CLASSNAME_INDHANDLER_SNMP, "Handler03");
Array <CIMObjectPath> handlerPaths = client.enumerateInstanceNames
Array <CIMObjectPath> cimxmlListDestPaths = client.enumerateInstanceNames
(NAMESPACE, PEGASUS_CLASSNAME_LSTNRDST_CIMXML);
PEGASUS_ASSERT (cimxmlListDestPaths.size () == 1);
- _checkFilterOrHandlerPath (cimxmlListDestPaths [0],
+ _checkFilterOrHandlerPath (cimxmlListDestPaths [0],
PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination01");
//
// Enumerate subscriptions
//
- Array <CIMInstance> subscriptions = client.enumerateInstances
+ Array <CIMInstance> subscriptions = client.enumerateInstances
(NAMESPACE, PEGASUS_CLASSNAME_INDSUBSCRIPTION);
PEGASUS_ASSERT (subscriptions.size () == 8);
providerTypes.append (4);
propertyNames.append (CIMName ("IndicationTime"));
CIMPropertyList properties (propertyNames);
- _createProviderInstance (client,
- String ("ProcessIndicationProvider2"),
+ _createProviderInstance (client,
+ String ("ProcessIndicationProvider2"),
String ("ProcessIndicationProviderModule"));
- _createCapabilityInstance (client,
- String ("ProcessIndicationProviderModule"),
+ _createCapabilityInstance (client,
+ String ("ProcessIndicationProviderModule"),
String ("ProcessIndicationProvider2"),
String ("ProcessIndicationProviderCapability2"),
String ("CIM_ProcessIndication"),
- namespaces,
+ namespaces,
providerTypes,
properties);
propertyNames.append (CIMName ("IndicationIdentifier"));
properties.clear ();
properties.set (propertyNames);
- _modifyCapabilityInstance (client,
- String ("ProcessIndicationProviderModule"),
+ _modifyCapabilityInstance (client,
+ String ("ProcessIndicationProviderModule"),
String ("ProcessIndicationProvider2"),
String ("ProcessIndicationProviderCapability2"),
properties);
propertyNames.append (CIMName ("IndicationIdentifier"));
properties.clear ();
properties.set (propertyNames);
- _modifyCapabilityInstance (client,
- String ("ProcessIndicationProviderModule"),
+ _modifyCapabilityInstance (client,
+ String ("ProcessIndicationProviderModule"),
String ("ProcessIndicationProvider2"),
String ("ProcessIndicationProviderCapability2"),
properties);
//
- // Delete the provider
+ // Delete the provider
//
- _deleteCapabilityInstance (client,
- "ProcessIndicationProviderModule",
+ _deleteCapabilityInstance (client,
+ "ProcessIndicationProviderModule",
"ProcessIndicationProvider2",
"ProcessIndicationProviderCapability2");
- _deleteProviderInstance (client,
- "ProcessIndicationProvider2",
+ _deleteProviderInstance (client,
+ "ProcessIndicationProvider2",
"ProcessIndicationProviderModule");
//
CIMInstance filter08 (PEGASUS_CLASSNAME_INDFILTER);
query = "SELECT * FROM CIM_ProcessIndication";
_addStringProperty (filter08, "Name", "Filter08");
- _addStringProperty (filter08, "SourceNamespace",
+ _addStringProperty (filter08, "SourceNamespace",
SOURCENAMESPACE.getString ());
_addStringProperty (filter08, "Query", query);
_addStringProperty (filter08, "QueryLanguage", qlang);
fPath.setNameSpace (NAMESPACE);
CIMInstance listenerdestination02 (PEGASUS_CLASSNAME_LSTNRDST_CIMXML);
- _addStringProperty (listenerdestination02, "Name",
+ _addStringProperty (listenerdestination02, "Name",
"ListenerDestination02");
- _addStringProperty (listenerdestination02, "Destination",
+ _addStringProperty (listenerdestination02, "Destination",
"localhost/CIMListener/test4");
- hPath = client.createInstance
+ hPath = client.createInstance
(NAMESPACE, listenerdestination02);
hPath.setHost (System::getFullyQualifiedHostName ());
hPath.setNameSpace (NAMESPACE);
CIMInstance subscription10 = _buildSubscriptionInstance
(fPath, PEGASUS_CLASSNAME_LSTNRDST_CIMXML, hPath);
sPath = client.createInstance (NAMESPACE, subscription10);
- _checkSubscriptionPath (sPath, "Filter08",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination02");
+ _checkSubscriptionPath (sPath, "Filter08",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination02",
+ NAMESPACE, NAMESPACE);
- _deleteSubscriptionInstance (client, "Filter08",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination02");
+ _deleteSubscriptionInstance (client, "Filter08",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination02",
+ NAMESPACE, NAMESPACE);
_deleteFilterInstance (client, "Filter08");
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination02");
//
- // Create Subscription with correct Namespace in Filter and Handler
+ // Create Subscription with correct Namespace in Filter and Handler
// reference property value
// Verify Namespace does not appear in Subscription instance name
// returned from Create Instance operation
CIMInstance filter09 (PEGASUS_CLASSNAME_INDFILTER);
query = "SELECT * FROM CIM_ProcessIndication";
_addStringProperty (filter09, "Name", "Filter09");
- _addStringProperty (filter09, "SourceNamespace",
+ _addStringProperty (filter09, "SourceNamespace",
SOURCENAMESPACE.getString ());
_addStringProperty (filter09, "Query", query);
_addStringProperty (filter09, "QueryLanguage", qlang);
fPath.setNameSpace (NAMESPACE);
CIMInstance listenerdestination03 (PEGASUS_CLASSNAME_LSTNRDST_CIMXML);
- _addStringProperty (listenerdestination03, "Name",
+ _addStringProperty (listenerdestination03, "Name",
"ListenerDestination03");
- _addStringProperty (listenerdestination03, "Destination",
+ _addStringProperty (listenerdestination03, "Destination",
"localhost/CIMListener/test5");
- hPath = client.createInstance
+ hPath = client.createInstance
(NAMESPACE, listenerdestination03);
hPath.setNameSpace (NAMESPACE);
CIMInstance subscription11 = _buildSubscriptionInstance
(fPath, PEGASUS_CLASSNAME_LSTNRDST_CIMXML, hPath);
sPath = client.createInstance (NAMESPACE, subscription11);
- _checkSubscriptionPath (sPath, "Filter09",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination03");
+ _checkSubscriptionPath (sPath, "Filter09",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination03",
+ NAMESPACE, NAMESPACE);
- _deleteSubscriptionInstance (client, "Filter09",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination03");
+ _deleteSubscriptionInstance (client, "Filter09",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination03",
+ NAMESPACE, NAMESPACE);
_deleteFilterInstance (client, "Filter09");
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination03");
}
_addStringProperty (filter, "QueryLanguage", "WQL");
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
CIMInstance retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
NAMESPACE.getString ());
_deleteFilterInstance (client, "Filter00");
}
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
CIMInstance retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDFILTER.getString ());
- _checkStringProperty (retrievedInstance, "SourceNamespace",
+ _checkStringProperty (retrievedInstance, "SourceNamespace",
NAMESPACE.getString ());
_deleteFilterInstance (client, "Filter00");
}
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination", "localhost/CIMListener/test1",
+ _addStringProperty (handler, "Destination", "localhost/CIMListener/test1",
false);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
CIMInstance retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML.getString ());
_checkUint16Property (retrievedInstance, "PersistenceType", 2);
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00");
}
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination", "localhost/CIMListener/test1",
+ _addStringProperty (handler, "Destination", "localhost/CIMListener/test1",
false);
_addUint16Property (handler, "PersistenceType", 0, true);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
CIMInstance retrievedInstance = client.getInstance (NAMESPACE, path);
- _checkStringProperty (retrievedInstance, "SystemCreationClassName",
+ _checkStringProperty (retrievedInstance, "SystemCreationClassName",
System::getSystemCreationClassName ());
- _checkStringProperty (retrievedInstance, "SystemName",
+ _checkStringProperty (retrievedInstance, "SystemName",
System::getFullyQualifiedHostName ());
- _checkStringProperty (retrievedInstance, "CreationClassName",
+ _checkStringProperty (retrievedInstance, "CreationClassName",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML.getString ());
_checkUint16Property (retrievedInstance, "PersistenceType", 2);
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00");
}
_addStringProperty (filter00, "Name", "Filter00");
_addStringProperty (filter00, "Query", query);
_addStringProperty (filter00, "QueryLanguage", "WQL");
- _addStringProperty (filter00, "SourceNamespace",
+ _addStringProperty (filter00, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath fPath = client.createInstance (NAMESPACE, filter00);
_checkUint16Property (retrievedInstance, "SubscriptionState", 2);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
_checkUint16Property (retrievedInstance, "RepeatNotificationPolicy", 2);
- _deleteSubscriptionInstance (client, "Filter00",
+ _deleteSubscriptionInstance (client, "Filter00",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00");
}
_checkUint16Property (retrievedInstance, "SubscriptionState", 2);
_checkUint16Property (retrievedInstance, "OnFatalErrorPolicy", 2);
_checkUint16Property (retrievedInstance, "RepeatNotificationPolicy", 2);
- _deleteSubscriptionInstance (client, "Filter00",
+ _deleteSubscriptionInstance (client, "Filter00",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00");
}
// Delete filter and handler instances
//
_deleteFilterInstance (client, "Filter00");
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00");
}
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", qlang);
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
{
_checkExceptionCode (e, CIM_ERR_INVALID_PARAMETER);
}
-#else
+#else
_checkExceptionCode (e, CIM_ERR_INVALID_PARAMETER);
#endif
}
try
{
CIMInstance filter (PEGASUS_CLASSNAME_INDFILTER);
- String query =
+ String query =
"SELECT * FROM CIM_ProcessIndication, CIM_AlertIndication";
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", qlang);
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
}
//
- // Filter: Invalid query - Array property is not supported in the WQL
+ // Filter: Invalid query - Array property is not supported in the WQL
// WHERE clause.
// Note: CQL allows array properties in the WHERE clause.
//
try
{
CIMInstance filter (PEGASUS_CLASSNAME_INDFILTER);
- String query =
+ String query =
"SELECT * FROM CIM_ProcessIndication "
"WHERE CorrelatedIndications IS NOT NULL";
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL"); // hardcode to WQL
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_checkExceptionCode (e, CIM_ERR_NOT_SUPPORTED);
}
- //
+ //
// Filter: Invalid query - Property referenced in the WHERE clause not
// found in the indication class in the FROM clause
//
try
{
CIMInstance filter (PEGASUS_CLASSNAME_INDFILTER);
- String query =
+ String query =
"SELECT * FROM CIM_ProcessIndication "
"WHERE AlertType = 3";
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", qlang);
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_checkExceptionCode (e, CIM_ERR_INVALID_PARAMETER);
}
- //
- // Filter: Invalid query - Property referenced in the SELECT clause
+ //
+ // Filter: Invalid query - Property referenced in the SELECT clause
// not found in the indication class in the FROM clause
//
try
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", qlang);
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
{
CIMInstance filter (PEGASUS_CLASSNAME_INDFILTER);
String query = "SELECT * FROM CIM_ProcessIndication";
- _addStringProperty (filter, "SystemCreationClassName", "invalidName",
+ _addStringProperty (filter, "SystemCreationClassName", "invalidName",
false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
{
CIMInstance filter (PEGASUS_CLASSNAME_INDFILTER);
String query = "SELECT * FROM CIM_ProcessIndication";
- _addStringProperty (filter, "SystemCreationClassName",
+ _addStringProperty (filter, "SystemCreationClassName",
System::getSystemCreationClassName (), false, true);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
String query = "SELECT * FROM CIM_ProcessIndication";
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", String::EMPTY, true);
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addUint16Property (filter, "Name", 1);
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00", false, true);
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
CIMInstance filter (PEGASUS_CLASSNAME_INDFILTER);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", String::EMPTY, true);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addUint16Property (filter, "Query", 1);
_addStringProperty (filter, "QueryLanguage", "WQL");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
String query = "SELECT * FROM CIM_ProcessIndication";
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", String::EMPTY, true);
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addStringProperty (filter, "QueryLanguage", "unknownQueryLanguage");
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_addStringProperty (filter, "Name", "Filter00");
_addStringProperty (filter, "Query", query);
_addUint16Property (filter, "QueryLanguage", 1);
- _addStringProperty (filter, "SourceNamespace",
+ _addStringProperty (filter, "SourceNamespace",
SOURCENAMESPACE.getString ());
CIMObjectPath path = client.createInstance (NAMESPACE, filter);
PEGASUS_ASSERT (false);
_checkExceptionCode (e, CIM_ERR_INVALID_PARAMETER);
}
- //
+ //
// Filter: Attempt to delete a filter referenced by a subscription
// A Filter referenced by a subscription may not be deleted
//
_addStringProperty (handler, "SystemCreationClassName", "invalidName",
false);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addUint16Property (handler, "SystemCreationClassName", 1);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "SystemName", "invalidName");
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addUint16Property (handler, "SystemName", 1);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "CreationClassName", "invalidName");
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addUint16Property (handler, "CreationClassName", 1);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
try
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", String::EMPTY, true);
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addUint16Property (handler, "Name", 1);
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
_addUint16Property (handler, "PersistenceType", 1);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
}
//
- // Handler: OtherPersistenceType property present, but PersistenceType
+ // Handler: OtherPersistenceType property present, but PersistenceType
// value not 1 (Other)
//
try
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
_addUint16Property (handler, "PersistenceType", 2);
- _addStringProperty (handler, "OtherPersistenceType", "another type",
+ _addStringProperty (handler, "OtherPersistenceType", "another type",
false);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
PEGASUS_ASSERT (false);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
_addUint16Property (handler, "PersistenceType", 0);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
_addUint16Property (handler, "PersistenceType", 4);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
_addStringProperty (handler, "PersistenceType", "invalid");
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
_addUint16Property (handler, "PersistenceType", 2, false, true);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
_addUint16Property (handler, "Owner", 1);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
{
CIMInstance handler (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
_addStringProperty (handler, "Name", "Handler00");
- _addStringProperty (handler, "Destination",
+ _addStringProperty (handler, "Destination",
"localhost/CIMListener/test1");
_addStringProperty (handler, "Owner", "arrayOwner", false, true);
CIMObjectPath path = client.createInstance (NAMESPACE, handler);
_checkExceptionCode (e, CIM_ERR_INVALID_PARAMETER);
}
- //
+ //
// Handler: Attempt to delete a handler referenced by a subscription
// A Handler referenced by a subscription may not be deleted
//
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler01");
PEGASUS_ASSERT (false);
}
_checkExceptionCode (e, CIM_ERR_FAILED);
}
- //
+ //
// Listener Destination: Attempt to delete a listener destination
// referenced by a subscription
// A Listener Destination referenced by a subscription may not be
//
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination01");
PEGASUS_ASSERT (false);
}
CIMInstance filter10 (PEGASUS_CLASSNAME_INDFILTER);
query = "SELECT * FROM CIM_ProcessIndication";
_addStringProperty (filter10, "Name", "Filter10");
- _addStringProperty (filter10, "SourceNamespace",
+ _addStringProperty (filter10, "SourceNamespace",
SOURCENAMESPACE.getString ());
_addStringProperty (filter10, "Query", query);
_addStringProperty (filter10, "QueryLanguage", "WQL");
fPath.setNameSpace (NAMESPACE);
CIMInstance listenerdestination04 (PEGASUS_CLASSNAME_LSTNRDST_CIMXML);
- _addStringProperty (listenerdestination04, "Name",
+ _addStringProperty (listenerdestination04, "Name",
"ListenerDestination04");
- _addStringProperty (listenerdestination04, "Destination",
+ _addStringProperty (listenerdestination04, "Destination",
"localhost/CIMListener/test6");
- hPath = client.createInstance
+ hPath = client.createInstance
(NAMESPACE, listenerdestination04);
hPath.setHost (System::getFullyQualifiedHostName ());
hPath.setNameSpace (NAMESPACE);
CIMInstance subscription12 = _buildSubscriptionInstance
(fPath, PEGASUS_CLASSNAME_LSTNRDST_CIMXML, hPath);
sPath = client.createInstance (NAMESPACE, subscription12);
- _checkSubscriptionPath (sPath, "Filter10",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination04");
+ _checkSubscriptionPath (sPath, "Filter10",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination04",
+ NAMESPACE, NAMESPACE);
//
// Filter: Attempt to delete a filter referenced by a subscription
//
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination04");
PEGASUS_ASSERT (false);
}
//
// Once Subscription is deleted, Filter and Handler may also be deleted
//
- _deleteSubscriptionInstance (client, "Filter10",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination04");
+ _deleteSubscriptionInstance (client, "Filter10",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination04",
+ NAMESPACE, NAMESPACE);
_deleteFilterInstance (client, "Filter10");
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination04");
//
_addStringProperty (filter00, "Name", "Filter00");
_addStringProperty (filter00, "Query", query);
_addStringProperty (filter00, "QueryLanguage", "WQL");
- _addStringProperty (filter00, "SourceNamespace",
+ _addStringProperty (filter00, "SourceNamespace",
SOURCENAMESPACE.getString ());
path = client.createInstance (NAMESPACE, filter00);
//
try
{
- CIMObjectPath fPath = _buildFilterOrHandlerPath
+ CIMObjectPath fPath = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDFILTER, "Filter00");
fPath.setHost ("somehost");
fPath.setNameSpace (CIMNamespaceName ("root"));
//
try
{
- CIMObjectPath hPath = _buildFilterOrHandlerPath
+ CIMObjectPath hPath = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00");
hPath.setHost ("somehost");
hPath.setNameSpace (CIMNamespaceName ("root"));
//
try
{
- CIMObjectPath fPath = _buildFilterOrHandlerPath
+ CIMObjectPath fPath = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDFILTER, "Filter00");
fPath.setHost ("ahost.region.acme.com");
fPath.setNameSpace (NAMESPACE);
CIMInstance subscription = _buildSubscriptionInstance
(fPath, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
- _buildFilterOrHandlerPath
+ _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00"));
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
//
try
{
- CIMObjectPath fPath = _buildFilterOrHandlerPath
+ CIMObjectPath fPath = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDFILTER, "Filter00");
fPath.setHost (System::getFullyQualifiedHostName ());
fPath.setNameSpace (CIMNamespaceName ("root"));
CIMInstance subscription = _buildSubscriptionInstance
(fPath, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
- _buildFilterOrHandlerPath
+ _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00"));
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
//
try
{
- CIMObjectPath fPath = _buildFilterOrHandlerPath
+ CIMObjectPath fPath = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDFILTER, "Filter00");
fPath.setNameSpace (CIMNamespaceName ("root"));
CIMInstance subscription = _buildSubscriptionInstance
(fPath, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
- _buildFilterOrHandlerPath
+ _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00"));
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
//
try
{
- CIMObjectPath hPath = _buildFilterOrHandlerPath
+ CIMObjectPath hPath = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00");
hPath.setHost ("ahost.region.acme.com");
hPath.setNameSpace (NAMESPACE);
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath
- (PEGASUS_CLASSNAME_INDFILTER, "Filter00"),
+ (_buildFilterOrHandlerPath
+ (PEGASUS_CLASSNAME_INDFILTER, "Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, hPath);
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
//
try
{
- CIMObjectPath hPath = _buildFilterOrHandlerPath
+ CIMObjectPath hPath = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00");
hPath.setHost (System::getFullyQualifiedHostName ());
hPath.setNameSpace (CIMNamespaceName ("root"));
//
try
{
- CIMObjectPath hPath = _buildFilterOrHandlerPath
+ CIMObjectPath hPath = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00");
hPath.setNameSpace (CIMNamespaceName ("root"));
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath
+ (_buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDFILTER, "Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, hPath);
path = client.createInstance (NAMESPACE, subscription);
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
}
//
- // Subscription: OtherSubscriptionState property present, but
+ // Subscription: OtherSubscriptionState property present, but
// SubscriptionState value not 1
//
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00"));
_addUint16Property (subscription, "SubscriptionState", 2);
- _addStringProperty (subscription, "OtherSubscriptionState",
+ _addStringProperty (subscription, "OtherSubscriptionState",
"another state");
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00"));
_addUint16Property (subscription, "RepeatNotificationPolicy", 1);
- _addStringProperty (subscription, "OtherRepeatNotificationPolicy",
+ _addStringProperty (subscription, "OtherRepeatNotificationPolicy",
String::EMPTY, true);
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
}
//
- // Subscription: OtherRepeatNotificationPolicy property present, but
+ // Subscription: OtherRepeatNotificationPolicy property present, but
// RepeatNotificationPolicy value not 1
//
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00"));
_addUint16Property (subscription, "RepeatNotificationPolicy", 2);
- _addStringProperty (subscription, "OtherRepeatNotificationPolicy",
+ _addStringProperty (subscription, "OtherRepeatNotificationPolicy",
"another policy");
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
}
//
- // Subscription: OtherOnFatalErrorPolicy property present, but
+ // Subscription: OtherOnFatalErrorPolicy property present, but
// OnFatalErrorPolicy value not 1
//
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00"));
_addUint16Property (subscription, "OnFatalErrorPolicy", 2);
- _addStringProperty (subscription, "OtherOnFatalErrorPolicy",
+ _addStringProperty (subscription, "OtherOnFatalErrorPolicy",
"another policy");
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00"));
- _addStringProperty (subscription, "FailureTriggerTimeInterval",
+ _addStringProperty (subscription, "FailureTriggerTimeInterval",
"incorrect type");
path = client.createInstance (NAMESPACE, subscription);
PEGASUS_ASSERT (false);
_addStringProperty (filter07, "Name", "Filter07");
_addStringProperty (filter07, "Query", query);
_addStringProperty (filter07, "QueryLanguage", "WQL");
- _addStringProperty (filter07, "SourceNamespace",
+ _addStringProperty (filter07, "SourceNamespace",
SOURCENAMESPACE.getString ());
path = client.createInstance (NAMESPACE, filter07);
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter07"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
try
{
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter07"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
CIMInstance retrievedInstance = client.getInstance (NAMESPACE, path);
_checkUint16Property (retrievedInstance, "SubscriptionState", 4);
_checkUint64Property (retrievedInstance, "SubscriptionDuration", 60000);
- _checkUint64Property (retrievedInstance, "SubscriptionTimeRemaining",
+ _checkUint64Property (retrievedInstance, "SubscriptionTimeRemaining",
60000);
- _deleteSubscriptionInstance (client, "Filter07",
+ _deleteSubscriptionInstance (client, "Filter07",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00");
}
catch (CIMException &)
{
CIMInstance modifiedInstance (PEGASUS_CLASSNAME_INDFILTER);
_addStringProperty (modifiedInstance, "QueryLanguage", "WQL2");
- CIMObjectPath path = _buildFilterOrHandlerPath
+ CIMObjectPath path = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDFILTER, "Filter01");
modifiedInstance.setPath (path);
Array <CIMName> propertyNames;
try
{
CIMInstance modifiedInstance (PEGASUS_CLASSNAME_INDHANDLER_CIMXML);
- _addStringProperty (modifiedInstance, "Destination",
+ _addStringProperty (modifiedInstance, "Destination",
"localhost/CIMListener/test9");
- CIMObjectPath path = _buildFilterOrHandlerPath
+ CIMObjectPath path = _buildFilterOrHandlerPath
(PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
modifiedInstance.setPath (path);
Array <CIMName> propertyNames;
CIMObjectPath path = _buildSubscriptionPath ("Filter01",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
modifiedInstance.setPath (path);
- client.modifyInstance (NAMESPACE, modifiedInstance, false,
+ client.modifyInstance (NAMESPACE, modifiedInstance, false,
CIMPropertyList ());
}
catch (CIMException & e)
// Create subscription with short SubscriptionDuration
//
CIMInstance subscription = _buildSubscriptionInstance
- (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
+ (_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDFILTER,
"Filter00"),
PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
_buildFilterOrHandlerPath (PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
{
_checkExceptionCode (e, CIM_ERR_FAILED);
}
-
+
//
// Verify the expired subscription has been deleted
//
// Delete filter and handler instances
//
_deleteFilterInstance (client, "Filter00");
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00");
}
//
// Delete subscription instances
//
- _deleteSubscriptionInstance (client, "Filter01",
+ _deleteSubscriptionInstance (client, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
- _deleteSubscriptionInstance (client, "Filter02",
+ _deleteSubscriptionInstance (client, "Filter02",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
- _deleteSubscriptionInstance (client, "Filter03",
+ _deleteSubscriptionInstance (client, "Filter03",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
- _deleteSubscriptionInstance (client, "Filter04",
+ _deleteSubscriptionInstance (client, "Filter04",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
- _deleteSubscriptionInstance (client, "Filter05",
+ _deleteSubscriptionInstance (client, "Filter05",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
- _deleteSubscriptionInstance (client, "Filter06",
+ _deleteSubscriptionInstance (client, "Filter06",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
- _deleteSubscriptionInstance (client, "Filter01",
+ _deleteSubscriptionInstance (client, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_SNMP, "Handler03");
- _deleteSubscriptionInstance (client, "Filter01",
+ _deleteSubscriptionInstance (client, "Filter01",
PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination01");
//
// Delete handler instances
//
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler01");
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_SNMP,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_SNMP,
"Handler03");
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination01");
//
//
// NOTE: the cleanup command line option is provided to clean up the
-// repository in case the test fails and not all objects created by
+// repository in case the test fails and not all objects created by
// the test were deleted
// This method attempts to delete each object that could have been created by
// this test and that still exists in the repository
-// Since the repository could contain none, any or all of the objects, any
-// exceptions thrown are ignored and this method continues to attempt to
+// Since the repository could contain none, any or all of the objects, any
+// exceptions thrown are ignored and this method continues to attempt to
// delete the objects
//
void _cleanup (CIMClient & client)
//
try
{
- _deleteSubscriptionInstance (client, "Filter00",
+ _deleteSubscriptionInstance (client, "Filter00",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler00");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter01",
+ _deleteSubscriptionInstance (client, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter02",
+ _deleteSubscriptionInstance (client, "Filter02",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter03",
+ _deleteSubscriptionInstance (client, "Filter03",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter04",
+ _deleteSubscriptionInstance (client, "Filter04",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter05",
+ _deleteSubscriptionInstance (client, "Filter05",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter06",
+ _deleteSubscriptionInstance (client, "Filter06",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler01");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter01",
+ _deleteSubscriptionInstance (client, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_CIMXML, "Handler02");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter01",
+ _deleteSubscriptionInstance (client, "Filter01",
PEGASUS_CLASSNAME_INDHANDLER_SNMP, "Handler03");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter01",
+ _deleteSubscriptionInstance (client, "Filter01",
PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination01");
}
catch (...)
try
{
- _deleteSubscriptionInstance (client, "Filter08",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination02");
+ _deleteSubscriptionInstance (client, "Filter08",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination02",
+ NAMESPACE, NAMESPACE);
}
catch (...)
{
try
{
- _deleteSubscriptionInstance (client, "Filter09",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination03");
+ _deleteSubscriptionInstance (client, "Filter09",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination03",
+ NAMESPACE, NAMESPACE);
}
catch (...)
{
try
{
- _deleteSubscriptionInstance (client, "Filter10",
- PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination04");
+ _deleteSubscriptionInstance (client, "Filter10",
+ PEGASUS_CLASSNAME_LSTNRDST_CIMXML, "ListenerDestination04",
+ NAMESPACE, NAMESPACE);
}
catch (...)
{
//
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler00");
}
catch (...)
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler01");
}
catch (...)
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_CIMXML,
"Handler02");
}
catch (...)
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_SNMP,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_INDHANDLER_SNMP,
"Handler03");
}
catch (...)
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination01");
}
catch (...)
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination02");
}
catch (...)
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination03");
}
catch (...)
try
{
- _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
+ _deleteHandlerInstance (client, PEGASUS_CLASSNAME_LSTNRDST_CIMXML,
"ListenerDestination04");
}
catch (...)
//
try
{
- _deleteCapabilityInstance (client,
- "AlertIndicationProviderModule",
+ _deleteCapabilityInstance (client,
+ "AlertIndicationProviderModule",
"AlertIndicationProvider",
"AlertIndicationProviderCapability");
}
try
{
- _deleteProviderInstance (client,
- "AlertIndicationProvider",
+ _deleteProviderInstance (client,
+ "AlertIndicationProvider",
"AlertIndicationProviderModule");
}
catch (...)
try
{
- _deleteModuleInstance (client,
+ _deleteModuleInstance (client,
"AlertIndicationProviderModule");
}
catch (...)
try
{
- _deleteCapabilityInstance (client,
- "ProcessIndicationProviderModule",
+ _deleteCapabilityInstance (client,
+ "ProcessIndicationProviderModule",
"ProcessIndicationProvider",
"ProcessIndicationProviderCapability");
}
try
{
- _deleteProviderInstance (client,
- "ProcessIndicationProvider",
+ _deleteProviderInstance (client,
+ "ProcessIndicationProvider",
"ProcessIndicationProviderModule");
}
catch (...)
try
{
- _deleteModuleInstance (client,
+ _deleteModuleInstance (client,
"ProcessIndicationProviderModule");
}
catch (...)
{
try
{
- _deleteCapabilityInstance (client,
- "AlertIndicationProviderModule",
+ _deleteCapabilityInstance (client,
+ "AlertIndicationProviderModule",
"AlertIndicationProvider",
"AlertIndicationProviderCapability");
- _deleteProviderInstance (client,
- "AlertIndicationProvider",
+ _deleteProviderInstance (client,
+ "AlertIndicationProvider",
"AlertIndicationProviderModule");
- _deleteModuleInstance (client,
+ _deleteModuleInstance (client,
"AlertIndicationProviderModule");
- _deleteCapabilityInstance (client,
- "ProcessIndicationProviderModule",
+ _deleteCapabilityInstance (client,
+ "ProcessIndicationProviderModule",
"ProcessIndicationProvider",
"ProcessIndicationProviderCapability");
- _deleteProviderInstance (client,
- "ProcessIndicationProvider",
+ _deleteProviderInstance (client,
+ "ProcessIndicationProvider",
"ProcessIndicationProviderModule");
- _deleteModuleInstance (client,
+ _deleteModuleInstance (client,
"ProcessIndicationProviderModule");
}
catch (Exception & e)
}
//
// NOTE: the cleanup command line option is provided to clean up the
- // repository in case the test fails and not all objects created by
+ // repository in case the test fails and not all objects created by
// the test were deleted
//
else if (String::equalNoCase (opt, "cleanup"))
}
else
{
- cerr << "Invalid option: " << opt
+ cerr << "Invalid option: " << opt
<< endl;
_usage ();
return -1;