version 1.9, 2008/12/02 09:01:38
|
version 1.10, 2011/01/27 13:32:59
|
|
|
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( |