This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.tests.integrated.integrated_helpers Module

Provides common functionality for integrated unit tests

class nova.tests.integrated.integrated_helpers.IntegratedUnitTestContext(auth_url)

Bases: object

cleanup()
setup()
class nova.tests.integrated.integrated_helpers.TestUser(name, secret, auth_url)

Bases: object

get_invalid_image()
get_unused_server_name()
get_valid_image(create=False)
nova.tests.integrated.integrated_helpers.generate_new_element(items, prefix, numeric=False)

Creates a random string with prefix, that is not in ‘items’ list.

nova.tests.integrated.integrated_helpers.generate_random_alphanumeric(length)

Creates a random alphanumeric string of specified length.

nova.tests.integrated.integrated_helpers.generate_random_numeric(length)

Creates a random numeric string of specified length.