Skip to content

Instantly share code, notes, and snippets.

@smccarney
Last active May 7, 2022 15:47
Show Gist options
  • Save smccarney/c2eea054b7439b84b55f4fb89f474413 to your computer and use it in GitHub Desktop.
Save smccarney/c2eea054b7439b84b55f4fb89f474413 to your computer and use it in GitHub Desktop.
Test Plan for "regulators: Host reboot should not redo operations

Test plan

obmcutil poweron where warm host reboot occurs

  • Verify configuration service is started once
  • Verify configuration is performed once
  • Verify configuration is performed before chassis power is on
  • Verify sensor monitoring enable service is started once
  • Verify sensor monitoring is enabled once
  • Verify sensor monitoring is enabled after chassis power is on
  • Verify sensor monitoring disable service is not started
  • Verify sensors are available on D-Bus
  • Verify no errors are logged

obmcutil poweroff when warm host reboot had occurred

  • Verify configuration service is stopped
  • Verify configuration is not performed
  • Verify sensor monitoring enable service is stopped
  • Verify sensor monitoring is not enabled
  • Verify sensor monitoring disable service is started
  • Verify sensor monitoring is disabled
  • Verify sensor monitoring is disabled before chassis power is off
  • Verify sensors are available on D-Bus but have NaN values
  • Verify no errors are logged

obmcutil poweron where no warm host reboot occurs

  • Verify configuration service is started once
  • Verify configuration is performed once
  • Verify configuration is performed before chassis power is on
  • Verify sensor monitoring enable service is started once
  • Verify sensor monitoring is enabled once
  • Verify sensor monitoring is enabled after chassis power is on
  • Verify sensor monitoring disable service is stopped
  • Verify sensors are available on D-Bus
  • Verify no errors are logged

obmcutil poweroff when no warm host reboot had occurred

  • Verify configuration service is stopped
  • Verify configuration is not performed
  • Verify sensor monitoring enable service is stopped
  • Verify sensor monitoring is not enabled
  • Verify sensor monitoring disable service is started
  • Verify sensor monitoring is disabled
  • Verify sensor monitoring is disabled before chassis power is off
  • Verify sensors are available on D-Bus but have NaN values
  • Verify no errors are logged

obmcutil chassison

  • Verify configuration service is started once
  • Verify configuration is performed once
  • Verify configuration is performed before chassis power is on
  • Verify sensor monitoring enable service is started once
  • Verify sensor monitoring is enabled once
  • Verify sensor monitoring is enabled after chassis power is on
  • Verify sensor monitoring disable service is stopped
  • Verify sensors are available on D-Bus
  • Verify no errors are logged

obmcutil chassisoff

  • Verify configuration service is stopped
  • Verify configuration is not performed
  • Verify sensor monitoring enable service is stopped
  • Verify sensor monitoring is not enabled
  • Verify sensor monitoring disable service is started
  • Verify sensor monitoring is disabled
  • Verify sensor monitoring is disabled before chassis power is off
  • Verify sensors are available on D-Bus but have NaN values
  • Verify no errors are logged

BMC reset

  • When system/chassis was powered off
    • Verify system still powered off
    • Verify regulators application is started
      • Verify it finds the JSON configuration file
      • Verify it claims bus name but has no sensors published
      • Verify configuration is not performed
      • Verify sensor monitoring is not enabled
    • Verify no errors are logged
  • When system/chassis was powered on
    • Verify system still powered on
    • Verify regulators application is started
      • Verify it finds the JSON configuration file
      • Verify it claims bus name
      • Verify configuration is not performed
      • Verify sensor monitoring is enabled
      • Verify sensors are available on D-Bus
    • Verify no errors are logged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment