¡@

Home 

OpenStack Study: nova

OpenStack Index

Previous

Next

class PauseServerSamplesJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_post_pause(self):

    def test_post_unpause(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_pci.py

class ExtendedServerPciSampleJsonTest(test_servers.ServersSampleBase):

    def test_show(self):

    def test_detail(self):

class ExtendedHyervisorPciSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def setUp(self):

    def test_pci_show(self):

        def fake_compute_node_get(context, id):

    def test_pci_detail(self):

        def fake_compute_node_get_all(context):

class PciSampleJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def _fake_pci_device_get_by_id(self, context, id):

    def _fake_pci_device_get_all_by_node(self, context, id):

    def test_pci_show(self):

    def test_pci_index(self):

    def test_pci_detail(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_quota_sets.py

class QuotaSetsSampleJsonTests(api_sample_base.ApiSampleTestBaseV3):

    def test_show_quotas(self):

    def test_show_quotas_defaults(self):

    def test_update_quotas(self):

    def test_delete_quotas(self):

    def test_update_quotas_force(self):

    def test_show_quotas_for_user(self):

    def test_delete_quotas_for_user(self):

    def test_update_quotas_for_user(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_remote_consoles.py

class ConsolesSampleJsonTests(test_servers.ServersSampleBase):

    def setUp(self):

    def test_get_vnc_console(self):

    def test_get_spice_console(self):

    def test_get_rdp_console(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_rescue.py

class RescueJsonTest(test_servers.ServersSampleBase):

    def _rescue(self, uuid):

    def _unrescue(self, uuid):

    def test_server_rescue(self):

    def test_server_unrescue(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_scheduler_hints.py

class SchedulerHintsJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def test_scheduler_hints_post(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_security_groups.py

def fake_get(*args, **kwargs):

def fake_get_instances_security_groups_bindings(self, context, servers):

class SecurityGroupsJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_server_create(self):

    def test_server_get(self):

    def test_server_detail(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_servers.py

class ServersSampleBase(api_sample_base.ApiSampleTestBaseV3):

    def _post_server(self):

class ServersSampleJsonTest(ServersSampleBase):

    def test_servers_post(self):

    def test_servers_get(self):

    def test_servers_list(self):

    def test_servers_details(self):

class ServersSampleAllExtensionJsonTest(ServersSampleJsonTest):

class ServersActionsJsonTest(ServersSampleBase):

    def _test_server_action(self, uuid, action, subs={}, resp_tpl=None, code=202):

    def test_server_reboot_hard(self):

    def test_server_reboot_soft(self):

    def test_server_rebuild(self):

    def _test_server_rebuild_preserve_ephemeral(self, value):

        def fake_rebuild(self_, context, instance, image_href, admin_password, files_to_inject=None, **kwargs):

    def test_server_rebuild_preserve_ephemeral_true(self):

    def test_server_rebuild_preserve_ephemeral_false(self):

    def test_server_resize(self):

    def test_server_revert_resize(self):

    def test_server_confirm_resize(self):

    def test_server_create_image(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_servers_ips.py

class ServersIpsJsonTest(test_servers.ServersSampleBase):

    def test_get(self):

    def test_get_by_network(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_server_diagnostics.py

class ServerDiagnosticsSamplesJsonTest(test_servers.ServersSampleBase):

    def test_server_diagnostics_get(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_server_external_events.py

class ServerExternalEventsSamplesJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_create_event(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_server_metadata.py

class ServersMetadataJsonTest(test_servers.ServersSampleBase):

    def _create_and_set(self, subs):

    def generalize_subs(self, subs, vanilla_regexes):

    def test_metadata_put_all(self):

    def test_metadata_post_all(self):

    def test_metadata_get_all(self):

    def test_metadata_put(self):

    def test_metadata_get(self):

    def test_metadata_delete(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_server_usage.py

class ServerUsageSampleJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_show(self):

    def test_details(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_services.py

class ServicesJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def setUp(self):

    def tearDown(self):

    def test_services_list(self):

    def test_service_enable(self):

    def test_service_disable(self):

    def test_service_disable_log_reason(self):

    def test_service_delete(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_shelve.py

class ShelveJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def _test_server_action(self, uuid, template, action):

    def test_shelve(self):

    def test_shelve_offload(self):

    def test_unshelve(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_suspend_server.py

class SuspendServerSamplesJsonTest(test_servers.ServersSampleBase):

    def setUp(self):

    def test_post_suspend(self):

    def test_post_resume(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\test_user_data.py

class UserDataJsonTest(api_sample_base.ApiSampleTestBaseV3):

    def test_user_data_post(self):

\OpenStack\nova-2014.1\nova\tests\integrated\v3\__init__.py

\OpenStack\nova-2014.1\nova\tests\integrated\__init__.py

\OpenStack\nova-2014.1\nova\tests\keymgr\fake.py

def fake_api():

\OpenStack\nova-2014.1\nova\tests\keymgr\test_conf_key_mgr.py

class ConfKeyManagerTestCase(test_single_key_mgr.SingleKeyManagerTestCase):

    def __init__(self, *args, **kwargs):

    def _create_key_manager(self):

    def setUp(self):

\OpenStack\nova-2014.1\nova\tests\keymgr\test_key.py

class KeyTestCase(test.NoDBTestCase):

    def _create_key(self):

    def setUp(self):

class SymmetricKeyTestCase(KeyTestCase):

    def _create_key(self):

    def setUp(self):

    def test_get_algorithm(self):

    def test_get_format(self):

    def test_get_encoded(self):

    def test___eq__(self):

    def test___ne__(self):

\OpenStack\nova-2014.1\nova\tests\keymgr\test_key_mgr.py

class KeyManagerTestCase(test.NoDBTestCase):

    def _create_key_manager(self):

    def setUp(self):

\OpenStack\nova-2014.1\nova\tests\keymgr\test_mock_key_mgr.py

class MockKeyManagerTestCase(test_key_mgr.KeyManagerTestCase):

    def _create_key_manager(self):

    def setUp(self):

    def test_create_key(self):

    def test_create_key_with_length(self):

    def test_create_null_context(self):

    def test_store_key(self):

    def test_store_null_context(self):

    def test_copy_key(self):

    def test_copy_null_context(self):

    def test_get_key(self):

    def test_get_null_context(self):

    def test_get_unknown_key(self):

    def test_delete_key(self):

    def test_delete_null_context(self):

    def test_delete_unknown_key(self):

\OpenStack\nova-2014.1\nova\tests\keymgr\test_not_implemented_key_mgr.py

class NotImplementedKeyManagerTestCase(test_key_mgr.KeyManagerTestCase):

    def _create_key_manager(self):

    def setUp(self):

    def test_create_key(self):

    def test_store_key(self):

    def test_copy_key(self):

    def test_get_key(self):

    def test_delete_key(self):

\OpenStack\nova-2014.1\nova\tests\keymgr\test_single_key_mgr.py

class SingleKeyManagerTestCase(test_mock_key_mgr.MockKeyManagerTestCase):

    def _create_key_manager(self):

    def setUp(self):

    def test___init__(self):

    def test_create_key(self):

    def test_create_key_with_length(self):

    def test_store_null_context(self):

    def test_copy_key(self):

    def test_delete_key(self):

    def test_delete_unknown_key(self):

\OpenStack\nova-2014.1\nova\tests\keymgr\__init__.py

\OpenStack\nova-2014.1\nova\tests\matchers.py

class DictKeysMismatch(object):

    def __init__(self, d1only, d2only):

    def describe(self):

    def get_details(self):

class DictMismatch(object):

    def __init__(self, key, d1_value, d2_value):

    def describe(self):

    def get_details(self):

class DictMatches(object):

    def __init__(self, d1, approx_equal=False, tolerance=0.001):

    def __str__(self):

    def match(self, d2):

class ListLengthMismatch(object):

    def __init__(self, len1, len2):

    def describe(self):

    def get_details(self):

class DictListMatches(object):

    def __init__(self, l1, approx_equal=False, tolerance=0.001):

    def __str__(self):

    def match(self, l2):

class SubDictMismatch(object):

    def __init__(self, key=None, sub_value=None, super_value=None, keys=False):

    def describe(self):

    def get_details(self):

class IsSubDictOf(object):

    def __init__(self, super_dict):

    def __str__(self):

    def match(self, sub_dict):

class FunctionCallMatcher(object):

    def __init__(self, expected_func_calls):

    def call(self, *args, **kwargs):

    def match(self):

class XMLMismatch(object):

    def __init__(self, state):

    def describe(self):

    def get_details(self):

class XMLTagMismatch(XMLMismatch):

    def __init__(self, state, idx, expected_tag, actual_tag):

    def describe(self):

class XMLAttrKeysMismatch(XMLMismatch):

    def __init__(self, state, expected_only, actual_only):

    def describe(self):

class XMLAttrValueMismatch(XMLMismatch):

    def __init__(self, state, key, expected_value, actual_value):

    def describe(self):

class XMLTextValueMismatch(XMLMismatch):

    def __init__(self, state, expected_text, actual_text):

    def describe(self):

class XMLUnexpectedChild(XMLMismatch):

    def __init__(self, state, tag, idx):

    def describe(self):

class XMLExpectedChild(XMLMismatch):

    def __init__(self, state, tag, idx):

    def describe(self):

class XMLMatchState(object):

    def __init__(self, expected, actual):

    def __enter__(self):

    def __exit__(self, exc_type, exc_value, exc_tb):

    def __str__(self):

    def node(self, tag, idx):

class XMLMatches(object):

    def __init__(self, expected):

    def __str__(self):

    def match(self, actual_xml):

    def _compare_node(self, expected, actual, state, idx):

\OpenStack\nova-2014.1\nova\tests\monkey_patch_example\example_a.py

def example_function_a():

class ExampleClassA():

    def example_method(self):

    def example_method_add(self, arg1, arg2):

\OpenStack\nova-2014.1\nova\tests\monkey_patch_example\example_b.py

def example_function_b():

class ExampleClassB():

    def example_method(self):

    def example_method_add(self, arg1, arg2):

\OpenStack\nova-2014.1\nova\tests\monkey_patch_example\__init__.py

def example_decorator(name, function):

\OpenStack\nova-2014.1\nova\tests\network\security_group\test_neutron_driver.py

class TestNeutronDriver(test.NoDBTestCase):

    def setUp(self):

    def test_list_with_project(self):

    def test_create_security_group_exceed_quota(self):

    def test_create_security_group_rules_exceed_quota(self):

    def test_list_security_group_with_no_port_range_and_not_tcp_udp_icmp(self):

    def test_instances_security_group_bindings(self):

    def _test_instances_security_group_bindings_scale(self, num_servers):

    def test_instances_security_group_bindings_less_than_max(self):

    def test_instances_security_group_bindings_max(self):

    def test_instances_security_group_bindings_more_then_max(self):

    def test_instances_security_group_bindings_with_hidden_sg(self):

\OpenStack\nova-2014.1\nova\tests\network\security_group\__init__.py

\OpenStack\nova-2014.1\nova\tests\network\test_api.py

class NetworkPolicyTestCase(test.TestCase):

    def setUp(self):

    def tearDown(self):

    def test_check_policy(self):

class ApiTestCase(test.TestCase):

    def setUp(self):

    def test_allocate_for_instance_handles_macs_passed(self):

    def _do_test_associate_floating_ip(self, orig_instance_uuid):

        def fake_associate(*args, **kwargs):

        def fake_instance_get_by_uuid(context, instance_uuid):

        def fake_get_nw_info(ctxt, instance):

        def fake_instance_info_cache_update(context, instance_uuid, cache):

        def fake_update_instance_cache_with_nw_info(api, context, instance, nw_info=None, update_cells=True):

    def test_associate_preassociated_floating_ip(self):

    def test_associate_unassociated_floating_ip(self):

    def test_get_floating_ip_invalid_id(self):

    def _stub_migrate_instance_calls(self, method, multi_host, info):

        def fake_mig_inst_method(*args, **kwargs):

        def fake_is_multi_host(*args, **kwargs):

        def fake_get_floaters(*args, **kwargs):

    def test_migrate_instance_start_with_multhost(self):

    def test_migrate_instance_start_without_multhost(self):

    def test_migrate_instance_finish_with_multhost(self):

    def test_migrate_instance_finish_without_multhost(self):

    def test_is_multi_host_instance_has_no_fixed_ip(self):

        def fake_fixed_ip_get_by_instance(ctxt, uuid):

    def test_is_multi_host_network_has_no_project_id(self):

        def fake_fixed_ip_get_by_instance(ctxt, uuid):

    def test_is_multi_host_network_has_project_id(self):

        def fake_fixed_ip_get_by_instance(ctxt, uuid):

    def test_network_disassociate_project(self):

        def fake_network_disassociate(ctx, network_id, disassociate_host, disassociate_project):

        def fake_get(context, network_uuid):

class TestUpdateInstanceCache(test.TestCase):

    def setUp(self):

    def expect_cache_update(self, nw_info):

    def test_update_nw_info_none(self):

    def test_update_nw_info_one_network(self):

    def test_update_nw_info_empty_list(self):

    def test_decorator_return_object(self):

        def func(self, context, instance):

    def test_decorator_return_none(self):

        def func(self, context, instance):

\OpenStack\nova-2014.1\nova\tests\network\test_ipam_lib.py

class NeutronNovaIPAMTestCase(test.NoDBTestCase):

    def test_get_v4_ips_by_interface(self):

    def test_get_v4_ips_by_interface_bad_id(self):

    def test_get_v6_ips_by_interface(self):

    def test_get_v6_ips_by_interface_bad_id(self):

\OpenStack\nova-2014.1\nova\tests\network\test_linux_net.py

def get_associated(context, network_id, host=None, address=None):

class LinuxNetworkTestCase(test.NoDBTestCase):

    def setUp(self):

        def get_vifs(_context, instance_uuid, use_slave):

        def get_instance(_context, instance_id):

    def _test_add_snat_rule(self, expected):

        def verify_add_rule(chain, rule):

    def test_add_snat_rule(self):

    def test_add_snat_rule_snat_range(self):

    def test_update_dhcp_for_nw00(self):

    def test_update_dhcp_for_nw01(self):

    def test_get_dhcp_hosts_for_nw00(self):

    def test_get_dhcp_hosts_for_nw01(self):

    def test_get_dns_hosts_for_nw00(self):

    def test_get_dns_hosts_for_nw01(self):

    def test_get_dhcp_opts_for_nw00(self):

    def test_get_dhcp_opts_for_nw01(self):

    def test_get_dhcp_leases_for_nw00(self):

    def test_get_dhcp_leases_for_nw01(self):

    def test_dhcp_opts_not_default_gateway_network(self):

    def test_host_dhcp_without_default_gateway_network(self):

    def test_host_dns_without_default_gateway_network(self):

    def test_linux_bridge_driver_plug(self):

        def fake_execute(*args, **kwargs):

        def verify_add_rule(chain, rule):

    def test_linux_ovs_driver_plug_exception(self):

        def fake_execute(*args, **kwargs):

        def fake_device_exists(*args, **kwargs):

    def test_vlan_override(self):

        def test_ensure(vlan, bridge, interface, network, mac_address):

    def test_flat_override(self):

        def test_ensure(bridge, interface, network, gateway):

    def _test_dnsmasq_execute(self, extra_expected=None):

        def fake_execute(*args, **kwargs):

        def fake_add_dhcp_mangle_rule(*args, **kwargs):

    def test_dnsmasq_execute(self):

    def test_dnsmasq_execute_dns_servers(self):

    def test_dnsmasq_execute_use_network_dns_servers(self):

    def test_isolated_host(self):

        def fake_execute(*args, **kwargs):

        def fake_ensure(bridge, interface, network, gateway):

        def fake_remove(bridge, gateway):

    def test_isolated_host_iptables_logdrop(self):

        def fake_execute(*args, **kwargs):

        def fake_ensure(bridge, interface, network, gateway):

        def fake_remove(bridge, gateway):

    def _test_initialize_gateway(self, existing, expected, routes=''):

        def fake_execute(*args, **kwargs):

    def test_initialize_gateway_moves_wrong_ip(self):

    def test_initialize_gateway_resets_route(self):

    def test_initialize_gateway_no_move_right_ip(self):

    def test_initialize_gateway_add_if_blank(self):

    def test_ensure_floating_no_duplicate_forwards(self):

    def test_apply_ran(self):

    def test_apply_not_run(self):

    def test_deferred_unset_apply_ran(self):

    def _test_add_metadata_accept_rule(self, expected):

        def verify_add_rule(chain, rule):

    def test_metadata_accept(self):

    def test_metadata_accept_localhost(self):

    def _test_add_metadata_forward_rule(self, expected):

        def verify_add_rule(chain, rule):

    def test_metadata_forward(self):

    def test_metadata_forward_localhost(self):

    def test_ensure_bridge_brings_up_interface(self):

    def test_set_device_mtu_configured(self):

    def test_set_device_mtu_default(self):

    def _ovs_vif_port(self, calls):

    def test_ovs_vif_port(self):

    def test_ovs_vif_port_with_mtu(self):

    def _create_veth_pair(self, calls):

    def test_create_veth_pair(self):

    def test_create_veth_pair_with_mtu(self):

\OpenStack\nova-2014.1\nova\tests\network\test_manager.py

class FlatNetworkTestCase(test.TestCase):

    def setUp(self):

    def test_get_instance_nw_info(self):

    def test_validate_networks(self):

    def test_validate_networks_valid_fixed_ipv6(self):

    def test_validate_reserved(self):

    def test_validate_networks_none_requested_networks(self):

    def test_validate_networks_empty_requested_networks(self):

    def test_validate_networks_invalid_fixed_ip(self):

    def test_validate_networks_empty_fixed_ip(self):

    def test_validate_networks_none_fixed_ip(self):

    def test_add_fixed_ip_instance_using_id_without_vpn(self, reserve):

    def test_add_fixed_ip_instance_using_uuid_without_vpn(self, reserve):

    def test_mini_dns_driver(self):

    def test_mini_dns_driver_with_mixed_case(self):

    def test_instance_dns(self, reserve):

    def test_allocate_floating_ip(self):

    def test_deallocate_floating_ip(self):

    def test_associate_floating_ip(self):

    def test_disassociate_floating_ip(self):

    def test_get_networks_by_uuids_ordering(self):

    def test_allocate_calculates_quota_auth(self, util_method, reserve, get_by_uuid):

    def test_deallocate_calculates_quota_auth(self, util_method, reserve, get_by_address):

class VlanNetworkTestCase(test.TestCase):

    def setUp(self):

    def test_quota_driver_type(self):

    def test_vpn_allocate_fixed_ip(self):

    def test_vpn_allocate_fixed_ip_no_network_id(self):

    def test_allocate_fixed_ip(self):

    def test_create_networks_too_big(self):

    def test_create_networks_too_many(self):

    def test_duplicate_vlan_raises(self):

    def test_vlan_start(self):

    def test_vlan_start_multiple(self):

    def test_vlan_start_used(self):

    def test_validate_networks(self, net_get):

        def network_get(_context, network_id, project_only='allow_none'):

    def test_validate_networks_none_requested_networks(self):

    def test_validate_networks_empty_requested_networks(self):

    def test_validate_networks_invalid_fixed_ip(self):

    def test_validate_networks_empty_fixed_ip(self):

    def test_validate_networks_none_fixed_ip(self):

    def test_floating_ip_owned_by_project(self):

    def test_allocate_floating_ip(self):

        def fake_allocate_address(*args, **kwargs):

    def test_deallocate_floating_ip(self):

        def fake1(*args, **kwargs):

        def fake2(*args, **kwargs):

        def fake3(*args, **kwargs):

    def test_associate_floating_ip(self, fixed_get):

        def fake1(*args, **kwargs):

        def fake2(*args, **kwargs):

        def fake3(*args, **kwargs):

        def fake4(*args, **kwargs):

        def fake4_network(*args, **kwargs):

        def fake5(*args, **kwargs):

        def fake5_network(*args, **kwargs):

        def fake6(ctxt, method, **kwargs):

        def fake7(*args, **kwargs):

        def fake8(*args, **kwargs):

        def fake9(*args, **kwargs):

    def test_add_floating_ip_nat_before_bind(self):

        def fake_nat(*args, **kwargs):

        def fake_bind(*args, **kwargs):

    def _test_floating_ip_init_host(self, fixed_get, floating_get, public_interface, expected_arg):

        def fixed_ip_get(_context, fixed_ip_id, get_network):

    def test_floating_ip_init_host_without_public_interface(self):

    def test_floating_ip_init_host_with_public_interface(self):

    def test_disassociate_floating_ip(self):

        def fake1(*args, **kwargs):

        def fake2(*args, **kwargs):

        def fake3(*args, **kwargs):

        def fake4(*args, **kwargs):

        def fake4_network(*args, **kwargs):

        def fake5(*args, **kwargs):

        def fake5_network(*args, **kwargs):

        def fake6(ctxt, method, **kwargs):

        def fake7(*args, **kwargs):

        def fake8(*args, **kwargs):

    def test_add_fixed_ip_instance_without_vpn_requested_networks(self):

    def test_ip_association_and_allocation_of_other_project(self, net_get, fixed_get):

    def test_deallocate_fixed(self, fixed_update, net_get, fixed_get):

        def vif_get(_context, _vif_id):

    def test_deallocate_fixed_deleted(self):

        def teardown_network_on_host(_context, network):

    def test_deallocate_fixed_no_vif(self, fixed_update, net_get, fixed_get):

        def vif_get(_context, _vif_id):

    def test_fixed_ip_cleanup_fail(self, fixed_update, net_get, fixed_get):

        def fake_refresh(instance_uuid):

    def test_get_networks_by_uuids_ordering(self):

class _TestDomainObject(object):

    def __init__(self, **kwargs):

class FakeNetwork(object):

    def __init__(self, **kwargs):

    def __getitem__(self, item):

class CommonNetworkTestCase(test.TestCase):

    def setUp(self):

    def test_validate_instance_zone_for_dns_domain(self):

        def dnsdomain_get(context, instance_domain):

    def fake_create_fixed_ips(self, context, network_id, fixed_cidr=None):

    def test_get_instance_nw_info_client_exceptions(self):

    def test_deallocate_for_instance_passes_host_info(self, fixed_get, instance_get):

    def test_remove_fixed_ip_from_instance(self, disassociate, get):

    def test_remove_fixed_ip_from_instance_bad_input(self, get):

    def test_validate_cidrs(self):

    def test_validate_cidrs_split_exact_in_half(self):

    def test_validate_cidrs_split_cidr_in_use_middle_of_range(self, get_all):

    def test_validate_cidrs_smaller_subnet_in_use(self, get_all):

    def test_validate_cidrs_split_smaller_cidr_in_use(self, get_all):

    def test_validate_cidrs_split_smaller_cidr_in_use2(self, get_all):

    def test_validate_cidrs_split_all_in_use(self, get_all):

    def test_validate_cidrs_one_in_use(self):

    def test_validate_cidrs_already_used(self, get_all):

    def test_validate_cidrs_too_many(self):

    def test_validate_cidrs_split_partial(self):

    def test_validate_cidrs_conflict_existing_supernet(self, get_all):

    def test_create_networks(self):

    def test_create_networks_cidr_already_used(self, get_all):

    def test_create_networks_many(self):

    def test_get_instance_uuids_by_ip_regex(self, fixed_get, network_get):

    def test_get_instance_uuids_by_ipv6_regex(self, network_get):

        def _network_get(context, network_id, **args):

    def test_get_instance_uuids_by_ip(self, fixed_get, network_get):

    def test_get_network(self, get):

    def test_get_network_not_found(self, get):

    def test_get_all_networks(self, get_all):

    def test_disassociate_network(self, disassociate, get):

    def test_disassociate_network_not_found(self, get):

    def _test_init_host_dynamic_fixed_range(self, net_manager):

    def test_flatdhcpmanager_dynamic_fixed_range(self):

    def test_vlanmanager_dynamic_fixed_range(self):

class TestRPCFixedManager(network_manager.RPCAllocateFixedIP, network_manager.NetworkManager):

class RPCAllocateTestCase(test.TestCase):

    def setUp(self):

    def test_rpc_allocate(self):

        def fake_allocate(*args, **kwargs):

        def fake_network_get(*args, **kwargs):

class TestFloatingIPManager(floating_ips.FloatingIP, network_manager.NetworkManager):

class AllocateTestCase(test.TestCase):

    def setUp(self):

    def test_allocate_for_instance(self):

    def test_allocate_for_instance_with_mac(self):

    def test_allocate_for_instance_not_enough_macs(self):

class FloatingIPTestCase(test.TestCase):

    def setUp(self):

    def test_disassociate_floating_ip_multi_host_calls(self, floating_get, service_get, inst_get, net_get, fixed_get):

    def test_associate_floating_ip_multi_host_calls(self, floating_get, inst_get, net_get, fixed_get):

    def test_double_deallocation(self):

    def test_deallocation_deleted_instance(self):

    def test_deallocation_duplicate_floating_ip(self):

    def test_migrate_instance_start(self, floating_update, floating_get, fixed_get):

        def fake_floating_ip_get_by_address(context, address):

        def fake_is_stale_floating_ip_address(context, floating_ip):

        def fake_remove_floating_ip(floating_addr, fixed_addr, interface, network):

        def fake_clean_conntrack(fixed_ip):

    def test_migrate_instance_finish(self, floating_update, fixed_get):

        def fake_floating_ip_get_by_address(context, address):

        def fake_is_stale_floating_ip_address(context, floating_ip):

        def fake_add_floating_ip(floating_addr, fixed_addr, interface, network):

    def test_floating_dns_create_conflict(self):

    def test_floating_create_and_get(self):

    def test_floating_dns_delete(self):

    def test_floating_dns_domains_public(self):

    def test_delete_all_by_ip(self):

        def fake_domains(context):

    def test_mac_conflicts(self):

        def fake_gen_mac():

        def fake_vif_save(vif):

    def test_deallocate_client_exceptions(self):

    def test_associate_client_exceptions(self):

    def test_disassociate_client_exceptions(self):

    def test_get_floating_ip_client_exceptions(self):

    def _test_associate_floating_ip_failure(self, stdout, expected_exception):

        def _fake_catchall(*args, **kwargs):

        def _fake_add_floating_ip(*args, **kwargs):

    def test_associate_floating_ip_failure(self):

    def test_associate_floating_ip_failure_interface_not_found(self):

class InstanceDNSTestCase(test.TestCase):

    def setUp(self):

    def test_dns_domains_private(self):

class LdapDNSTestCase(test.TestCase):

    def setUp(self):

    def tearDown(self):

    def test_ldap_dns_domains(self):

    def test_ldap_dns_create_conflict(self):

    def test_ldap_dns_create_and_get(self):

    def test_ldap_dns_delete(self):

\OpenStack\nova-2014.1\nova\tests\network\test_network_info.py

class RouteTests(test.NoDBTestCase):

    def test_create_route_with_attrs(self):

    def test_routes_equal(self):

    def test_routes_not_equal(self):

    def test_hydrate(self):

class IPTests(test.NoDBTestCase):

    def test_ip_equal(self):

    def test_ip_not_equal(self):

class FixedIPTests(test.NoDBTestCase):

    def test_createnew_fixed_ip_with_attrs(self):

    def test_create_fixed_ipv6(self):

    def test_create_fixed_bad_ip_fails(self):

    def test_equate_two_fixed_ips(self):

    def test_equate_two_dissimilar_fixed_ips_fails(self):

    def test_hydrate(self):

    def test_add_floating_ip(self):

    def test_add_floating_ip_repeatedly_only_one_instance(self):

class SubnetTests(test.NoDBTestCase):

    def test_create_subnet_with_attrs(self):

    def test_subnet_equal(self):

    def test_subnet_not_equal(self):

    def test_add_route(self):

    def test_add_route_a_lot(self):

    def test_add_dns(self):

    def test_add_dns_a_lot(self):

    def test_add_ip(self):

    def test_add_ip_a_lot(self):

    def test_hydrate(self):

class NetworkTests(test.NoDBTestCase):

    def test_create_network(self):

    def test_add_subnet(self):

    def test_add_subnet_a_lot(self):

    def test_network_equal(self):

    def test_network_not_equal(self):

    def test_hydrate(self):

class VIFTests(test.NoDBTestCase):

    def test_create_vif(self):

    def test_vif_equal(self):

    def test_vif_not_equal(self):

    def test_create_vif_with_type(self):

    def test_vif_get_fixed_ips(self):

    def test_vif_get_floating_ips(self):

    def test_vif_get_labeled_ips(self):

    def test_hydrate(self):

    def test_hydrate_vif_with_type(self):

class NetworkInfoTests(test.NoDBTestCase):

    def test_create_model(self):

    def test_create_async_model(self):

        def async_wrapper():

    def test_create_async_model_exceptions(self):

        def async_wrapper():

    def test_get_floating_ips(self):

    def test_hydrate(self):

    def _test_injected_network_template(self, should_inject, use_ipv4=True, use_ipv6=False, gateway=True):

    def test_injection_static(self):

    def test_injection_static_nogateway(self):

    def test_injection_static_ipv6(self):

    def test_injection_static_ipv6_nogateway(self):

    def test_injection_dynamic(self):

    def test_injection_dynamic_nogateway(self):

    def test_injection_static_with_ipv4_off(self):

    def test_injection_static_ipv6_with_ipv4_off(self):

    def test_injection_static_ipv6_nogateway_with_ipv4_off(self):

    def test_injection_dynamic_with_ipv4_off(self):

\OpenStack\nova-2014.1\nova\tests\network\test_neutronv2.py

class MyComparator(mox.Comparator):

    def __init__(self, lhs):

    def _com_dict(self, lhs, rhs):

    def _com_list(self, lhs, rhs):

    def _com(self, lhs, rhs):

    def equals(self, rhs):

    def __repr__(self):

class TestNeutronClient(test.TestCase):

    def test_withtoken(self):

    def test_withouttoken(self):

    def test_withtoken_context_is_admin(self):

    def test_withouttoken_keystone_connection_error(self):

class TestNeutronv2Base(test.TestCase):

    def setUp(self):

    def _stub_allocate_for_instance(self, net_idx=1, **kwargs):

    def _verify_nw_info(self, nw_inf, index=0):

    def _get_instance_nw_info(self, number):

    def _allocate_for_instance(self, net_idx=1, **kwargs):

class TestNeutronv2(TestNeutronv2Base):

    def setUp(self):

    def test_get_instance_nw_info_1(self):

    def test_get_instance_nw_info_2(self):

    def test_get_instance_nw_info_with_nets_add_interface(self):

    def test_get_instance_nw_info_remove_ports_from_neutron(self):

    def test_get_instance_nw_info_ignores_neturon_ports(self):

    def _fake_get_instance_nw_info_helper(self, network_cache, current_neutron_ports, networks=None, port_ids=None):

    def test_get_instance_nw_info_without_subnet(self):

    def test_refresh_neutron_extensions_cache(self):

    def test_populate_neutron_extension_values_rxtx_factor(self):

    def test_allocate_for_instance_1(self):

    def test_allocate_for_instance_2(self):

    def test_allocate_for_instance_accepts_macs_kwargs_None(self):

    def test_allocate_for_instance_accepts_macs_kwargs_set(self):

    def test_allocate_for_instance_accepts_only_portid(self):

    def test_allocate_for_instance_not_enough_macs_via_ports(self):

    def test_allocate_for_instance_not_enough_macs(self):

    def test_allocate_for_instance_two_macs_two_networks(self):

    def test_allocate_for_instance_mac_conflicting_requested_port(self):

    def test_allocate_for_instance_with_requested_networks(self):

    def test_allocate_for_instance_with_requested_networks_with_fixedip(self):

    def test_allocate_for_instance_with_requested_networks_with_port(self):

    def test_allocate_for_instance_no_networks(self):

    def test_allocate_for_instance_ex1(self):

    def test_allocate_for_instance_ex2(self):

    def test_allocate_for_instance_no_port_or_network(self):

    def test_allocate_for_instance_second_time(self):

    def test_allocate_for_instance_port_in_use(self):

    def _deallocate_for_instance(self, number):

    def test_deallocate_for_instance_1(self):

    def test_deallocate_for_instance_2(self):

    def test_deallocate_for_instance_port_not_found(self):

    def _test_deallocate_port_for_instance(self, number):

    def test_deallocate_port_for_instance_1(self):

    def test_deallocate_port_for_instance_2(self):

    def test_list_ports(self):

    def test_show_port(self):

    def test_validate_networks(self):

    def test_validate_networks_ex_1(self):

    def test_validate_networks_ex_2(self):

    def test_validate_networks_duplicate(self):

    def test_validate_networks_not_specified(self):

    def test_validate_networks_port_not_found(self):

    def test_validate_networks_port_show_rasies_non404(self):

    def test_validate_networks_port_in_use(self):

    def test_validate_networks_port_no_subnet_id(self):

    def test_validate_networks_no_subnet_id(self):

    def test_validate_networks_ports_in_same_network(self):

    def test_validate_networks_ports_not_in_same_network(self):

    def test_validate_networks_no_quota(self):

    def test_validate_networks_some_quota(self):

    def test_validate_networks_unlimited_quota(self):

    def test_validate_networks_no_quota_but_ports_supplied(self):

    def _mock_list_ports(self, port_data=None):

    def test_get_instance_uuids_by_ip_filter(self):

    def test_get_fixed_ip_by_address_fails_for_no_ports(self):

    def test_get_fixed_ip_by_address_succeeds_for_1_port(self):

    def test_get_fixed_ip_by_address_fails_for_more_than_1_port(self):

    def _get_available_networks(self, prv_nets, pub_nets, req_ids=None, context=None):

    def test_get_available_networks_all_private(self):

    def test_get_available_networks_all_public(self):

    def test_get_available_networks_private_and_public(self):

    def test_get_available_networks_with_network_ids(self):

    def test_get_available_networks_with_externalnet_fails(self):

    def test_get_available_networks_with_externalnet_admin_ctx(self):

    def test_get_floating_ip_pools(self):

    def _get_expected_fip_model(self, fip_data, idx=0):

    def _test_get_floating_ip(self, fip_data, idx=0, by_address=False):

    def test_get_floating_ip_unassociated(self):

    def test_get_floating_ip_associated(self):

    def test_get_floating_ip_by_address(self):

    def test_get_floating_ip_by_address_associated(self):

    def test_get_floating_ip_by_address_not_found(self):

    def test_get_floating_ip_by_id_not_found(self):

    def test_get_floating_ip_raises_non404(self):

    def test_get_floating_ip_by_address_multiple_found(self):

    def test_get_floating_ips_by_project(self):

    def _test_get_instance_id_by_floating_address(self, fip_data, associated=False):

    def test_get_instance_id_by_floating_address(self):

    def test_get_instance_id_by_floating_address_associated(self):

    def test_allocate_floating_ip(self):

    def test_allocate_floating_ip_addr_gen_fail(self):

    def test_allocate_floating_ip_exhausted_fail(self):

    def test_allocate_floating_ip_with_pool_id(self):

    def test_allocate_floating_ip_with_default_pool(self):

    def test_release_floating_ip(self):

    def test_release_floating_ip_associated(self):

    def _setup_mock_for_refresh_cache(self, api, instances):

    def test_associate_floating_ip(self):

    def test_reassociate_floating_ip(self):

    def test_associate_floating_ip_not_found_fixed_ip(self):

    def test_disassociate_floating_ip(self):

    def test_add_fixed_ip_to_instance(self):

    def test_remove_fixed_ip_from_instance(self):

    def test_list_floating_ips_without_l3_support(self):

    def test_nw_info_get_ips(self):

    def test_nw_info_get_subnets(self):

    def _test_nw_info_build_network(self, vif_type):

    def test_nw_info_build_network_ovs(self):

    def test_nw_info_build_network_bridge(self):

    def test_nw_info_build_network_other(self):

    def test_nw_info_build_no_match(self):

    def test_build_network_info_model(self):

    def test_get_all_empty_list_networks(self):

    def test_get_floating_ips_by_fixed_address(self):

class TestNeutronv2ModuleMethods(test.TestCase):

    def test_gather_port_ids_and_networks_wrong_params(self):

    def test_ensure_requested_network_ordering_no_preference_ids(self):

    def test_ensure_requested_network_ordering_no_preference_hashes(self):

    def test_ensure_requested_network_ordering_with_preference(self):

class TestNeutronv2Portbinding(TestNeutronv2Base):

    def test_allocate_for_instance_portbinding(self):

    def test_populate_neutron_extension_values_binding(self):

    def test_migrate_instance_finish_binding_false(self):

    def test_migrate_instance_finish_binding_true(self):

    def test_migrate_instance_finish_binding_true_exception(self):

    def test_associate_not_implemented(self):

class TestNeutronv2ExtraDhcpOpts(TestNeutronv2Base):

    def setUp(self):

    def test_allocate_for_instance_1_with_extra_dhcp_opts_turned_off(self):

    def test_allocate_for_instance_extradhcpopts(self):

class TestNeutronClientForAdminScenarios(test.TestCase):

    def test_get_cached_neutron_client_for_admin(self):

    def test_get_neutron_client_for_non_admin(self):

    def test_get_neutron_client_for_non_admin_and_no_token(self):

    def _test_get_client_for_admin(self, use_id=False, admin_context=False):

    def test_get_client_for_admin(self):

    def test_get_client_for_admin_with_id(self):

    def test_get_client_for_admin_context(self):

    def test_get_client_for_admin_context_with_id(self):

\OpenStack\nova-2014.1\nova\tests\network\test_rpcapi.py

class NetworkRpcAPITestCase(test.NoDBTestCase):

    def setUp(self):

    def _test_network_api(self, method, rpc_method, **kwargs):

    def test_create_networks(self):

    def test_delete_network(self):

    def test_disassociate_network(self):

    def test_associate_host_and_project(self):

    def test_get_fixed_ip(self):

    def test_get_fixed_ip_by_address(self):

    def test_get_floating_ip(self):

    def test_get_floating_ip_pools(self):

    def test_get_floating_ip_by_address(self):

    def test_get_floating_ips_by_project(self):

    def test_get_floating_ips_by_fixed_address(self):

    def test_get_instance_id_by_floating_address(self):

    def test_allocate_floating_ip(self):

    def test_deallocate_floating_ip(self):

    def test_allocate_floating_ip_no_multi(self):

    def test_deallocate_floating_ip_no_multi(self):

    def test_associate_floating_ip(self):

    def test_disassociate_floating_ip(self):

    def test_allocate_for_instance(self):

    def test_deallocate_for_instance(self):

    def test_deallocate_for_instance_with_expected_networks(self):

    def test_add_fixed_ip_to_instance(self):

    def test_remove_fixed_ip_from_instance(self):

    def test_add_network_to_project(self):

    def test_get_instance_nw_info(self):

    def test_validate_networks(self):

    def test_get_instance_uuids_by_ip_filter(self):

    def test_get_dns_domains(self):

    def test_add_dns_entry(self):

    def test_modify_dns_entry(self):

    def test_delete_dns_entry(self):

    def test_delete_dns_domain(self):

    def test_get_dns_entries_by_address(self):

    def test_get_dns_entries_by_name(self):

    def test_create_private_dns_domain(self):

    def test_create_public_dns_domain(self):

    def test_setup_networks_on_host(self):

    def test_lease_fixed_ip(self):

    def test_release_fixed_ip(self):

    def test_set_network_host(self):

    def test_rpc_setup_network_on_host(self):

    def test_rpc_allocate_fixed_ip(self):

    def test_deallocate_fixed_ip(self):

    def test_update_dns(self):

    def test__associate_floating_ip(self):

    def test__disassociate_floating_ip(self):

    def test_migrate_instance_start(self):

    def test_migrate_instance_start_multi_host(self):

    def test_migrate_instance_finish(self):

    def test_migrate_instance_finish_multi_host(self):

\OpenStack\nova-2014.1\nova\tests\network\__init__.py

\OpenStack\nova-2014.1\nova\tests\objects\test_aggregate.py

class _TestAggregateObject(object):

    def test_get_by_id(self):

    def test_create(self):

    def test_recreate_fails(self):

    def test_save(self):

    def test_save_and_create_no_hosts(self):

    def test_update_metadata(self):

    def test_destroy(self):

    def test_add_host(self):

    def test_delete_host(self):

    def test_availability_zone(self):

    def test_get_all(self):

    def test_by_host(self):

class TestAggregateObject(test_objects._LocalTest, _TestAggregateObject):

class TestRemoteAggregateObject(test_objects._RemoteTest, _TestAggregateObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_block_device.py

class _TestBlockDeviceMappingObject(object):

    def fake_bdm(self, instance=None):

    def test_save(self):

    def test_save_instance_changed(self):

    def test_get_by_volume_id(self, get_by_vol_id):

    def test_get_by_volume_id_not_found(self, get_by_vol_id):

    def test_get_by_volume_instance_uuid_missmatch(self, get_by_vol_id):

    def test_get_by_volume_id_with_expected(self, get_by_vol_id):

    def test_create_mocked(self):

    def test_create(self):

    def test_create_fails(self):

    def test_create_fails_instance(self):

    def test_destroy_mocked(self):

class TestBlockDeviceMappingObject(test_objects._LocalTest, _TestBlockDeviceMappingObject):

class TestRemoteBlockDeviceMappingObject(test_objects._RemoteTest, _TestBlockDeviceMappingObject):

class _TestBlockDeviceMappingListObject(object):

    def fake_bdm(self, bdm_id):

    def test_get_by_instance_uuid(self, get_all_by_inst):

    def test_get_by_instance_uuid_no_result(self, get_all_by_inst):

    def test_root_volume_metadata(self):

    def test_root_image_metadata(self):

class TestBlockDeviceMappingListObject(test_objects._LocalTest, _TestBlockDeviceMappingListObject):

class TestRemoteBlockDeviceMappingListObject( test_objects._RemoteTest, _TestBlockDeviceMappingListObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_compute_node.py

class _TestComputeNodeObject(object):

    def test_get_by_id(self):

    def test_get_by_service_id(self):

    def test_create(self):

    def test_recreate_fails(self):

    def test_save(self):

    def test_destroy(self):

    def test_service(self):

    def test_get_all(self):

    def test_get_by_hypervisor(self):

class TestComputeNodeObject(test_objects._LocalTest, _TestComputeNodeObject):

class TestRemoteComputeNodeObject(test_objects._RemoteTest, _TestComputeNodeObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_dns_domain.py

class _TestDNSDomain(object):

    def _compare(test, db, obj):

    def test_get_by_domain(self):

OpenStack Index

Previous

Next