# | High level scenario description | Steps to be executed | Expected result | Test result | Comments |
1 | Check collectd installation procedure with capabilities plugin enabled | - Build and install collectd with debug log level and capabilities plugin enabled.
- Start collectd
| Collectd has started Capabilities plugins is loaded
| Pass |
|
2 | Check if the plugin returns the data according to the design | - Build and install collectd with debug log level and capabilities plugin enabled.
- Start collectd
- Read the data collectd by plugin
- curl localhost:9104
| HTTP GET request should result in the display of a data structure about system capabilities read from dmidecode | Pass |
|
3 | Verify if the plugin returns the data in json format | - Build and install collectd with debug log level and capabilities plugin enabled.
- Start collectd
- Read the data collectd by plugin using json formatter
- curl localhost:9104 | jq .
| HTTP GET request should result in the display of a data structure about system capabilities read from dmidecode jq should display collected data in json fomat, jq format should return answer: "object" | Pass |
|
4 | Check if the plugin returns information from pre-selected number of DMI types | - Build and install collectd with debug log level and capabilities plugin enabled.
- Start collectd
- Read the data collectd by plugin using json formatter
- curl localhost:9104 | jq .
| HTTP GET request should result in the display of a data structure about system capabilities read from dmidecode. The plugin should get information from pre-selected number of DMI types: * BIOS - 0 * System - 1 * Baseboard - 2 * Processor - 4 * Cache - 7 * Physical Memory Array - 16 * Memory Device - 17 * IPMI Device - 38 * Onboard Devices Extended Information - 41 | Pass |
|
5 | Verify if the plugin returns correct BIOS information | - Build and install collectd with basic configuration of capabilities plugin.
- Start collectd
- Compare if the BIOS information returned by the plugin is consistent with DMIDECODE output
- curl localhost:9104| jq .|awk '/BIOS/,/}/'
- dmidecode | awk '/type 2,/,/^$/'
| The data should be 100% consistent | Pass |
|
6 | Verify if the plugin returns correct System information | - Build and install collectd with basic configuration of capabilities plugin.
- Start collectd
- Compare if the System information returned by the plugin is consistent with DMIDECODE output
- curl localhost:9104| jq .|awk '/System Information/,/}/'
- dmidecode | awk '/type 1,/,/^$/'
| The data should be 100% consistent | Pass |
|
7 | Verify if the plugin returns correct Baseboard information | - Build and install collectd with basic configuration of capabilities plugin.
- Start collectd
- Compare if the Baseboard information returned by the plugin is consistent with DMIDECODE output
- curl localhost:9104| jq .|awk '/"BASEBOARD"/,/}/'
- dmidecode | awk '/type 2,/,/^$/'
| The data should be 100% consistent | Pass |
|
8 | Verify if the plugin returns correct Processor information | - Build and install collectd with basic configuration of capabilities plugin.
- Start collectd
- Compare if the Processor information returned by the plugin is consistent with DMIDECODE output
- curl localhost:9104| jq .|awk '/'PROCESSORS'/,/}/'
- dmidecode | awk '/type 4,/,/^$/'
| The data should be 100% consistent | Pass |
|
9 | Verify if the plugin returns correct Cache information | - Build and install collectd with basic configuration of capabilities plugin.
- Start collectd
- Compare if the Cache information returned by the plugin is consistent with DMIDECODE output
- curl localhost:9104| jq .|awk '/"CACHE"/,/"PHYSICAL/'
- dmidecode | awk '/type 7,/,/^$/'
| The data should be 100% consistent | Pass |
|
10 | Verify if the plugin returns correct Physical Memory Array information | - Build and install collectd with basic configuration of capabilities plugin.
- Start collectd
- Compare if the Physical Memory Array information returned by the plugin is consistent with DMIDECODE output
- curl localhost:9104| jq .|awk '/"PHYSICAL
- dmidecode | awk '/type 16,/,/^$/'
| The data should be 100% consistent | Pass |
|