Anuket Project
Logparser Executed Tests
# | High level scenario description | Steps to be executed | Expected result | Test result | Comments |
1 | Check collectd installation procedure with logparser plugin enabled |
| collectd starts without any errors/interruptions | Pass | |
2 | Check if plugin dispatched notification for injected pcie corrected error |
| Notification for injected error should be dispatched | Pass | |
3 | Check if plugin dispatched notification for injected pcie uncorrected error |
| Notification for injected error should be dispatched | Pass | |
4 | Verify if plugin dispatched notification data for injected pcie corrected error in accordance with the given configuration |
| Notification for injected error should be dispatched and should contain fields specified in configuration file: * Severity:WARNING * Time * Host * Plugin:logparser * PluginInstance * Type: pcie_error * TypeInstance: corrected * incidenttime * rootport * device * corrected: severity=Corrected * errortype: Data Link Layer * id:00e0(Receiver ID) | Pass | |
5 | Verify if plugin dispatched notification data for injected pcie non-fatal error in accordance with the given configuration |
| Notification for injected error should be dispatched and should contain fields specified in configuration file: * Severity:WARNING * Time * Host * Plugin:logparser * PluginInstance * Type: pcie_error * TypeInstance:non_fatal * incidenttime * rootport * device * nonfatal: severity=Uncorrected (Non-Fatal * errortype: Transaction Layer * id | Pass | |
6 | Verify if plugin dispatched notification data for injected pcie fatal error in accordance with the given configuration |
| Notification for injected error should be dispatched and should contain fields specified in configuration file: * Severity:FAILURE * Time * Host * Plugin:logparser * PluginInstance * Type:pcie_error * TypeInstance:fatal * incidenttime * rootport * device * fatal: severity=Uncorrected (Fatal * errortype: Data Link Layer * id | Pass | |
7 | Verify if plugin dispatched notification for each severity of injected pcie error specified in configuration |
| Notification for each injected error should be dispatched and should contain fields specified in configuration file: * Severity * Time * Host * Plugin:logparser * PluginInstance * Type: pcie_error * TypeInstance: * incidenttime * rootport * device * severity * errortype * id | Pass | |
8 | Verify if plugin dispatched notification only for pcie error type with mandatory field set to true in configuration |
| Notification for injected error should be dispatched and should contain fields specified in configuration file: * Severity:FAILURE * Time * Host * Plugin:logparser * PluginInstance * Type:pcie_error * TypeInstance:fatal * incidenttime * rootport * device * fatal: severity=Uncorrected (Fatal * errortype: Data Link Layer * id | Pass | |
9 | Verify plugin behavior upon incorrect path to syslog in configuration |
| Logparser is loaded. Error messages in collectd logs: {noformat} [error] utils_tail: stat (/var/log/syslog123) failed: No such file or directory [error] utils_tail: cu_tail_read: cu_tail_readline failed. [error] tail_match: cu_tail_read failed. [error] utils_message_parser: Error while parser read. Status: -1 [error] logparser: Failed to parse pcie_errors messages from /var/log/syslog123 {noformat} | Pass | |
10 | Verify plugin behavior upon tag failures in configuration |
| Collectd fails to start with proper message in the log | Pass |