¡@

Home 

OpenStack Study: neutron

OpenStack Index

Previous

Next

    def test_route_update_with_multi_routes(self):

    def test_routes_update_for_multiple_routers(self):

    def test_router_update_delete_routes(self):

    def _test_malformed_route(self, routes):

    def test_no_destination_route(self):

    def test_no_nexthop_route(self):

    def test_none_destination(self):

    def test_none_nexthop(self):

    def test_nexthop_is_port_ip(self):

    def test_router_update_with_too_many_routes(self):

    def test_router_update_with_dup_address(self):

    def test_router_update_with_invalid_ip_address(self):

    def test_router_update_with_invalid_nexthop_ip(self):

    def test_router_update_with_nexthop_is_outside_port_subnet(self):

    def test_router_update_on_external_port(self):

    def test_router_list_with_sort(self):

    def test_router_list_with_pagination(self):

    def test_router_list_with_pagination_reverse(self):

class ExtraRouteDBIntTestCase(test_l3.L3NatDBIntTestCase, ExtraRouteDBTestCaseBase):

    def setUp(self, plugin=None, ext_mgr=None):

class ExtraRouteDBIntTestCaseXML(ExtraRouteDBIntTestCase):

class ExtraRouteDBSepTestCase(test_l3.L3NatDBSepTestCase, ExtraRouteDBTestCaseBase):

    def setUp(self):

class ExtraRouteDBSepTestCaseXML(ExtraRouteDBSepTestCase):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_extension_ext_gw_mode.py

class TestExtensionManager(object):

    def get_resources(self):

    def get_actions(self):

    def get_request_extensions(self):

class TestDbIntPlugin(test_l3_plugin.TestL3NatIntPlugin, l3_gwmode_db.L3_NAT_db_mixin):

class TestDbSepPlugin(test_l3_plugin.TestL3NatServicePlugin, l3_gwmode_db.L3_NAT_db_mixin):

class TestL3GwModeMixin(base.BaseTestCase):

    def setUp(self):

    def _reset_ext_gw(self):

    def _test_update_router_gw(self, gw_info, expected_enable_snat):

    def test_update_router_gw_with_gw_info_none(self):

    def test_update_router_gw_with_network_only(self):

    def test_update_router_gw_with_snat_disabled(self):

    def test_make_router_dict_no_ext_gw(self):

    def test_make_router_dict_with_ext_gw(self):

    def test_make_router_dict_with_ext_gw_snat_disabled(self):

    def test_build_routers_list_no_ext_gw(self):

    def test_build_routers_list_with_ext_gw(self):

    def test_build_routers_list_with_ext_gw_snat_disabled(self):

class ExtGwModeIntTestCase(test_db_plugin.NeutronDbPluginV2TestCase, test_l3_plugin.L3NatTestCaseMixin):

    def setUp(self, plugin=None, svc_plugins=None, ext_mgr=None):

    def restore_l3_attribute_map(self):

    def tearDown(self):

    def _set_router_external_gateway(self, router_id, network_id, snat_enabled=None, expected_code=exc.HTTPOk.code, neutron_context=None):

    def test_router_create_show_no_ext_gwinfo(self):

    def _test_router_create_show_ext_gwinfo(self, snat_input_value, snat_expected_value):

    def test_router_create_show_ext_gwinfo_default(self):

    def test_router_create_show_ext_gwinfo_with_snat_enabled(self):

    def test_router_create_show_ext_gwinfo_with_snat_disabled(self):

    def _test_router_update_ext_gwinfo(self, snat_input_value, snat_expected_value=False, expected_http_code=exc.HTTPOk.code):

    def test_router_update_ext_gwinfo_default(self):

    def test_router_update_ext_gwinfo_with_snat_enabled(self):

    def test_router_update_ext_gwinfo_with_snat_disabled(self):

    def test_router_update_ext_gwinfo_with_invalid_snat_setting(self):

class ExtGwModeSepTestCase(ExtGwModeIntTestCase):

    def setUp(self, plugin=None):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_extension_ext_net.py

class ExtNetTestExtensionManager(object):

    def get_resources(self):

    def get_actions(self):

    def get_request_extensions(self):

class ExtNetDBTestCase(test_db_plugin.NeutronDbPluginV2TestCase):

    def _create_network(self, fmt, name, admin_state_up, **kwargs):

    def setUp(self):

    def _set_net_external(self, net_id):

    def test_list_nets_external(self):

    def test_list_nets_external_pagination(self):

    def test_get_network_succeeds_without_filter(self):

    def test_network_filter_hook_admin_context(self):

    def test_network_filter_hook_nonadmin_context(self):

    def test_create_port_external_network_non_admin_fails(self):

    def test_create_port_external_network_admin_suceeds(self):

    def test_create_external_network_non_admin_fails(self):

    def test_create_external_network_admin_suceeds(self):

class ExtNetDBTestCaseXML(ExtNetDBTestCase):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_extension_firewall.py

class FirewallExtensionTestCase(test_api_v2_extension.ExtensionTestCase):

    def setUp(self):

    def test_create_firewall(self):

    def test_firewall_list(self):

    def test_firewall_get(self):

    def test_firewall_update(self):

    def test_firewall_delete(self):

    def _test_create_firewall_rule(self, src_port, dst_port):

    def test_create_firewall_rule_with_integer_ports(self):

    def test_create_firewall_rule_with_string_ports(self):

    def test_create_firewall_rule_with_port_range(self):

    def test_firewall_rule_list(self):

    def test_firewall_rule_get(self):

    def test_firewall_rule_update(self):

    def test_firewall_rule_delete(self):

    def test_create_firewall_policy(self):

    def test_firewall_policy_list(self):

    def test_firewall_policy_get(self):

    def test_firewall_policy_update(self):

    def test_firewall_policy_update_malformed_rules(self):

    def test_firewall_policy_delete(self):

    def test_firewall_policy_insert_rule(self):

    def test_firewall_policy_remove_rule(self):

class FirewallExtensionTestCaseXML(FirewallExtensionTestCase):

