Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add initial Redfish unit tests #398

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Aug 28, 2019

  1. Add Redfish unit tests

    Added unit tests for Redfish system. These unit tests employ
    `unittest.mock`, which is a Python 3 feature only.
    matejart committed Aug 28, 2019
    Configuration menu
    Copy the full SHA
    8876b9c View commit details
    Browse the repository at this point in the history
  2. Add redfish wrapanapi properties

    This adds `machine_type` and `product_name` properties to
    `RedfishServer`.
    
    Related PR:
      * ManageIQ/manageiq-providers-redfish#83
    matejart committed Aug 28, 2019
    Configuration menu
    Copy the full SHA
    bde2c7a View commit details
    Browse the repository at this point in the history
  3. Remove a Python 2 leftover

    We address Python 3's `Exception` not having `message` anymore.
    matejart committed Aug 28, 2019
    Configuration menu
    Copy the full SHA
    3c025a9 View commit details
    Browse the repository at this point in the history
  4. Add travis steps to remove Python 3+ tests

    The Redfish tests are Python 3 only. With this change we remove
    the tests if running in anything less than Python 3.6.
    matejart committed Aug 28, 2019
    Configuration menu
    Copy the full SHA
    8261821 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2019

  1. Configuration menu
    Copy the full SHA
    f2694f9 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2019

  1. Push for coverage

    matejart committed Sep 3, 2019
    Configuration menu
    Copy the full SHA
    1537347 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2019

  1. Convert redfish tests to pytest

    This commit replaces the use of unittest with the constructs from
    pytest. We started off using unittest, but then we'd introduce
    parametrization, which wouldn't work because the mix with unit test
    caused parametrization to get lost. Now we use mainly the equivalent
    pytest constructs.
    matejart committed Sep 5, 2019
    Configuration menu
    Copy the full SHA
    a97bcc1 View commit details
    Browse the repository at this point in the history