Project

General

Profile

Feature #12488

Add libtopo facility node test

Added by Rob Johnston about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

It would be useful - especially wrt to evaluating hardware platforms on SmartOS - if we had an automated test that verified the basic functionality of the sensors and indicators that get enumerated in the topo tree. In particular, the test should validate the following assertions

For every sensor node (discrete and threshold), we can get the "facility/class" property
For every discrete sensor node, we can get the "facility/state" property.
For every discrete sensor node, we can get the "facility/type" property
For every threshold sensor we can get the "facility/reading" property
For every threshold sensor we can get the "facility/units" property
For every indicator we can get the "facility/mode" property
For every indicator we can set the "facility/type" property

Also available in: Atom PDF