| | |
| | | <!--- Test Case information |
| | | #@TestMarker SNMP trap with custom configuration |
| | | #@TestName trap_customconf: TODO |
| | | #@TestIssue none |
| | | #@TestIssue 3435 |
| | | #@TestPurpose TODO. |
| | | #@TestPreamble none |
| | | #@TestStep TODO. |
| | |
| | | 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | |
| | | <if expr="is_windows_platform(DIRECTORY_INSTANCE_HOST)"> |
| | | <script> |
| | | knownIssue(3435) |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | |
| | | <!--- Test Case information |
| | | #@TestMarker SNMP trap with custom configuration |
| | | #@TestName trap_customconf: TODO |
| | | #@TestIssue none |
| | | #@TestIssue 3435 |
| | | #@TestPurpose TODO. |
| | | #@TestPreamble none |
| | | #@TestStep TODO. |
| | |
| | | } |
| | | </call> |
| | | |
| | | <if expr="is_windows_platform(DIRECTORY_INSTANCE_HOST)"> |
| | | <script> |
| | | knownIssue(3435) |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | <!--- Test Case information |
| | | #@TestMarker SNMP trap with custom configuration |
| | | #@TestName trap_customconf: TODO |
| | | #@TestIssue 3304 |
| | | #@TestIssue none |
| | | #@TestPurpose TODO. |
| | | #@TestPreamble none |
| | | #@TestStep TODO. |
| | |
| | | <call function="'StopDsWithScript'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsRestart' : 'True' |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN , |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | |
| | | |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'Traps Destination %s is an unknown host.' \ |
| | | % wrongTrapsDestProp |
| | | msg2 = 'Traps will not be sent to this destination' |
| | | msg = '%s %s' % (msg1, msg2) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'No valid trap destinations has been found.' |
| | | msg2 = 'No trap will be sent' |
| | | msg = '%s %s' % (msg1, msg2) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | | <message> |
| | | 'trap_customconf: send event to the trap listener' |
| | | </message> |
| | |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | knownIssue(3304) |
| | | </script> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | <!--- Test Case information |
| | | #@TestMarker SNMP trap with custom configuration |
| | | #@TestName trap_customconf: TODO |
| | | #@TestIssue none |
| | | #@TestIssue 3435 |
| | | #@TestPurpose TODO. |
| | | #@TestPreamble none |
| | | #@TestStep TODO. |
| | |
| | | <call function="'StopDsWithScript'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME , |
| | | 'dsRestart' : 'True' |
| | | 'dsHost' : DIRECTORY_INSTANCE_HOST , |
| | | 'dsPort' : DIRECTORY_INSTANCE_PORT , |
| | | 'dsBindDN' : DIRECTORY_INSTANCE_DN , |
| | | 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD |
| | | } |
| | | </call> |
| | | <call function="'StartDsWithScript'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME } |
| | | </call> |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | </script> |
| | | |
| | | <!--- Check that DS started --> |
| | | <call function="'isAlive'"> |
| | | { |
| | | 'noOfLoops' : 5 , |
| | | 'noOfMilliSeconds' : 2000 |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | msg1 = 'Traps Destination %s is an unknown host.' \ |
| | | % wrongTrapsDestProp |
| | | msg2 = 'Traps will not be sent to this destination' |
| | | msg = '%s %s' % (msg1, msg2) |
| | | </script> |
| | | |
| | | <call function="'checktestString'"> |
| | | { |
| | | 'returnString' : returnString , |
| | | 'expectedString' : msg |
| | | } |
| | | </call> |
| | | |
| | |
| | | } |
| | | </call> |
| | | |
| | | <if expr="is_windows_platform(DIRECTORY_INSTANCE_HOST)"> |
| | | <script> |
| | | knownIssue(3435) |
| | | </script> |
| | | </if> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | |
| | | </sequence> |
| | |
| | | |
| | | <script> |
| | | returnString = STAXResult[0][1] |
| | | |
| | | if is_windows_platform(DIRECTORY_INSTANCE_HOST): |
| | | newline = '\r\n' |
| | | else: |
| | | newline = '\n' |
| | | |
| | | returnString = STAXResult[0][1] |
| | | msg1 = 'It is not possible to specify multiple values for the' |
| | | msg2 = 'SNMP Connection Handler\nproperty "traps-community"' |
| | | msg2 = 'SNMP Connection Handler%sproperty "traps-community"' \ |
| | | % newline |
| | | msg3 = 'as it is single-valued' |
| | | msg = '%s %s %s' % (msg1, msg2, msg3) |
| | | </script> |