The ironic.tests.unit.objects.test_chassis Module

class ironic.tests.unit.objects.test_chassis.TestChassisObject(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test_get_bad_id_and_uuid()[source]
test_get_by_id()[source]
test_get_by_uuid()[source]
test_list()[source]
test_payload_schemas()[source]

Assert that the chassis’ Payload SCHEMAs have the expected properties.

A payload’s SCHEMA should:

  1. Have each of its keys in the payload’s fields
  2. Have each member of the schema match with a corresponding field in the Chassis object
test_refresh()[source]
test_save()[source]
test_save_after_refresh()[source]