Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save smccarney/5d164131a84717b3f2a8835ae0fc466b to your computer and use it in GitHub Desktop.
Save smccarney/5d164131a84717b3f2a8835ae0fc466b to your computer and use it in GitHub Desktop.
Test plan: regulators: Load JSON config file
Test Plan
---------
x Constructor
x Verify config file is loaded
x sighupHandler()
x Verify config file is re-loaded
x findConfigFile()
x Test where works
x Test where found in test directory /etc/phosphor-regulators
x Test where found in standard directory /usr/share/phosphor-regulators
x Test where /etc/phosphor-regulators does not exist
x Test where /etc/phosphor-regulators does not contain config file name
x Test where fails
x Configuration file does not exist
x Unable to determine if file exists due to file system error
* Infinite symbolic links loop
x loadConfigFile()
x Test where works
x Verify informational message in journal
x Verify system data member is set to a new System object
x Test were fails
x Unable to find config file
x Unable to parse file due to invalid contents
x Regression
x Verify phosphor-regulators application started at standby
x Verify config file is loaded from standard directory
x Verify no unexpected messages in journal
x Power on chassis
x Verify configure operation occurs
x Verify monitoring is enabled
x Verify no unexpected messages in journal
x Power off chassis
x Verify monitoring is disabled
x Verify no unexpected messages in journal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment