The ironic.tests.unit.objects.test_port Module

class ironic.tests.unit.objects.test_port.TestPortObject(*args, **kwargs)[source]

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

setUp()[source]
test_get_bad_id_and_uuid_and_address()[source]
test_get_by_address()[source]
test_get_by_id()[source]
test_get_by_uuid()[source]
test_list()[source]
test_payload_schemas()[source]

Assert that the port’s 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 Port object
test_refresh()[source]
test_save()[source]
test_save_after_refresh()[source]