Skip to content

Instantly share code, notes, and snippets.

View smccarney's full-sized avatar

Shawn McCarney smccarney

  • IBM
  • Rochester, MN, USA
View GitHub Profile
@smccarney
smccarney / gist:79186e8510ba5479e846f2592d44d059
Created March 19, 2019 14:25
Test Plan: Redfish: Enhance and fix power/thermal sensors
Test Plan
---------
x Run Redfish-Service-Validator
x Verify changes do not introduce any new errors
x power.hpp
x Test where built with BMCWEB_ENABLE_REDFISH_ONE_CHASSIS=1
x Verify power sensors are returned
x thermal.hpp
@smccarney
smccarney / gist:f5b4783d8cf41a486ceff9b941b1ba9a
Last active May 8, 2019 14:18
Test Plan for removal of BMCWEB_ENABLE_REDFISH_ONE_CHASSIS
Test Plan for Removal of BMCWEB_ENABLE_REDFISH_ONE_CHASSIS
----------------------------------------------------------
x Run Redfish Validator
x Verify no new errors
x Old bmcweb
x err.Resource.UUID: 1
* From Systems/system
* warningPresent: 21
* Mostly empty VPD and missing @odata.type in PowerSupply objects
@smccarney
smccarney / gist:accc500b58fed80b711c65520cc7aafc
Last active June 25, 2019 17:04
Test Plan: Check inventory item for sensor status
Test Plan: Sensor status based on inventory item status
-------------------------------------------------------
x Run Redfish Validator
x Verify no new errors
x Manually verify Redfish output from each chassis
x At standby
x chassis
x Power
@smccarney
smccarney / gist:43b2fae304575302af61332a71280d74
Last active August 5, 2019 19:58
Test Plan: Move power supplies to Power schema
Test Plan: Move power supplies to Power schema
----------------------------------------------
x Run Redfish Validator
x Verify no new errors
x Old bmcweb
* err.Resource.UUID: 1
* warningPresent: 24
* failProp: 1
* warnTrailingSlashLink: 1
@smccarney
smccarney / gist:5d164131a84717b3f2a8835ae0fc466b
Created May 3, 2020 05:09
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
@smccarney
smccarney / gist:60ecbc018c55a5d13661bda8ee256d61
Last active October 7, 2020 15:03
Test plan for DBusErrorLogging class

Test plan for DBusErrorLogging implementation

Tests based on source code (white box)

  • error_logging.[hc]pp n DBusErrorLogging()
    • logConfigFileError()
      • Verify logs error of type xyz.openbmc_project.Power.Regulators.Error.ConfigFile
      • Verify specified severity is used
  • logDBusError()
@smccarney
smccarney / test_plan.md
Created November 5, 2020 19:49
Test Plan for Presence Service

Test Plan

  • presence_service.[hc]pp
    • DBusPresenceService
      • clearCache()
        • Verify clears all cached data
      • isPresent()
        • Test where value is cached
          • Test where hardware is present
  • Test where hardware is not present
@smccarney
smccarney / gist:2dbc81aa55e3fa6250f0827eab62fff7
Last active January 21, 2021 14:26
Test Plan for "regulators: Obtain config file name from D-Bus"

Test Plan

Manager class

  • Manager()
    • Verify that D-Bus object path is created
      • /xyz/openbmc_project/power/regulators/manager
    • Verify that D-Bus service/bus name is created
      • xyz.openbmc_project.Power.Regulators
  • Verify adds D-Bus match rule to be notified of interfacesAdded signals
@smccarney
smccarney / test_plan.md
Last active January 30, 2021 23:09
Test Plan

Test Plan

  • DBusPresenceService::isPresent()
    • Where value is cached
      • Value is true
      • Value is false
        • Obtained false from Present property
        • Obtained false by catching expected exception
    • Where value is not cached
  • No exception occurs