version 1.9, 2008/12/02 09:01:38
|
version 1.9.8.2, 2013/06/03 22:36:11
|
|
|
TestException(handler, indicationHandlerInstance, indicationInstance, | TestException(handler, indicationHandlerInstance, indicationInstance, |
CIM_ERR_FAILED); | CIM_ERR_FAILED); |
| |
// Test "SNMP session open failed" exception |
|
indicationInstance = CIMInstance(testClass1); |
|
indicationHandlerInstance = CreateHandlerInstance(); |
|
indicationHandlerInstance.addProperty(CIMProperty( |
|
CIMName("TargetHost"), String(""))); |
|
indicationHandlerInstance.addProperty(CIMProperty( |
|
CIMName("TargetHostFormat"), Uint16(3))); |
|
indicationHandlerInstance.addProperty(CIMProperty( |
|
CIMName("SNMPVersion"), Uint16(2))); |
|
indicationHandlerInstance.addProperty(CIMProperty( |
|
CIMName("OtherTargetHostFormat"), String("testOtherTargetHostFormat"))); |
|
indicationHandlerInstance.addProperty(CIMProperty( |
|
CIMName("PortNumber"), Uint32(200))); |
|
TestException(handler, indicationHandlerInstance, indicationInstance, |
|
CIM_ERR_FAILED); |
|
|
|
// Test "invalid MappingStrings Syntax" exception | // Test "invalid MappingStrings Syntax" exception |
indicationInstance = CIMInstance(testClass8); | indicationInstance = CIMInstance(testClass8); |
indicationInstance.addProperty(CIMProperty( | indicationInstance.addProperty(CIMProperty( |
|
|
} | } |
| |
| |
int main(int argc, char** argv) |
int main() |
{ | { |
| |
const char* pegasusHome = getenv("PEGASUS_HOME"); | const char* pegasusHome = getenv("PEGASUS_HOME"); |