class TestFirewallAttributeValidators(base.BaseTestCase):

    def test_validate_port_range(self):

    def test_validate_ip_or_subnet_or_none(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_extension_pnet.py

class ProviderExtensionManager(object):

    def get_resources(self):

    def get_actions(self):

    def get_request_extensions(self):

    def get_extended_resources(self, version):

class ProvidernetExtensionTestCase(testlib_api.WebTestCase):

    def setUp(self):

    def _restore_attribute_map(self):

    def _prepare_net_data(self):

    def _put_network_with_provider_attrs(self, ctx, expect_errors=False):

    def _post_network_with_provider_attrs(self, ctx, expect_errors=False):

    def test_network_create_with_provider_attrs(self):

    def test_network_update_with_provider_attrs(self):

    def test_network_create_with_provider_attrs_noadmin_returns_403(self):

    def test_network_update_with_provider_attrs_noadmin_returns_404(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_extension_portsecurity.py

class PortSecurityTestCase( test_extension_security_group.SecurityGroupsTestCase, test_db_plugin.NeutronDbPluginV2TestCase):

    def setUp(self, plugin=None):

    def tearDown(self):

class PortSecurityTestPlugin(db_base_plugin_v2.NeutronDbPluginV2, securitygroups_db.SecurityGroupDbMixin, portsecurity_db.PortSecurityDbMixin):

    def create_network(self, context, network):

    def update_network(self, context, id, network):

    def get_network(self, context, id, fields=None):

    def create_port(self, context, port):

    def update_port(self, context, id, port):

class PortSecurityDBTestCase(PortSecurityTestCase):

    def setUp(self, plugin=None):

class TestPortSecurity(PortSecurityDBTestCase):

    def test_create_network_with_portsecurity_mac(self):

    def test_create_network_with_portsecurity_false(self):

    def test_updating_network_port_security(self):

    def test_create_port_default_true(self):

    def test_create_port_passing_true(self):

    def test_create_port_on_port_security_false_network(self):

    def test_create_port_security_overrides_network_value(self):

    def test_create_port_fails_with_secgroup_and_port_security_false(self):

    def test_create_port_with_default_security_group(self):

    def test_create_port_with_security_group_and_net_sec_false(self):

    def test_update_port_security_off_with_security_group(self):

    def test_update_port_remove_port_security_security_group(self):

    def test_update_port_remove_port_security_security_group_read(self):

    def test_create_port_security_off_shared_network(self):

    def test_update_port_security_off_shared_network(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_extension_security_group.py

def etcdir(*p):

class SecurityGroupTestExtensionManager(object):

    def get_resources(self):

    def get_actions(self):

    def get_request_extensions(self):

class SecurityGroupsTestCase(test_db_plugin.NeutronDbPluginV2TestCase):

    def _create_security_group(self, fmt, name, description, **kwargs):

    def _build_security_group_rule(self, security_group_id, direction, proto, port_range_min=None, port_range_max=None, remote_ip_prefix=None, remote_group_id=None, tenant_id='test_tenant', ethertype=const.IPv4):

    def _create_security_group_rule(self, fmt, rules, **kwargs):

    def _make_security_group(self, fmt, name, description, **kwargs):

    def _make_security_group_rule(self, fmt, rules, **kwargs):

    def security_group(self, name='webservers', description='webservers', fmt=None, no_delete=False):

    def security_group_rule(self, security_group_id='4cd70774-cc67-4a87-9b39-7' 'd1db38eb087', direction='ingress', protocol=const.PROTO_NAME_TCP, port_range_min='22', port_range_max='22', remote_ip_prefix=None, remote_group_id=None, fmt=None, no_delete=False, ethertype=const.IPv4):

    def _delete_default_security_group_egress_rules(self, security_group_id):

    def _assert_sg_rule_has_kvs(self, security_group_rule, expected_kvs):

class SecurityGroupsTestCaseXML(SecurityGroupsTestCase):

class SecurityGroupTestPlugin(db_base_plugin_v2.NeutronDbPluginV2, securitygroups_db.SecurityGroupDbMixin):

    def create_port(self, context, port):

    def update_port(self, context, id, port):

    def create_network(self, context, network):

    def get_ports(self, context, filters=None, fields=None, sorts=[], limit=None, marker=None, page_reverse=False):

class SecurityGroupDBTestCase(SecurityGroupsTestCase):

    def setUp(self, plugin=None, ext_mgr=None):

class TestSecurityGroups(SecurityGroupDBTestCase):

    def test_create_security_group(self):

    def test_update_security_group(self):

    def test_update_security_group_name_to_default_fail(self):

    def test_update_default_security_group_name_fail(self):

    def test_update_default_security_group_with_description(self):

    def test_default_security_group(self):

    def test_create_default_security_group_fail(self):

    def test_list_security_groups(self):

    def test_list_security_groups_with_sort(self):

    def test_list_security_groups_with_pagination(self):

    def test_list_security_groups_with_pagination_reverse(self):

    def test_create_security_group_rule_ethertype_invalid_as_number(self):

    def test_create_security_group_rule_tcp_protocol_as_number(self):

    def test_create_security_group_rule_protocol_as_number(self):

    def test_create_security_group_rule_case_insensitive(self):

    def test_get_security_group(self):

    def test_delete_security_group(self):

    def test_delete_default_security_group_admin(self):

    def test_delete_default_security_group_nonadmin(self):

    def test_security_group_list_creates_default_security_group(self):

    def test_default_security_group_rules(self):

    def test_create_security_group_rule_remote_ip_prefix(self):

    def test_create_security_group_rule_group_id(self):

    def test_create_security_group_rule_icmp_with_type_and_code(self):

    def test_create_security_group_rule_icmp_with_type_only(self):

    def test_create_security_group_source_group_ip_and_ip_prefix(self):

    def test_create_security_group_rule_bad_security_group_id(self):

    def test_create_security_group_rule_bad_tenant(self):

    def test_create_security_group_rule_bad_tenant_remote_group_id(self):

    def test_create_security_group_rule_bad_tenant_security_group_rule(self):

    def test_create_security_group_rule_bad_remote_group_id(self):

    def test_create_security_group_rule_duplicate_rules(self):

    def test_create_security_group_rule_min_port_greater_max(self):

    def test_create_security_group_rule_ports_but_no_protocol(self):

    def test_create_security_group_rule_port_range_min_only(self):

    def test_create_security_group_rule_port_range_max_only(self):

    def test_create_security_group_rule_icmp_type_too_big(self):

    def test_create_security_group_rule_icmp_code_too_big(self):

    def test_list_ports_security_group(self):

    def test_list_security_group_rules(self):

    def test_list_security_group_rules_with_sort(self):

    def test_list_security_group_rules_with_pagination(self):

    def test_list_security_group_rules_with_pagination_reverse(self):

    def test_update_port_with_security_group(self):

    def test_update_port_with_multiple_security_groups(self):

    def test_update_port_remove_security_group_empty_list(self):

    def test_update_port_remove_security_group_none(self):

    def test_create_port_with_bad_security_group(self):

    def test_create_delete_security_group_port_in_use(self):

    def test_create_security_group_rule_bulk_native(self):

    def test_create_security_group_rule_bulk_emulated(self):

        def fakehasattr(item, attr):

    def test_create_security_group_rule_allow_all_ipv4(self):

    def test_create_security_group_rule_allow_all_ipv4_v6_bulk(self):

    def test_create_security_group_rule_duplicate_rule_in_post(self):

    def test_create_security_group_rule_duplicate_rule_in_post_emulated(self):

        def fakehasattr(item, attr):

    def test_create_security_group_rule_duplicate_rule_db(self):

    def test_create_security_group_rule_duplicate_rule_db_emulated(self):

        def fakehasattr(item, attr):

    def test_create_security_group_rule_different_security_group_ids(self):

    def test_create_security_group_rule_with_invalid_ethertype(self):

    def test_create_security_group_rule_with_invalid_protocol(self):

    def test_create_port_with_non_uuid(self):

class TestSecurityGroupsXML(TestSecurityGroups):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_iptables_firewall.py

class IptablesFirewallTestCase(base.BaseTestCase):

    def setUp(self):

    def _fake_port(self):

    def test_prepare_port_filter_with_no_sg(self):

    def test_filter_ipv4_ingress(self):

    def test_filter_ipv4_ingress_prefix(self):

    def test_filter_ipv4_ingress_tcp(self):

    def test_filter_ipv4_ingress_tcp_prefix(self):

    def test_filter_ipv4_ingress_icmp(self):

    def test_filter_ipv4_ingress_icmp_prefix(self):

    def test_filter_ipv4_ingress_tcp_port(self):

    def test_filter_ipv4_ingress_tcp_mport(self):

    def test_filter_ipv4_ingress_tcp_mport_prefix(self):

    def test_filter_ipv4_ingress_udp(self):

    def test_filter_ipv4_ingress_udp_prefix(self):

    def test_filter_ipv4_ingress_udp_port(self):

    def test_filter_ipv4_ingress_udp_mport(self):

    def test_filter_ipv4_ingress_udp_mport_prefix(self):

    def test_filter_ipv4_egress(self):

    def test_filter_ipv4_egress_prefix(self):

    def test_filter_ipv4_egress_tcp(self):

    def test_filter_ipv4_egress_tcp_prefix(self):

    def test_filter_ipv4_egress_icmp(self):

    def test_filter_ipv4_egress_icmp_prefix(self):

    def test_filter_ipv4_egress_icmp_type(self):

    def test_filter_ipv4_egress_icmp_type_name(self):

    def test_filter_ipv4_egress_icmp_type_code(self):

    def test_filter_ipv4_egress_tcp_port(self):

    def test_filter_ipv4_egress_tcp_mport(self):

    def test_filter_ipv4_egress_tcp_mport_prefix(self):

    def test_filter_ipv4_egress_udp(self):

    def test_filter_ipv4_egress_udp_prefix(self):

    def test_filter_ipv4_egress_udp_port(self):

    def test_filter_ipv4_egress_udp_mport(self):

    def test_filter_ipv4_egress_udp_mport_prefix(self):

    def test_filter_ipv6_ingress(self):

    def test_filter_ipv6_ingress_prefix(self):

    def test_filter_ipv6_ingress_tcp(self):

    def test_filter_ipv6_ingress_tcp_prefix(self):

    def test_filter_ipv6_ingress_tcp_port(self):

    def test_filter_ipv6_ingress_icmp(self):

    def test_filter_ipv6_ingress_icmp_prefix(self):

    def test_filter_ipv6_ingress_tcp_mport(self):

    def test_filter_ipv6_ingress_tcp_mport_prefix(self):

    def test_filter_ipv6_ingress_udp(self):

    def test_filter_ipv6_ingress_udp_prefix(self):

    def test_filter_ipv6_ingress_udp_port(self):

    def test_filter_ipv6_ingress_udp_mport(self):

    def test_filter_ipv6_ingress_udp_mport_prefix(self):

    def test_filter_ipv6_egress(self):

    def test_filter_ipv6_egress_prefix(self):

    def test_filter_ipv6_egress_tcp(self):

    def test_filter_ipv6_egress_tcp_prefix(self):

    def test_filter_ipv6_egress_icmp(self):

    def test_filter_ipv6_egress_icmp_prefix(self):

    def test_filter_ipv6_egress_icmp_type(self):

    def test_filter_ipv6_egress_icmp_type_name(self):

    def test_filter_ipv6_egress_icmp_type_code(self):

    def test_filter_ipv6_egress_tcp_port(self):

    def test_filter_ipv6_egress_tcp_mport(self):

    def test_filter_ipv6_egress_tcp_mport_prefix(self):

    def test_filter_ipv6_egress_udp(self):

    def test_filter_ipv6_egress_udp_prefix(self):

    def test_filter_ipv6_egress_udp_port(self):

    def test_filter_ipv6_egress_udp_mport(self):

    def test_filter_ipv6_egress_udp_mport_prefix(self):

    def _test_prepare_port_filter(self, rule, ingress_expected_call=None, egress_expected_call=None):

    def test_update_delete_port_filter(self):

    def test_remove_unknown_port(self):

    def test_defer_apply(self):

    def test_filter_defer_with_exception(self):

    def _mock_chain_applies(self):

    def test_mock_chain_applies(self):

    def test_defer_chain_apply_need_pre_defer_copy(self):

    def test_defer_chain_apply_coalesce_simple(self):

    def test_defer_chain_apply_coalesce_multiple_ports(self):

    def test_ip_spoofing_filter_with_multiple_ips(self):

    def test_ip_spoofing_no_fixed_ips(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_iptables_manager.py

class IptablesManagerStateFulTestCase(base.BaseTestCase):

    def setUp(self):

    def test_binary_name(self):

    def test_get_chain_name(self):

    def test_add_and_remove_chain_custom_binary_name(self):

    def test_empty_chain_custom_binary_name(self):

    def test_add_and_remove_chain(self):

    def test_add_filter_rule(self):

    def test_rule_with_wrap_target(self):

    def test_add_nat_rule(self):

    def test_add_rule_to_a_nonexistent_chain(self):

    def test_remove_nonexistent_chain(self):

    def test_remove_nonexistent_rule(self):

    def test_get_traffic_counters_chain_notexists(self):

    def test_get_traffic_counters(self):

    def test_get_traffic_counters_with_zero(self):

class IptablesManagerStateLessTestCase(base.BaseTestCase):

    def setUp(self):

    def test_nat_not_found(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_ipv6.py

class IPv6byEUI64TestCase(base.BaseTestCase):

    def test_generate_IPv6_by_EUI64(self):

    def test_generate_IPv6_with_IPv4_prefix(self):

    def test_generate_IPv6_with_bad_mac(self):

    def test_generate_IPv6_with_bad_prefix(self):

    def test_generate_IPv6_with_error_prefix_type(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_l3_agent.py

class TestBasicRouterOperations(base.BaseTestCase):

    def setUp(self):

    def test_router_info_create(self):

    def test_router_info_create_with_router(self):

    def test_agent_create(self):

    def _test_internal_network_action(self, action):

    def test_agent_add_internal_network(self):

    def test_agent_remove_internal_network(self):

    def _test_external_gateway_action(self, action):

    def test_agent_add_external_gateway(self):

    def _test_arping(self, namespace):

    def test_arping_namespace(self):

    def test_arping_no_namespace(self):

    def test_agent_remove_external_gateway(self):

    def _check_agent_method_called(self, agent, calls, namespace):

    def _test_routing_table_update(self, namespace):

    def test_agent_routing_table_updated(self):

    def test_agent_routing_table_updated_no_namespace(self):

    def test_routes_updated(self):

    def test_routes_updated_no_namespace(self):

    def _test_routes_updated(self, namespace=True):

    def _verify_snat_rules(self, rules, router, negate=False):

    def _prepare_router_data(self, enable_snat=None, num_internal_ports=1):

    def test_process_router(self):

    def test_process_router_floating_ip_addresses_add(self, IPDevice):

    def test_process_router_floating_ip_nat_rules_add(self):

    def test_process_router_floating_ip_addresses_remove(self, IPDevice):

    def test_process_router_floating_ip_nat_rules_remove(self):

    def test_process_router_floating_ip_addresses_remap(self, IPDevice):

    def test_process_router_with_disabled_floating_ip(self, IPDevice):

    def test_process_router_floating_ip_with_device_add_error(self, IPDevice):

    def test_process_router_snat_disabled(self):

    def test_process_router_snat_enabled(self):

    def test_process_router_interface_added(self):

    def test_process_router_interface_removed(self):

    def test_process_router_internal_network_added_unexpected_error(self):

    def test_process_router_internal_network_removed_unexpected_error(self):

    def test_process_router_floatingip_disabled(self):

    def test_process_router_floatingip_exception(self):

    def test_handle_router_snat_rules_add_back_jump(self):

    def test_handle_router_snat_rules_add_rules(self):

    def test_process_router_delete_stale_internal_devices(self):

    def test_process_router_delete_stale_external_devices(self):

    def test_router_deleted(self):

    def test_routers_updated(self):

    def test_removed_from_agent(self):

    def test_added_to_agent(self):

    def test_process_router_delete(self):

    def test_destroy_router_namespace_skips_ns_removal(self):

    def test_destroy_router_namespace_removes_ns(self):

    def _configure_metadata_proxy(self, enableflag=True):

    def test_enable_metadata_proxy(self):

    def test_disable_metadata_proxy_spawn(self):

    def test_metadata_nat_rules(self):

    def test_router_id_specified_in_conf(self):

    def test_process_routers_with_no_ext_net_in_conf(self):

    def test_process_routers_with_cached_ext_net(self):

    def test_process_routers_with_stale_cached_ext_net(self):

    def test_process_routers_with_no_ext_net_in_conf_and_two_net_plugin(self):

    def test_process_routers_with_ext_net_in_conf(self):

    def test_process_routers_with_no_bridge_no_ext_net_in_conf(self):

    def test_nonexistent_interface_driver(self):

    def test_metadata_filter_rules(self):

    def _cleanup_namespace_test(self, stale_namespace_list, router_list, other_namespaces):

    def test_cleanup_namespace(self):

    def test_cleanup_namespace_with_registered_router_ids(self):

    def test_cleanup_namespace_with_conf_router_id(self):

class TestL3AgentEventHandler(base.BaseTestCase):

    def setUp(self):

    def test_spawn_metadata_proxy(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_l3_plugin.py

class L3TestExtensionManager(object):

    def get_resources(self):

    def get_actions(self):

    def get_request_extensions(self):

class L3NatExtensionTestCase(test_api_v2_extension.ExtensionTestCase):

    def setUp(self):

    def test_router_create(self):

    def test_router_list(self):

    def test_router_update(self):

    def test_router_get(self):

    def test_router_delete(self):

    def test_router_add_interface(self):

class L3NatExtensionTestCaseXML(L3NatExtensionTestCase):

class TestL3NatBasePlugin(db_base_plugin_v2.NeutronDbPluginV2, external_net_db.External_net_db_mixin):

    def create_network(self, context, network):

    def update_network(self, context, id, network):

    def delete_port(self, context, id, l3_port_check=True):

class TestL3NatIntPlugin(TestL3NatBasePlugin, l3_db.L3_NAT_db_mixin):

class TestNoL3NatPlugin(TestL3NatBasePlugin):

class TestL3NatServicePlugin(db_base_plugin_v2.CommonDbMixin, l3_db.L3_NAT_db_mixin):

    def __init__(self):

    def get_plugin_type(self):

    def get_plugin_description(self):

class L3NatTestCaseMixin(object):

    def _create_router(self, fmt, tenant_id, name=None, admin_state_up=None, set_context=False, arg_list=None, **kwargs):

    def _make_router(self, fmt, tenant_id, name=None, admin_state_up=None, external_gateway_info=None, set_context=False, arg_list=None, **kwargs):

    def _add_external_gateway_to_router(self, router_id, network_id, expected_code=exc.HTTPOk.code, neutron_context=None):

    def _remove_external_gateway_from_router(self, router_id, network_id, expected_code=exc.HTTPOk.code):

    def _router_interface_action(self, action, router_id, subnet_id, port_id, expected_code=exc.HTTPOk.code, expected_body=None, tenant_id=None):

    def router(self, name='router1', admin_state_up=True, fmt=None, tenant_id=_uuid(), external_gateway_info=None, set_context=False, **kwargs):

    def _set_net_external(self, net_id):

    def _create_floatingip(self, fmt, network_id, port_id=None, fixed_ip=None, set_context=False):

    def _make_floatingip(self, fmt, network_id, port_id=None, fixed_ip=None, set_context=False):

    def _validate_floating_ip(self, fip):

    def floatingip_with_assoc(self, port_id=None, fmt=None, fixed_ip=None, set_context=False):

    def floatingip_no_assoc_with_public_sub( self, private_sub, fmt=None, set_context=False, public_sub=None):

    def floatingip_no_assoc(self, private_sub, fmt=None, set_context=False):

class L3NatTestCaseBase(L3NatTestCaseMixin):

    def test_router_create(self):

    def test_router_create_with_gwinfo(self):

    def test_router_list(self):

    def test_router_list_with_parameters(self):

    def test_router_list_with_sort(self):

    def test_router_list_with_pagination(self):

    def test_router_list_with_pagination_reverse(self):

    def test_router_update(self):

    def test_router_update_gateway(self):

    def test_router_update_gateway_with_existed_floatingip(self):

    def test_router_update_gateway_to_empty_with_existed_floatingip(self):

    def test_router_add_interface_subnet(self):

    def test_router_add_interface_subnet_with_bad_tenant_returns_404(self):

    def test_router_add_interface_subnet_with_port_from_other_tenant(self):

    def test_router_add_interface_port(self):

    def test_router_add_interface_port_bad_tenant_returns_404(self):

    def test_router_add_interface_dup_subnet1_returns_400(self):

    def test_router_add_interface_dup_subnet2_returns_400(self):

    def test_router_add_interface_overlapped_cidr_returns_400(self):

    def test_router_add_interface_no_data_returns_400(self):

    def test_router_add_gateway_dup_subnet1_returns_400(self):

    def test_router_add_gateway_dup_subnet2_returns_400(self):

    def test_router_add_gateway(self):

    def test_router_add_gateway_tenant_ctx(self):

    def test_create_router_port_with_device_id_of_other_teants_router(self):

    def test_create_non_router_port_device_id_of_other_teants_router_update( self):

    def test_update_port_device_id_to_different_tenants_router(self):

    def test_router_add_gateway_invalid_network_returns_404(self):

    def test_router_add_gateway_net_not_external_returns_400(self):

    def test_router_add_gateway_no_subnet_returns_400(self):

    def test_router_remove_interface_inuse_returns_409(self):

    def test_router_remove_interface_wrong_subnet_returns_400(self):

    def test_router_remove_interface_returns_200(self):

    def test_router_remove_interface_wrong_port_returns_404(self):

    def test_router_delete(self):

    def test_router_delete_with_port_existed_returns_409(self):

    def test_router_delete_with_floatingip_existed_returns_409(self):

    def test_router_show(self):

    def test_network_update_external_failure(self):

    def test_network_update_external(self):

    def test_floatingip_crd_ops(self):

    def _test_floatingip_with_assoc_fails(self, plugin_class):

    def test_floatingip_with_assoc_fails(self):

    def _test_floatingip_with_ip_generation_failure(self, plugin_class):

    def test_floatingip_update( self, expected_status=l3_constants.FLOATINGIP_STATUS_ACTIVE):

    def test_floatingip_update_different_fixed_ip_same_port(self):

    def test_floatingip_update_different_router(self):

    def test_floatingip_with_assoc(self):

    def test_floatingip_port_delete(self):

    def test_two_fips_one_port_invalid_return_409(self):

    def test_floating_ip_direct_port_delete_returns_409(self):

    def _test_floatingip_with_invalid_create_port(self, plugin_class):

    def test_floatingip_with_invalid_create_port(self):

    def test_create_floatingip_no_ext_gateway_return_404(self):

    def test_create_floating_non_ext_network_returns_400(self):

    def test_create_floatingip_no_public_subnet_returns_400(self):

    def test_create_floatingip_invalid_floating_network_id_returns_400(self):

    def test_create_floatingip_invalid_floating_port_id_returns_400(self):

    def test_create_floatingip_invalid_fixed_ip_address_returns_400(self):

    def test_floatingip_list_with_sort(self):

    def test_floatingip_list_with_port_id(self):

    def test_floatingip_list_with_pagination(self):

    def test_floatingip_list_with_pagination_reverse(self):

    def test_floatingip_delete_router_intf_with_subnet_id_returns_409(self):

    def test_floatingip_delete_router_intf_with_port_id_returns_409(self):

    def test_router_delete_subnet_inuse_returns_409(self):

class L3AgentDbTestCaseBase(L3NatTestCaseMixin):

    def test_l3_agent_routers_query_interfaces(self):

    def test_l3_agent_routers_query_ignore_interfaces_with_moreThanOneIp(self):

    def test_l3_agent_routers_query_gateway(self):

    def test_l3_agent_routers_query_floatingips(self):

    def _test_notify_op_agent(self, target_func, *args):

    def _test_router_gateway_op_agent(self, notifyApi):

    def test_router_gateway_op_agent(self):

    def _test_interfaces_op_agent(self, r, notifyApi):

    def test_interfaces_op_agent(self):

    def _test_floatingips_op_agent(self, notifyApi):

    def test_floatingips_op_agent(self):

class L3BaseForIntTests(test_db_plugin.NeutronDbPluginV2TestCase):

    def setUp(self, plugin=None, ext_mgr=None, service_plugins=None):

class L3BaseForSepTests(test_db_plugin.NeutronDbPluginV2TestCase):

    def setUp(self, plugin=None, ext_mgr=None):

class L3AgentDbIntTestCase(L3BaseForIntTests, L3AgentDbTestCaseBase):

    def setUp(self):

class L3AgentDbSepTestCase(L3BaseForSepTests, L3AgentDbTestCaseBase):

    def setUp(self):

class L3NatDBIntTestCase(L3BaseForIntTests, L3NatTestCaseBase):

class L3NatDBSepTestCase(L3BaseForSepTests, L3NatTestCaseBase):

class L3NatDBIntTestCaseXML(L3NatDBIntTestCase):

class L3NatDBSepTestCaseXML(L3NatDBSepTestCase):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_l3_schedulers.py

class L3SchedulerTestExtensionManager(object):

    def get_resources(self):

    def get_actions(self):

    def get_request_extensions(self):

class L3SchedulerTestCase(l3_agentschedulers_db.L3AgentSchedulerDbMixin, test_db_plugin.NeutronDbPluginV2TestCase, test_l3_plugin.L3NatTestCaseMixin):

    def setUp(self):

    def _register_l3_agents(self):

    def _set_l3_agent_admin_state(self, context, agent_id, state=True):

    def router_with_ext_gw(self, name='router1', admin_state_up=True, fmt=None, tenant_id=str(uuid.uuid4()), external_gateway_info=None, subnet=None, set_context=False, **kwargs):

class L3AgentChanceSchedulerTestCase(L3SchedulerTestCase):

    def test_random_scheduling(self):

        def side_effect(seq):

class L3AgentLeastRoutersSchedulerTestCase(L3SchedulerTestCase):

    def setUp(self):

    def test_scheduler(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_legacy.py

class TestLegacyScrubPath(base.BaseTestCase):

    def test_neutron_path(self):

    def test_quantum_path(self):

    def test_third_party_path(self):

class TestLegacyConfigOverride(base.BaseTestCase):

    def setUp(self):

    def test_override_config_simple_key(self):

    def test_override_config_simple_key_unchanged(self):

    def test_override_config_missing_key(self):

    def test_override_config_group_key(self):

    def test_override_config_list_value(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_linux_daemon.py

class TestPidfile(base.BaseTestCase):

    def setUp(self):

    def test_init(self):

    def test_init_open_fail(self):

    def test_unlock(self):

    def test_write(self):

    def test_read(self):

    def test_is_running(self):

    def test_is_running_uuid_true(self):

    def test_is_running_uuid_false(self):

class TestDaemon(base.BaseTestCase):

    def setUp(self):

    def tearDown(self):

    def test_init(self):

    def test_fork_parent(self):

    def test_fork_child(self):

    def test_fork_error(self):

    def test_daemonize(self):

    def test_delete_pid(self):

    def test_handle_sigterm(self):

    def test_start(self):

    def test_start_running(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_linux_dhcp.py

class FakeIPAllocation:

    def __init__(self, address, subnet_id=None):

class DhcpOpt(object):

    def __init__(self, **kwargs):

    def __str__(self):

class FakePort1:

    def __init__(self):

class FakePort2:

    def __init__(self):

class FakePort3:

    def __init__(self):

class FakeRouterPort:

    def __init__(self):

class FakePortMultipleAgents1:

    def __init__(self):

class FakePortMultipleAgents2:

    def __init__(self):

class FakeV4MultipleAgentsWithoutDnsProvided:

class FakeV4MultipleAgentsWithDnsProvided:

class FakeV4Network:

class FakeV6Network:

class FakeDualNetwork:

class FakeDualNetworkGatewayRoute:

class FakeDualNetworkSingleDHCP:

class FakeV4NoGatewayNetwork:

class FakeV4NetworkNoRouter:

class FakeDualV4Pxe3Ports:

    def __init__(self, port_detail="portsSame"):

class FakeV4NetworkPxe2Ports:

    def __init__(self, port_detail="portsSame"):

class FakeV4NetworkPxe3Ports:

    def __init__(self, port_detail="portsSame"):

class LocalChild(dhcp.DhcpLocalProcess):

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

    def reload_allocations(self):

    def restart(self):

    def spawn_process(self):

class TestBase(base.BaseTestCase):

    def setUp(self):

class TestDhcpBase(TestBase):

    def test_existing_dhcp_networks_abstract_error(self):

    def test_check_version_abstract_error(self):

    def test_base_abc_error(self):

    def test_restart(self):

class TestDhcpLocalProcess(TestBase):

    def test_active(self):

    def test_active_none(self):

    def test_active_cmd_mismatch(self):

    def test_get_conf_file_name(self):

    def test_get_conf_file_name_ensure_dir(self):

    def test_enable_already_active(self):

    def test_enable(self):

    def test_disable_not_active(self):

    def test_disable_unknown_network(self):

    def test_disable_retain_port(self):

    def test_disable(self):

    def test_disable_delete_ns(self):

    def test_pid(self):

    def test_pid_no_an_int(self):

    def test_pid_invalid_file(self):

    def test_get_interface_name(self):

    def test_set_interface_name(self):

class TestDnsmasq(TestBase):

    def _test_spawn(self, extra_options, network=FakeDualNetwork(), max_leases=16777216):

        def mock_get_conf_file_name(kind, ensure_conf_dir=False):

        def fake_argv(index):

    def test_spawn(self):

    def test_spawn_cfg_config_file(self):

    def test_spawn_no_dhcp_domain(self):

    def test_spawn_cfg_dns_server(self):

    def test_spawn_cfg_multiple_dns_server(self):

    def test_spawn_max_leases_is_smaller_than_cap(self):

    def test_output_opts_file(self):

    def test_output_opts_file_gateway_route(self):

    def test_output_opts_file_multiple_agents_without_dns_provided(self):

    def test_output_opts_file_multiple_agents_with_dns_provided(self):

    def test_output_opts_file_single_dhcp(self):

    def test_output_opts_file_single_dhcp_ver2_48(self):

    def test_output_opts_file_no_gateway(self):

    def test_output_opts_file_no_neutron_router_on_subnet(self):

    def test_output_opts_file_pxe_2port_1net(self):

    def test_output_opts_file_pxe_2port_1net_diff_details(self):

    def test_output_opts_file_pxe_3port_1net_diff_details(self):

    def test_output_opts_file_pxe_3port_2net(self):

    def _test_reload_allocation_data(self):

    def test_reload_allocations(self):

    def test_reload_allocations_stale_pid(self):

    def test_release_unused_leases(self):

    def test_release_unused_leases_one_lease(self):

    def test_read_hosts_file_leases(self):

    def test_make_subnet_interface_ip_map(self):

    def test_remove_config_files(self):

    def test_existing_dhcp_networks(self):

        def active_fake(self, instance, cls):

    def _check_version(self, cmd_out, expected_value):

    def test_check_minimum_version(self):

    def test_check_future_version(self):

    def test_check_fail_version(self):

    def test_check_version_failed_cmd_execution(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_linux_external_process.py

class TestProcessManager(base.BaseTestCase):

    def setUp(self):

    def test_enable_no_namespace(self):

    def test_enable_with_namespace(self):

    def test_enable_with_namespace_process_active(self):

    def test_disable_no_namespace(self):

    def test_disable_namespace(self):

    def test_disable_not_active(self):

    def test_disable_no_pid(self):

    def test_get_pid_file_name_existing(self):

    def test_get_pid_file_name_not_existing(self):

    def test_get_pid_file_name_default(self):

    def test_pid(self):

    def test_pid_no_an_int(self):

    def test_pid_invalid_file(self):

    def test_active(self):

    def test_active_none(self):

    def test_active_cmd_mismatch(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_linux_interface.py

class BaseChild(interface.LinuxInterfaceDriver):

    def plug(*args):

    def unplug(*args):

class FakeAllocation:

class FakePort:

class TestBase(base.BaseTestCase):

    def setUp(self):

class TestABCDriver(TestBase):

    def test_get_device_name(self):

    def test_l3_init(self):

    def test_l3_init_with_preserve(self):

class TestOVSInterfaceDriver(TestBase):

    def test_get_device_name(self):

    def test_plug_no_ns(self):

    def test_plug_with_ns(self):

    def test_plug_alt_bridge(self):

    def test_plug_configured_bridge(self):

        def device_exists(dev, root_helper=None, namespace=None):

    def _test_plug(self, additional_expectation=[], bridge=None, namespace=None):

        def device_exists(dev, root_helper=None, namespace=None):

    def test_mtu_int(self):

    def test_plug_mtu(self):

    def test_unplug(self, bridge=None):

class TestOVSInterfaceDriverWithVeth(TestOVSInterfaceDriver):

    def setUp(self):

    def test_get_device_name(self):

    def test_plug_with_prefix(self):

    def _test_plug(self, devname=None, bridge=None, namespace=None, prefix=None, mtu=None):

        def device_exists(dev, root_helper=None, namespace=None):

    def test_plug_mtu(self):

    def test_unplug(self, bridge=None):

class TestBridgeInterfaceDriver(TestBase):

    def test_get_device_name(self):

    def test_plug_no_ns(self):

    def test_plug_with_ns(self):

    def _test_plug(self, namespace=None, mtu=None):

        def device_exists(device, root_helper=None, namespace=None):

    def test_plug_dev_exists(self):

    def test_plug_mtu(self):

    def test_unplug_no_device(self):

    def test_unplug(self):

class TestMetaInterfaceDriver(TestBase):

    def setUp(self):

    def test_get_driver_by_network_id(self):

    def test_set_device_plugin_tag(self):

    def test_get_device_plugin_tag(self):

class TestIVSInterfaceDriver(TestBase):

    def setUp(self):

    def test_get_device_name(self):

    def test_plug_with_prefix(self):

    def _test_plug(self, devname=None, namespace=None, prefix=None, mtu=None):

        def device_exists(dev, root_helper=None, namespace=None):

    def test_plug_mtu(self):

    def test_plug_namespace(self):

    def test_unplug(self):

class TestMidonetInterfaceDriver(TestBase):

    def setUp(self):

    def test_plug(self):

    def test_unplug(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_linux_ip_lib.py

class TestSubProcessBase(base.BaseTestCase):

    def setUp(self):

    def test_execute_wrapper(self):

    def test_execute_wrapper_int_options(self):

    def test_execute_wrapper_no_options(self):

    def test_run_no_namespace(self):

    def test_run_namespace(self):

    def test_as_root_namespace(self):

    def test_as_root_no_root_helper(self):

class TestIpWrapper(base.BaseTestCase):

    def setUp(self):

    def test_get_devices(self):

    def test_get_devices_malformed_line(self):

    def test_get_namespaces(self):

    def test_add_tuntap(self):

    def test_add_veth(self):

    def test_add_veth_with_namespaces(self):

    def test_get_device(self):

    def test_ensure_namespace(self):

    def test_ensure_namespace_existing(self):

    def test_namespace_is_empty_no_devices(self):

    def test_namespace_is_empty(self):

    def test_garbage_collect_namespace_does_not_exist(self):

    def test_garbage_collect_namespace_existing_empty_ns(self):

    def test_garbage_collect_namespace_existing_not_empty(self):

    def test_add_vxlan_valid_port_length(self):

    def test_add_vxlan_invalid_port_length(self):

    def test_add_device_to_namespace(self):

    def test_add_device_to_namespace_is_none(self):

class TestIPDevice(base.BaseTestCase):

    def test_eq_same_name(self):

    def test_eq_diff_name(self):

    def test_eq_same_namespace(self):

    def test_eq_diff_namespace(self):

    def test_eq_other_is_none(self):

    def test_str(self):

class TestIPCommandBase(base.BaseTestCase):

    def setUp(self):

    def test_run(self):

    def test_run_with_options(self):

    def test_as_root(self):

    def test_as_root_with_options(self):

class TestIPDeviceCommandBase(base.BaseTestCase):

    def setUp(self):

    def test_name_property(self):

class TestIPCmdBase(base.BaseTestCase):

    def setUp(self):

    def _assert_call(self, options, args):

    def _assert_sudo(self, options, args, force_root_namespace=False):

class TestIpLinkCommand(TestIPCmdBase):

    def setUp(self):

    def test_set_address(self):

    def test_set_mtu(self):

    def test_set_up(self):

    def test_set_down(self):

    def test_set_netns(self):

    def test_set_name(self):

    def test_set_alias(self):

    def test_delete(self):

    def test_address_property(self):

    def test_mtu_property(self):

    def test_qdisc_property(self):

    def test_qlen_property(self):

    def test_alias_property(self):

    def test_state_property(self):

    def test_settings_property(self):

class TestIpAddrCommand(TestIPCmdBase):

    def setUp(self):

    def test_add_address(self):

    def test_add_address_scoped(self):

    def test_del_address(self):

    def test_flush(self):

    def test_list(self):

    def test_list_filtered(self):

class TestIpRouteCommand(TestIPCmdBase):

    def setUp(self):

    def test_add_gateway(self):

    def test_del_gateway(self):

    def test_get_gateway(self):

    def test_pullup_route(self):

        def pullup_side_effect(self, *args):

    def test_pullup_route_first(self):

        def pullup_side_effect(self, *args):

class TestIpNetnsCommand(TestIPCmdBase):

    def setUp(self):

    def test_add_namespace(self):

    def test_delete_namespace(self):

    def test_namespace_exists(self):

    def test_namespace_doest_not_exist(self):

    def test_execute(self):

    def test_execute_env_var_prepend(self):

class TestDeviceExists(base.BaseTestCase):

    def test_device_exists(self):

    def test_device_does_not_exist(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_metadata_agent.py

class FakeConf(object):

class TestMetadataProxyHandler(base.BaseTestCase):

    def setUp(self):

    def test_call(self):

    def test_call_no_instance_match(self):

    def test_call_internal_server_error(self):

    def _get_instance_and_tenant_id_helper(self, headers, list_ports_retval, networks=None, router_id=None):

        def mock_list_ports(*args, **kwargs):

    def test_get_instance_id_router_id(self):

    def test_get_instance_id_router_id_no_match(self):

    def test_get_instance_id_network_id(self):

    def test_get_instance_id_network_id_no_match(self):

    def _proxy_request_test_helper(self, response_code=200, method='GET'):

    def test_proxy_request_post(self):

    def test_proxy_request_200(self):

    def test_proxy_request_403(self):

    def test_proxy_request_404(self):

    def test_proxy_request_409(self):

    def test_proxy_request_500(self):

    def test_proxy_request_other_code(self):

    def test_sign_instance_id(self):

class TestUnixDomainHttpProtocol(base.BaseTestCase):

    def test_init_empty_client(self):

    def test_init_with_client(self):

class TestUnixDomainWSGIServer(base.BaseTestCase):

    def setUp(self):

    def test_start(self):

    def test_start_multiple_workers(self, process_launcher):

    def test_run(self):

class TestUnixDomainMetadataProxy(base.BaseTestCase):

    def setUp(self):

    def test_init_doesnot_exists(self):

    def test_init_exists(self):

    def test_init_exists_unlink_no_file(self):

    def test_init_exists_unlink_fails_file_still_exists(self):

    def test_run(self):

    def test_main(self):

    def test_init_state_reporting(self):

    def test_report_state(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_metadata_namespace_proxy.py

class FakeConf(object):

class TestUnixDomainHttpConnection(base.BaseTestCase):

    def test_connect(self):

class TestNetworkMetadataProxyHandler(base.BaseTestCase):

    def setUp(self):

    def test_call(self):

    def test_no_argument_passed_to_init(self):

    def test_call_internal_server_error(self):

    def test_proxy_request_router_200(self):

    def test_proxy_request_network_200(self):

    def test_proxy_request_network_404(self):

    def test_proxy_request_network_409(self):

    def test_proxy_request_network_500(self):

    def test_proxy_request_network_418(self):

    def test_proxy_request_network_exception(self):

class TestProxyDaemon(base.BaseTestCase):

    def test_init(self):

    def test_run(self):

    def test_main(self):

    def test_main_dont_fork(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_neutron_context.py

class TestNeutronContext(base.BaseTestCase):

    def setUp(self):

    def test_neutron_context_create(self):

    def test_neutron_context_create_logs_unknown_kwarg(self):

    def test_neutron_context_create_with_name(self):

    def test_neutron_context_create_with_request_id(self):

    def test_neutron_context_to_dict(self):

    def test_neutron_context_to_dict_with_name(self):

    def test_neutron_context_admin_to_dict(self):

    def test_neutron_context_admin_without_session_to_dict(self):

    def test_neutron_context_with_load_roles_true(self):

    def test_neutron_context_with_load_roles_false(self):

    def test_neutron_context_elevated_retains_request_id(self):

    def test_neutron_context_overwrite(self):

    def test_neutron_context_get_admin_context_not_update_local_store(self):

\OpenStack\neutron-2014.1\neutron\tests\unit\test_neutron_manager.py

def etcdir(*p):

class MultiServiceCorePlugin(object):

class CorePluginWithAgentNotifiers(object):

class NeutronManagerTestCase(base.BaseTestCase):

    def setUp(self):

OpenStack Index

Previous

Next