| | |
| | | |
| | | <!--- Define default value for community --> |
| | | <script> |
| | | community = '%s' % SNMP_PROPERTIES['community'] |
| | | timerDuration = '5m' |
| | | </script> |
| | | |
| | | <!--- Test Case information |
| | | #@TestMarker SNMP trap with default configuration |
| | | #@TestName trap_defaultconf: trap on stop-ds |
| | | #@TestIssue 3241 |
| | | #@TestPurpose Check that a trap is sent on OpenDS trap |
| | | #@TestIssue none |
| | | #@TestPurpose Check that a trap is sent on default trap |
| | | community after stop-ds command. |
| | | #@TestPreamble none |
| | | #@TestStep Run the trap listener, it send an event to |
| | |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'snmpHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'snmpTrapPort' : SNMP_TRAP_PORT , |
| | | 'snmpTrapCommunity' : 'OpenDS' , |
| | | 'snmpTrapCommunity' : community , |
| | | 'snmpTrapNumber' : '1,0,0,0,0,0' |
| | | } |
| | | </call> |
| | |
| | | } |
| | | </call> |
| | | </sequence> |
| | | <else> |
| | | <script> |
| | | knownIssue(3241) |
| | | </script> |
| | | </else> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | |
| | | <!--- Test Case information |
| | | #@TestMarker SNMP trap with default configuration |
| | | #@TestName trap_defaultconf: trap on start-ds |
| | | #@TestIssue 3241 |
| | | #@TestPurpose Check that a trap is sent on OpenDS trap |
| | | #@TestIssue none |
| | | #@TestPurpose Check that a trap is sent on default trap |
| | | community after start-ds command. |
| | | #@TestPreamble none |
| | | #@TestStep Run the trap listener, it send an event to |
| | |
| | | { |
| | | 'snmpHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'snmpTrapPort' : SNMP_TRAP_PORT , |
| | | 'snmpTrapCommunity' : 'OpenDS' , |
| | | 'snmpTrapCommunity' : community , |
| | | 'snmpTrapNumber' : '1,0,0,0,0,0' |
| | | } |
| | | </call> |
| | |
| | | } |
| | | </call> |
| | | </sequence> |
| | | <else> |
| | | <script> |
| | | knownIssue(3241) |
| | | </script> |
| | | </else> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | |
| | | <!--- Test Case information |
| | | #@TestMarker SNMP trap with default configuration |
| | | #@TestName trap_defaultconf: trap on stop-ds -R |
| | | #@TestIssue 3241 |
| | | #@TestPurpose Check that 2 traps are sent on OpenDS trap |
| | | #@TestIssue none |
| | | #@TestPurpose Check that 2 traps are sent on default trap |
| | | community after stop-ds -R command. |
| | | #@TestPreamble none |
| | | #@TestStep Run the trap listener, it send an event to |
| | |
| | | { |
| | | 'snmpHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'snmpTrapPort' : SNMP_TRAP_PORT , |
| | | 'snmpTrapCommunity' : 'OpenDS' , |
| | | 'snmpTrapCommunity' : community , |
| | | 'snmpTrapNumber' : '2,0,0,0,0,0' |
| | | } |
| | | </call> |
| | |
| | | } |
| | | </call> |
| | | </sequence> |
| | | <else> |
| | | <script> |
| | | knownIssue(3241) |
| | | </script> |
| | | </else> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |