The nova.tests.test_metadata Module

Tests for metadata service.

class MetadataHandlerTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test that metadata is returning proper values.

setUp()
test_callable()
test_fixed_address_none()
test_invalid_path_is_404()
test_root()
test_user_data_non_existing_fixed_address()
test_user_data_with_quantum_instance_id()
test_user_data_with_use_forwarded_header()
test_version_root()
class MetadataPasswordTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_bad_method()
test_conflict()
test_get_password()
test_set_password()
test_too_large()
class MetadataTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_can_pickle_metadata()
test_check_version()
test_format_instance_mapping()
test_image_type_kernel()
test_image_type_ramdisk()
test_local_hostname_fqdn()
test_no_user_data()
test_pubkey()
test_security_groups()
test_user_data()
class OpenStackMetadataTestCase(*args, **kwargs)

Bases: nova.test.TestCase

setUp()
test_extra_md()
test_metadata_json()
test_no_dashes_in_metadata()
test_password()
test_random_seed()
test_top_level_listing()
test_userdata()
test_version_content_listing()
fake_InstanceMetadata(stubs, inst_data, address=None, sgroups=None, content=[], extra_md={})
fake_request(stubs, mdinst, relpath, address='127.0.0.1', fake_get_metadata=None, headers=None, fake_get_metadata_by_instance_id=None)
get_default_sys_meta()
return_non_existing_address(*args, **kwarg)

Previous topic

The nova.tests.test_matchers Module

Next topic

The nova.tests.test_migration_utils Module

This Page