canonical / hardware-observer-operator

A charm to setup prometheus exporter for IPMI, RedFish and RAID devices from different vendors.
Apache License 2.0
7 stars 14 forks source link

tests: Collector specific tests for real hw #183

Closed dashmage closed 4 months ago

dashmage commented 4 months ago

Adds collector specific tests most notably for redfish.

For the redfish test, two new env vars are introduced for the username and password credentials. After successful authentication to the redfish service, the redfish specific metrics are fetched.

Also fixes "ipmi_sensor" typo in parse_metrics function and test_collector_specific_metrics_available.

The documentation for letting the user know that they have to add these env vars for redfish will come as part of a later PR which will cover all prerequisite steps for real h/w testing.

dashmage commented 4 months ago

Rebased changes from master branch

dashmage commented 4 months ago

Had to rebase from master again due to new changes