The ironic.tests.unit.api.v1.test_types Module

class ironic.tests.unit.api.v1.test_types.MyBaseType[source]

Bases: object

Helper class, patched by objects of type MyPatchType

class ironic.tests.unit.api.v1.test_types.MyPatchType(**kw)[source]

Bases: ironic.api.controllers.v1.types.JsonPatchType

Helper class for TestJsonPatchType tests.

static internal_attrs()[source]
class ironic.tests.unit.api.v1.test_types.MyRoot(protocols=[], webpath='', transaction=None, scan_api=<function scan_api at 0x7f4f52b8c410>)[source]

Bases: wsme.root.WSRoot

Helper class for TestJsonPatchType tests.

test(patch)[source]
class ironic.tests.unit.api.v1.test_types.TestBooleanType(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_invalid_value()[source]
test_valid_false_values()[source]
test_valid_true_values()[source]
class ironic.tests.unit.api.v1.test_types.TestJsonPatchType(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_cannot_add_with_no_value()[source]
test_cannot_remove_extra_non_removable_attr()[source]
test_cannot_remove_mandatory_attr()[source]
test_cannot_replace_with_no_value()[source]
test_cannot_update_internal_attr()[source]
test_cannot_update_internal_dict_attr()[source]
test_invalid_op()[source]
test_invalid_path()[source]
test_mandatory_attr()[source]
test_missing_required_fields_op()[source]
test_missing_required_fields_path()[source]
test_valid_patches()[source]
class ironic.tests.unit.api.v1.test_types.TestJsonType(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_apimultitype_tostring()[source]
test_invalid_values()[source]
test_valid_values()[source]
class ironic.tests.unit.api.v1.test_types.TestListType(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_list_type()[source]
class ironic.tests.unit.api.v1.test_types.TestMacAddressType(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_invalid_mac_addr()[source]
test_valid_mac_addr()[source]
class ironic.tests.unit.api.v1.test_types.TestNameType(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_invalid_name(*args, **keywargs)[source]
test_valid_name(*args, **keywargs)[source]
class ironic.tests.unit.api.v1.test_types.TestUuidOrNameType(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_invalid_uuid_or_name(*args, **keywargs)[source]
test_valid_name(*args, **keywargs)[source]
test_valid_uuid(*args, **keywargs)[source]
class ironic.tests.unit.api.v1.test_types.TestUuidType(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_invalid_uuid()[source]
test_valid_uuid()[source]

Project Source

This Page