Plugin:capabilities/tests

From collectd Wiki
< Plugin:capabilities
Revision as of 19:09, 13 March 2020 by Efoley (talk | contribs) (Add testplan for capabilities plugin)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page contains tests instructions for the capabilities plugin. This page is meant to aid in testing at release time and be a guide for developing automated tests. Please add any tests that you have run when testing this plugin.

OPNFV/Barometer

Check collectd installation procedure with capabilities enabled

  • Test steps
  1. Build and install collectd with debug log level and capabilities plugin enabled
  2. start collectd
  • Expected result
    • Collectd has started
    • Capabilities plugin is loaded

Check if the plugin returns the data according to the design

  • Test steps
  1. Build and install collectd with debug log level and capabilities plugin enabled.
  2. Start collectd
  3. Read the data collectd by plugin
   $ curl localhost:9104
  • Expected result
    • HTTP GET request should result in the display of a data structure about system capabilities read from dmidecode

Verify if the plugin returns the data in json format

  • Test steps
  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
   $ curl localhost:9104 | jq type
  • Expected result
    • 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"

Check if the plugin returns information from pre-selected number of DMI types

  • Test steps
  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
   $ curl localhost:9104 | jq type
  • Expected result
    • 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

See also