Skip to content

Instantly share code, notes, and snippets.

@smccarney
Last active May 30, 2024 22:27
Show Gist options
  • Save smccarney/115a90a26a04e28c226d4e86eaf84cbf to your computer and use it in GitHub Desktop.
Save smccarney/115a90a26a04e28c226d4e86eaf84cbf to your computer and use it in GitHub Desktop.
Test plan for DeviceFinder

Test Plan

Automated Tests

  • Verify all automated tests run successfully

Manual Tests

  • DeviceFinder::DeviceFinder()
    • Verify callback is stored and can be called later
    • Verify DBusInterfacesFinder is set up correctly and calls interfaceFoundCallback()
  • DeviceFinder::interfaceFoundCallback()
    • Verify path parameter has correct value
    • Verify interface parameter has correct value
    • Verify properties parameter has correct values
    • Type property
      • Test where able to obtain property from map
      • Test where unable to obtain property from map
      • Test where unable to get std::string from variant value
    • Name property
      • Test where able to get property from map
      • Test where unable to get property from map
      • Test where unable to get std::string from variant value
    • Bus property
      • Test where able to obtain property from map
      • Test where unable to obtain property from map
      • Test where unable to get uint8_t from variant value
    • Address property
      • Test where able to obtain property from map
      • Test where unable to obtain property from map
      • Test where unable to get uint16_t from variant value
    • Verify callback is called
      • Verify struct passed to callback has the correct property values
    • Test where one device is found
    • Test where multiple devices are found
    • Test where xyz.openbmc_project.Configuration.UCD90160 interface is found
    • Test where xyz.openbmc_project.Configuration.UCD90320 interface is found
  • DeviceFinder::getPropertyValue()
    • Test where property name is found
    • Test where property name is not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment