Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


#

High level scenario description

Steps to be executed

Expected result

Test result

Comments

1

Check collectd installation procedure with capabilities plugin enabled

  1. Build and install collectd with debug log level and capabilities plugin enabled. 
  2. Start collectd

Collectd has started

Capabilities plugins is loaded


Pass


2Check if the plugin returns the data according to the design
  1. Build and install collectd with debug log level and capabilities plugin enabled. 
  2. Start collectd
  3. Read the data collectd by plugin
    1. curl localhost:9104

HTTP GET request should result in the display of a data structure about system capabilities read from dmidecode

Pass
3Verify if the plugin returns the data in json format
  1. Build and install collectd with debug log level and capabilities plugin enabled. 
  2. Start collectd
  3. Read the data collectd by plugin using json formatter
    1. curl localhost:9104 | jq
type
    1. .

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
4Check if the plugin returns information from pre-selected number of DMI types
  1. Build and install collectd with debug log level and capabilities plugin enabled. 
  2. Start collectd
  3. Read the data collectd by plugin using json formatter
    1. curl localhost:9104 | jq
type
    1. .

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
5Verify if the plugin returns correct BIOS information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the BIOS information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/BIOS/,/}/'
    2. dmidecode | awk '/type 2,/,/^$/'
The data should be 100% consistentPass
6Verify if the plugin returns correct System information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the System information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/System Information/,/}/'
    2. dmidecode | awk '/type 1,/,/^$/'
The data should be 100% consistentPass
7Verify if the plugin returns correct Baseboard information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the Baseboard information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/"BASEBOARD"/,/}/'
    2. dmidecode | awk '/type 2,/,/^$/'
The data should be 100% consistentPass
8Verify if the plugin returns correct Processor information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the Processor information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/'PROCESSORS'/,/}/'
    2. dmidecode | awk '/type 4,/,/^$/'
The data should be 100% consistentPass
9Verify if the plugin returns correct Cache information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the Cache information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/"CACHE"/,/"PHYSICAL/'
    2. dmidecode | awk '/type 7,/,/^$/'
The data should be 100% consistentPass
10Verify if the plugin returns correct Physical Memory Array information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the Physical Memory Array information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/"PHYSICAL
    2. dmidecode | awk '/type 16,/,/^$/'
The data should be 100% consistentPass
11Verify if the plugin returns correct Memory Device information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the Memory Device information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/"MEMORY DEVICES"/,/]/'
    2. dmidecode | awk '/type 17,/,/^$/'
The data should be 100% consistentPass
12Verify if the plugin returns correct IPMI Device information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the IPMI Device information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/"IPMI DEVICE"/,/}/'
    2. dmidecode | awk '/type 38,/,/^$/'
The data should be 100% consistentPass
13Verify if the plugin returns correct Onboard Devices Extended Information
  1. Build and install collectd with basic configuration of capabilities plugin.
  2. Start collectd
  3. Compare if the Onboard Devices Extended information returned by the plugin is consistent with DMIDECODE output
    1. curl localhost:9104| jq .|awk '/"ONBOARD DEVICES EXTENDED INFORMATION"/,/^$/'
    2. dmidecode | awk '/type 41,/,/^$/'
The data should be 100% consistentPass
14Check collectd behavior upon lack of 'LoadPlugin capabilities' section in the configuration file
  1. Build and install collectd with basic configuration of capabilities plugin , but comment 'LoadPlugin capabilities'
  2. Start collectd
Warnings are raised in collectd log file:Pass
15Verify plugin behavior upon incorrect format of string configuration option
  1. Build and install collectd with basic configuration of capabilities plugin.
    1. *Tested data formats for Host and Port field:*
      * lack of quotes and correct address
      * empty
      * commas instead of dots in the ip address
      * random quoted string
  2. Start collectd
Respective Warnings are raised in collectd log file:Pass
16Verify plugin behavior upon incorrect data type instead of string in configuration option
  1. Build and install collectd with basic configuration of capabilities plugin.
    1. # Boolean - true/false
      # Integer
      # Float
      # special chars
      # null
  2. Start collectd
Respective Warnings are raised in collectd log file:Pass