network package

Subpackages

Submodules

network.base module

class BaseAdminNetworkTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

class BaseNetworkTest(*args, **kwargs)[source]

Bases: BaseTestCase

Base class for the Neutron tests.

Per the Neutron API Guide, API v1.x was removed from the source code tree (docs.openstack.org/api/openstack-network/2.0/content/Overview-d1e71.html) Therefore, v2.x of the Neutron API is assumed. It is also assumed that the following options are defined in the [network] section of etc/tempest.conf:

project_network_cidr with a block of cidr’s from which smaller blocks can be allocated for project networks

project_network_mask_bits with the mask bits to be used to partition the block defined by project-network_cidr

Finally, it is assumed that the following option is defined in the [service_available] section of etc/tempest.conf

neutron as True

network.base_security_groups module

class BaseSecGroupTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

network.test_agent_management_negative module

class AgentManagementNegativeTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

test_list_agents_non_admin()[source]

Test idempotent id: e335be47-b9a1-46fd-be30-0874c0b751e6

Validate that non-admin user cannot list agents.

network.test_allowed_address_pair module

class AllowedAddressPairIpV6TestJSON(*args, **kwargs)[source]

Bases: AllowedAddressPairTestJSON

class AllowedAddressPairTestJSON(*args, **kwargs)[source]

Bases: BaseNetworkTest

Tests the Neutron Allowed Address Pair API extension

The following API operations are tested with this extension:

create port list ports update port show port

v2.0 of the Neutron API is assumed. It is also assumed that the following options are defined in the [network-feature-enabled] section of etc/tempest.conf

api_extensions

test_create_list_port_with_address_pair()[source]

Test idempotent id: 86c3529b-1231-40de-803c-00e40882f043

Create and list port with allowed address pair attribute

test_update_port_with_address_pair()[source]

Test idempotent id: 9599b337-272c-47fd-b3cf-509414414ac4

Update port with allowed address pair

test_update_port_with_cidr_address_pair()[source]

Test idempotent id: 4d6d178f-34f6-4bff-a01c-0a2f8fe909e4

Update allowed address pair with cidr

test_update_port_with_multiple_ip_mac_address_pair()[source]

Test idempotent id: b3f20091-6cd5-472b-8487-3516137df933

Update allowed address pair port with multiple ip and mac

network.test_dhcp_ipv6 module

class NetworksTestDHCPv6(*args, **kwargs)[source]

Bases: BaseNetworkTest

test_dhcp_stateful()[source]

Test idempotent id: 4ab211a0-276f-4552-9070-51e27f58fecf

Test creating port when setting stateful for subnets

NOTE: With all options below, DHCPv6 shall allocate address from subnet pool to port.

test_dhcp_stateful_fixedips()[source]

Test idempotent id: 51a5e97f-f02e-4e4e-9a17-a69811d300e3

Test creating port with fixed ip when setting stateful for subnets

NOTE: With all options below, port shall be able to get requested IP from fixed IP range not depending on DHCP stateful (not SLAAC!) settings configured.

test_dhcp_stateful_fixedips_duplicate()[source]

Test idempotent id: 57b8302b-cba9-4fbb-8835-9168df029051

Test creating port with duplicate fixed ip

NOTE: When port gets IP address from fixed IP range it shall be checked if it’s not duplicate.

test_dhcp_stateful_fixedips_outrange()[source]

Test idempotent id: 98244d88-d990-4570-91d4-6b25d70d08af

Test creating port with fixed ip that is not in the range

NOTE: When port gets IP address from fixed IP range it shall be checked if it’s from subnets range.

test_dhcp_stateful_router()[source]

Test idempotent id: e98f65db-68f4-4330-9fea-abd8c5192d4d

Test creating router with dhcp stateful

NOTE: With all options below the router interface shall receive DHCPv6 IP address from allocation pool.

test_dhcpv6_64_subnets()[source]

Test idempotent id: 4256c61d-c538-41ea-9147-3c450c36669e

Test eui64 ip when setting slaac and stateless for subnets

NOTE: When one IPv6 subnet configured with dnsmasq SLAAC or DHCP stateless and other IPv4 is with DHCP of IPv4, port shall receive EUI-64 IP addresses from first subnet and IPv4 DHCP address from second one. Order of subnet creating should be unimportant.

test_dhcpv6_invalid_options()[source]

Test idempotent id: 81f18ef6-95b5-4584-9966-10d480b7496a

Different configurations for radvd and dnsmasq are not allowed

test_dhcpv6_stateless_eui64()[source]

Test idempotent id: e5517e62-6f16-430d-a672-f80875493d4c

Test eui64 ip when setting slaac and statelss for subnet

NOTE: When subnets configured with RAs SLAAC (AOM=100) and DHCP stateless (AOM=110) both for radvd and dnsmasq, port shall receive IP address calculated from its MAC.

test_dhcpv6_stateless_no_ra()[source]

Test idempotent id: ae2f4a5d-03ff-4c42-a3b0-ce2fcb7ea832

Test eui64 ip when setting stateless and no radvd for subnets

NOTE: When subnets configured with dnsmasq SLAAC and DHCP stateless and there is no radvd, port shall receive IP address calculated from its MAC and mask of subnet.

test_dhcpv6_stateless_no_ra_no_dhcp()[source]

Test idempotent id: 21635b6f-165a-4d42-bf49-7d195e47342f

Test eui64 ip when setting no radvd and no dnsmasq for subnets

NOTE: If no radvd option and no dnsmasq option is configured port shall receive IP from fixed IPs list of subnet.

test_dhcpv6_two_subnets()[source]

Test idempotent id: 4544adf7-bb5f-4bdc-b769-b3e77026cef2

Test eui64 ip when creating port under network with two subnets

NOTE: When one IPv6 subnet configured with dnsmasq SLAAC or DHCP stateless and other IPv6 is with DHCP stateful, port shall receive EUI-64 IP addresses from first subnet and DHCP address from second one. Order of subnet creating should be unimportant.

network.test_extensions module

class ExtensionsTestJSON(*args, **kwargs)[source]

Bases: BaseNetworkTest

Tests the following operations in the Neutron API:

List all available extensions

v2.0 of the Neutron API is assumed. It is also assumed that api-extensions option is defined in the [network-feature-enabled] section of etc/tempest.conf.

test_list_show_extensions()[source]

Test idempotent id: ef28c7e6-e646-4979-9d67-deb207bc5564

List available extensions and show the detail of each extension

network.test_extra_dhcp_options module

class ExtraDHCPOptionsIpV6TestJSON(*args, **kwargs)[source]

Bases: ExtraDHCPOptionsTestJSON

class ExtraDHCPOptionsTestJSON(*args, **kwargs)[source]

Bases: BaseNetworkTest

Tests the following operations with the Extra DHCP Options:

port create port list port show port update

v2.0 of the Neutron API is assumed. It is also assumed that the Extra DHCP Options extension is enabled in the [network-feature-enabled] section of etc/tempest.conf

test_create_list_port_with_extra_dhcp_options()[source]

Test idempotent id: d2c17063-3767-4a24-be4f-a23dbfa133c9

Test creating a port with Extra DHCP Options and list those

test_update_show_port_with_extra_dhcp_options()[source]

Test idempotent id: 9a6aebf4-86ee-4f47-b07a-7f7232c55607

Test updating port with extra DHCP options and show that port

network.test_floating_ips module

class FloatingIPTestJSON(*args, **kwargs)[source]

Bases: BaseNetworkTest

Tests the following operations in the Neutron API:

Create a Floating IP Update a Floating IP Delete a Floating IP List all Floating IPs Show Floating IP details Associate a Floating IP with a port and then delete that port Associate a Floating IP with a port and then with a port on another router

v2.0 of the Neutron API is assumed. It is also assumed that the following options are defined in the [network] section of etc/tempest.conf:

public_network_id which is the id for the external network present

test_create_floating_ip_specifying_a_fixed_ip_address()[source]

Test idempotent id: 36de4bd0-f09c-43e3-a8e1-1decc1ffd3a5

Test creating floating ip with specified fixed ip

test_create_list_show_update_delete_floating_ip()[source]

Test idempotent id: 62595970-ab1c-4b7f-8fcc-fddfe55e8718

Test create/list/show/update/delete floating ip

test_create_update_floatingip_with_port_multiple_ip_address()[source]

Test idempotent id: 45c4c683-ea97-41ef-9c51-5e9802f2f3d7

Test updating floating ip’s fixed_ips to another ip of same port

First we create a port with 2 fixed ips, then we create a floating ip with one of the fixed ips, and then we update the floating ip to another fixed ip of that port.

test_floating_ip_delete_port()[source]

Test idempotent id: e1f6bffd-442f-4668-b30e-df13f2705e77

Test deleting floating ip’s port

  1. Create a floating ip

  2. Create a port

  3. Update the floating ip’s port_id to the created port

  4. Delete the port

  5. Verify that the port details are cleared from the floating ip

test_floating_ip_update_different_router()[source]

Test idempotent id: 1bb2f731-fe5a-4b8c-8409-799ade1bed4d

Test associating a floating ip to a port on different router

network.test_floating_ips_negative module

class FloatingIPNegativeTestJSON(*args, **kwargs)[source]

Bases: BaseNetworkTest

Test the following negative operations for floating ips:

Create floatingip with a port that is unreachable to external network Create floatingip in private network Associate floatingip with port that is unreachable to external network

test_associate_floatingip_port_ext_net_unreachable()[source]

Test idempotent id: 6b3b8797-6d43-4191-985c-c48b773eb429

Associate floating ip to port with unreachable external network

test_create_floatingip_in_private_network()[source]

Test idempotent id: 50b9aeb4-9f0b-48ee-aa31-fa955a48ff54

Test creating floating in private network

test_create_floatingip_with_port_ext_net_unreachable()[source]

Test idempotent id: 22996ea8-4a81-4b27-b6e1-fa5df92fa5e8

Creating floating ip when port’s external network is unreachable

network.test_networks module

class BaseNetworkTestResources(*args, **kwargs)[source]

Bases: BaseNetworkTest

Test networks

class BulkNetworkOpsIpV6Test(*args, **kwargs)[source]

Bases: BulkNetworkOpsTest

class BulkNetworkOpsTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

Tests the following operations in the Neutron API:

bulk network creation bulk subnet creation bulk port creation list project’s networks

v2.0 of the Neutron API is assumed. It is also assumed that the following options are defined in the [network] section of etc/tempest.conf:

project_network_cidr with a block of cidr’s from which smaller blocks can be allocated for project networks

project_network_mask_bits with the mask bits to be used to partition the block defined by project-network_cidr

test_bulk_create_delete_network()[source]

Test idempotent id: d4f9024d-1e28-4fc1-a6b1-25dbc6fa11e2

Verify creating and deleting multiple networks in one request

test_bulk_create_delete_port()[source]

Test idempotent id: 48037ff2-e889-4c3b-b86a-8e3f34d2d060

Verify creating and deleting multiple ports in one request

test_bulk_create_delete_subnet()[source]

Test idempotent id: 8936533b-c0aa-4f29-8e53-6cc873aec489

Verify creating and deleting multiple subnets in one request

class NetworksIpV6Test(*args, **kwargs)[source]

Bases: NetworksTest

test_create_delete_subnet_with_default_gw()[source]

Test idempotent id: ebb4fd95-524f-46af-83c1-0305b239338f

Verify creating and deleting subnet without specified gateway

test_create_delete_subnet_with_gw()[source]

Test idempotent id: e41a4888-65a6-418c-a095-f7c2ef4ad59a

Verify creating and deleting subnet with gateway

test_create_list_subnet_with_no_gw64_one_network()[source]

Test idempotent id: a9653883-b2a4-469b-8c3c-4518430a7e55

Verify subnets with and without gateway are in one network

First we create a network, then we create one ipv6 subnet with gateway and one ipv4 subnet without gateway, the two subnets should be in the same network

class NetworksIpV6TestAttrs(*args, **kwargs)[source]

Bases: BaseNetworkTestResources

test_create_delete_slaac_subnet_with_ports()[source]

Test idempotent id: 88554555-ebf8-41ef-9300-4926d45e06e9

Test deleting subnet with SLAAC ports

Create subnet with SLAAC, create ports in network and then you shall be able to delete subnet without port deletion. But you still can not delete the network.

test_create_delete_stateless_subnet_with_ports()[source]

Test idempotent id: 2de6ab5a-fcf0-4144-9813-f91a940291f1

Test deleting subnet with DHCPv6 stateless ports

Create subnet with DHCPv6 stateless, create ports in network and then you shall be able to delete subnet without port deletion. But you still can not delete the network.

test_create_delete_subnet_with_v6_attributes_slaac()[source]

Test idempotent id: 176b030f-a923-4040-a755-9dc94329e60c

Test create/delete subnet with ipv6 attributes slaac

test_create_delete_subnet_with_v6_attributes_stateful()[source]

Test idempotent id: da40cd1b-a833-4354-9a85-cd9b8a3b74ca

Test create/delete subnet with ipv6 attributes stateful

test_create_delete_subnet_with_v6_attributes_stateless()[source]

Test idempotent id: 7d410310-8c86-4902-adf9-865d08e31adb

Test create/delete subnet with ipv6 attributes stateless

class NetworksTest(*args, **kwargs)[source]

Bases: BaseNetworkTestResources

Tests the following operations in the Neutron API:

create a network for a project list project’s networks show a project network details create a subnet for a project list project’s subnets show a project subnet details network update subnet update delete a network also deletes its subnets list external networks

All subnet tests are run once with ipv4 and once with ipv6.

v2.0 of the Neutron API is assumed. It is also assumed that the following options are defined in the [network] section of etc/tempest.conf:

project_network_cidr with a block of cidr’s from which smaller blocks can be allocated for project ipv4 subnets

project_network_v6_cidr is the equivalent for ipv6 subnets

project_network_mask_bits with the mask bits to be used to partition the block defined by project_network_cidr

project_network_v6_mask_bits is the equivalent for ipv6 subnets

test_create_delete_subnet_all_attributes()[source]

Test idempotent id: a4d9ec4c-0306-4111-a75c-db01a709030b

Verify create/delete subnet’s all attributes

test_create_delete_subnet_with_allocation_pools()[source]

Test idempotent id: bec949c4-3147-4ba6-af5f-cd2306118404

Verify creating and deleting subnet with allocation pools

test_create_delete_subnet_with_dhcp_enabled()[source]

Test idempotent id: 94ce038d-ff0a-4a4c-a56b-09da3ca0b55d

Verify create/delete subnet with dhcp enabled

test_create_delete_subnet_with_gw()[source]

Test idempotent id: 9393b468-186d-496d-aa36-732348cd76e7

Verify creating and deleting subnet with gateway

test_create_delete_subnet_with_gw_and_allocation_pools()[source]

Test idempotent id: 8217a149-0c6c-4cfb-93db-0486f707d13f

Verify create/delete subnet with gateway and allocation pools

test_create_delete_subnet_with_host_routes_and_dns_nameservers()[source]

Test idempotent id: d830de0a-be47-468f-8f02-1fd996118289

Verify create/delete subnet with host routes and name servers

test_create_delete_subnet_without_gateway()[source]

Test idempotent id: d2d596e2-8e76-47a9-ac51-d4648009f4d3

Verify creating and deleting subnet without gateway

test_create_update_delete_network_subnet()[source]

Test idempotent id: 0e269138-0da6-4efc-a46d-578161e7b221

Verify creating, updating and deleting network subnet

test_create_update_network_description()[source]

Test idempotent id: c72c1c0c-2193-4aca-ccc4-b1442640bbbb

Verify creating and updating network’s description

test_delete_network_with_subnet()[source]

Test idempotent id: f04f61a9-b7f3-4194-90b2-9bcf660d1bfe

Verify deleting network with subnet

test_external_network_visibility()[source]

Test idempotent id: af774677-42a9-4e4b-bb58-16fe6a5bc1ec

Verify external network’s visibility

test_list_networks()[source]

Test idempotent id: f7ffdeda-e200-4a7a-bcbe-05716e86bf43

Verify the network exists in the list of all networks

test_list_networks_fields()[source]

Test idempotent id: 6ae6d24f-9194-4869-9c85-c313cb20e080

Verify specific fields of the networks

test_list_subnets()[source]

Test idempotent id: db68ba48-f4ea-49e9-81d1-e367f6d0b20a

Verify the subnet exists in the list of all subnets

test_list_subnets_fields()[source]

Test idempotent id: 842589e3-9663-46b0-85e4-7f01273b0412

Verify specific fields of subnets

test_show_network()[source]

Test idempotent id: 2bf13842-c93f-4a69-83ed-717d2ec3b44e

Verify the details of a network

test_show_network_fields()[source]

Test idempotent id: 867819bb-c4b6-45f7-acf9-90edcf70aa5e

Verify specific fields of a network

test_show_subnet()[source]

Test idempotent id: bd635d81-6030-4dd1-b3b9-31ba0cfdf6cc

Verify the details of a subnet

test_show_subnet_fields()[source]

Test idempotent id: 270fff0b-8bfc-411f-a184-1e8fd35286f0

Verify specific fields of a subnet

test_update_subnet_gw_dns_host_routes_dhcp()[source]

Test idempotent id: 3d3852eb-3009-49ec-97ac-5ce83b73010a

Verify updating subnet’s gateway/nameserver/routes/dhcp

network.test_networks_negative module

class NetworksNegativeTestJSON(*args, **kwargs)[source]

Bases: BaseNetworkTest

Negative tests of network

test_create_port_on_non_existent_network()[source]

Test idempotent id: 13d3b106-47e6-4b9b-8d53-dae947f092fe

Test creating port on non existent network

test_delete_non_existent_network()[source]

Test idempotent id: 03795047-4a94-4120-a0a1-bd376e36fd4e

Test deleting non existent network

test_delete_non_existent_port()[source]

Test idempotent id: 49ec2bbd-ac2e-46fd-8054-798e679ff894

Test deleting non existent port

test_delete_non_existent_subnet()[source]

Test idempotent id: a176c859-99fb-42ec-a208-8a85b552a239

Test deleting non existent subnet

test_show_non_existent_network()[source]

Test idempotent id: 9293e937-824d-42d2-8d5b-e985ea67002a

Test showing non existent network

test_show_non_existent_port()[source]

Test idempotent id: a954861d-cbfd-44e8-b0a9-7fab111f235d

Test showing non existent port

test_show_non_existent_subnet()[source]

Test idempotent id: d746b40c-5e09-4043-99f7-cba1be8b70df

Test showing non existent subnet

test_update_non_existent_network()[source]

Test idempotent id: 98bfe4e3-574e-4012-8b17-b2647063de87

Test updating non existent network

test_update_non_existent_port()[source]

Test idempotent id: cf8eef21-4351-4f53-adcd-cc5cb1e76b92

Test updating non existent port

test_update_non_existent_subnet()[source]

Test idempotent id: 1cc47884-ac52-4415-a31c-e7ce5474a868

Test updating non existent subnet

network.test_ports module

class PortsIpV6TestJSON(*args, **kwargs)[source]

Bases: PortsTestJSON

class PortsTestJSON(*args, **kwargs)[source]

Bases: BaseSecGroupTest

Test the following operations for ports:

port create port delete port list port show port update

test_create_bulk_port()[source]

Test idempotent id: 67f1b811-f8db-43e2-86bd-72c074d4a42c

Test creating multiple ports in a single request

test_create_port_in_allowed_allocation_pools()[source]

Test idempotent id: 0435f278-40ae-48cb-a404-b8a087bc09b1

Test creating port in allowed allocation pools

test_create_port_with_no_securitygroups()[source]

Test idempotent id: 4179dcb9-1382-4ced-84fe-1b91c54f5735

Test creating port without security groups

test_create_show_delete_port_user_defined_mac()[source]

Test idempotent id: 13e95171-6cbd-489c-9d7c-3f9c58215c18

Test creating port with user defined mac address

test_create_update_delete_port()[source]

Test idempotent id: c72c1c0c-2193-4aca-aaa4-b1442640f51c

Test creating, updating and deleting port

test_create_update_port_with_second_ip()[source]

Test idempotent id: 63aeadd4-3b49-427f-a3b1-19ca81f06270

Test updating port from 2 fixed ips to 1 fixed ip and vice versa

test_list_ports()[source]

Test idempotent id: cf95b358-3e92-4a29-a148-52445e1ac50e

Verify the port exists in the list of all ports

test_list_ports_fields()[source]

Test idempotent id: ff7f117f-f034-4e0e-abff-ccef05c454b4

Verify specific fields of ports

test_port_list_filter_by_ip()[source]

Test idempotent id: e7fe260b-1e79-4dd3-86d9-bec6a7959fc5

Test listing ports filtered by ip

test_port_list_filter_by_ip_substr()[source]

Test idempotent id: 79895408-85d5-460d-94e7-9531c5fd9123

Test listing ports filtered by part of ip address string

test_port_list_filter_by_router_id()[source]

Test idempotent id: 5ad01ed0-0e6e-4c5d-8194-232801b15c72

Test listing ports filtered by router id

test_show_port()[source]

Test idempotent id: c9a685bd-e83f-499c-939f-9f7863ca259f

Verify the details of port

test_show_port_fields()[source]

Test idempotent id: 45fcdaf2-dab0-4c13-ac6c-fcddfb579dbd

Verify specific fields of a port

test_update_port_with_security_group_and_extra_attributes()[source]

Test idempotent id: 58091b66-4ff4-4cc1-a549-05d60c7acd1a

Test updating port’s security_group along with extra attributes

First we create a port with one security group, and then we update the port’s security_group, in the same update request we also change the port’s fixed ips.

test_update_port_with_two_security_groups_and_extra_attributes()[source]

Test idempotent id: edf6766d-3d40-4621-bc6e-2521a44c257d

Test updating port with two security_groups and extra attributes

First we create a port with one security group, and then we update the port to two security_groups, in the same update request we also change the port’s fixed ips.

network.test_routers module

class RoutersIpV6Test(*args, **kwargs)[source]

Bases: RoutersTest

class RoutersTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

Test routers

test_add_multiple_router_interfaces()[source]

Test idempotent id: 802c73c9-c937-4cef-824b-2191e24a6aab

Test adding multiple router interfaces

test_add_remove_router_interface_with_port_id()[source]

Test idempotent id: 2b7d2f37-6748-4d78-92e5-1d590234f0d5

Test adding and removing router interface with port id

test_add_remove_router_interface_with_subnet_id()[source]

Test idempotent id: b42e6e39-2e37-49cc-a6f4-8467e940900a

Test adding and removing router interface with subnet id

test_create_show_list_update_delete_router()[source]

Test idempotent id: f64403e2-8483-4b34-8ccd-b09a87bcc68c

Test create/show/list/update/delete of a router

test_router_interface_port_update_with_fixed_ip()[source]

Test idempotent id: 96522edf-b4b5-45d9-8443-fa11c26e6eff

Test updating router interface port’s fixed ip

test_update_delete_extra_route()[source]

Test idempotent id: c86ac3a8-50bd-4b00-a6b8-62af84a0765c

Test updating and deleting router with extra route

test_update_router_admin_state()[source]

Test idempotent id: a8902683-c788-4246-95c7-ad9c6d63a4d9

Test updating router’s admin state

network.test_routers_negative module

class DvrRoutersNegativeTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

Negative tests of DVR router

test_router_create_tenant_distributed_returns_forbidden()[source]

Test idempotent id: 4990b055-8fc7-48ab-bba7-aa28beaad0b9

Non admin user is not allowed to create distributed router

class RoutersNegativeIpV6Test(*args, **kwargs)[source]

Bases: RoutersNegativeTest

class RoutersNegativeTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

Negative tests of routers

test_add_router_interfaces_on_overlapping_subnets_returns_400()[source]

Test idempotent id: 957751a3-3c68-4fa2-93b6-eb52ea10db6e

Test adding router interface which is on overlapping subnets

test_delete_non_existent_router_returns_404()[source]

Test idempotent id: c7edc5ad-d09d-41e6-a344-5c0c31e2e3e4

Test deleting non existent router

test_router_add_gateway_invalid_network_returns_404()[source]

Test idempotent id: 37a94fc0-a834-45b9-bd23-9a81d2fd1e22

Test adding gateway with invalid network for router

test_router_add_gateway_net_not_external_returns_400()[source]

Test idempotent id: 11836a18-0b15-4327-a50b-f0d9dc66bddd

Test adding gateway with not external network for router

test_router_remove_interface_in_use_returns_409()[source]

Test idempotent id: 04df80f9-224d-47f5-837a-bf23e33d1c20

Test removing in-use interface from router

test_show_non_existent_router_returns_404()[source]

Test idempotent id: c2a70d72-8826-43a7-8208-0209e6360c47

Test showing non existent router

test_update_non_existent_router_returns_404()[source]

Test idempotent id: b23d1569-8b0c-4169-8d4b-6abd34fad5c7

Test updating non existent router

network.test_security_groups module

class SecGroupIPv6Test(*args, **kwargs)[source]

Bases: SecGroupTest

class SecGroupTest(*args, **kwargs)[source]

Bases: BaseSecGroupTest

Test security groups

test_create_list_update_show_delete_security_group()[source]

Test idempotent id: bfd128e5-3c92-44b6-9d66-7fe29d22c802

Verify create/list/update/show/delete of security group

test_create_security_group_rule_with_additional_args()[source]

Test idempotent id: 87dfbcf9-1849-43ea-b1e4-efa3eeae9f71

Verify security group rule with additional arguments works.

direction:ingress, ethertype:[IPv4/IPv6], protocol:tcp, port_range_min:77, port_range_max:77

test_create_security_group_rule_with_icmp_type_code()[source]

Test idempotent id: c9463db8-b44d-4f52-b6c0-8dbda99f26ce

Verify security group rule for icmp protocol works.

Specify icmp type (port_range_min) and icmp code (port_range_max) with different values. A separate testcase is added for icmp protocol as icmp validation would be different from tcp/udp.

test_create_security_group_rule_with_protocol_integer_value()[source]

Test idempotent id: 0a307599-6655-4220-bebc-fd70c64f2290

Verify creating security group rule with the integer protocol value

arguments : “protocol”: 17

test_create_security_group_rule_with_remote_group_id()[source]

Test idempotent id: c2ed2deb-7a0c-44d8-8b4c-a5825b5c310b

Verify creating security group rule with remote_group_id works

test_create_security_group_rule_with_remote_ip_prefix()[source]

Test idempotent id: 16459776-5da2-4634-bce4-4b55ee3ec188

Verify creating security group rule with remote_ip_prefix works

test_create_show_delete_security_group_rule()[source]

Test idempotent id: cfb99e0e-7410-4a3d-8a0c-959a63ee77e9

Test create/show/delete of security group rule

test_delete_security_group_clear_associated_rules()[source]

Test idempotent id: fd1ea1c5-eedc-403f-898d-2b562e853f2e

Verify delete security group.

its associated security group rules are also deleted

test_list_security_groups()[source]

Test idempotent id: e30abd17-fef9-4739-8617-dc26da88e686

Verify that default security group exist

network.test_security_groups_negative module

class NegativeSecGroupIPv6Test(*args, **kwargs)[source]

Bases: NegativeSecGroupTest

test_create_security_group_rule_wrong_ip_prefix_version()[source]

Test idempotent id: 7607439c-af73-499e-bf64-f687fd12a842

Test creating security group rule with wrong ip prefix version

class NegativeSecGroupTest(*args, **kwargs)[source]

Bases: BaseSecGroupTest

Negative tests of security groups

test_create_additional_default_security_group_fails()[source]

Test idempotent id: 2323061e-9fbf-4eb0-b547-7e8fafc90849

Test creating additional default security group

Create security group named ‘default’, it should be failed.

test_create_duplicate_security_group_rule_fails()[source]

Test idempotent id: 8fde898f-ce88-493b-adc9-4e4692879fc5

Test creating duplicate security group rule

Create duplicate security group rule, it should fail.

test_create_security_group_rule_with_bad_ethertype()[source]

Test idempotent id: 5666968c-fff3-40d6-9efc-df1c8bd01abb

Test creating security group rule with bad bad ethertype

test_create_security_group_rule_with_bad_protocol()[source]

Test idempotent id: 981bdc22-ce48-41ed-900a-73148b583958

Test creating security group rule with bad protocol

test_create_security_group_rule_with_bad_remote_ip_prefix()[source]

Test idempotent id: 5f8daf69-3c5f-4aaa-88c9-db1d66f68679

Test creating security group rule with bad remote ip prefix

test_create_security_group_rule_with_invalid_ports()[source]

Test idempotent id: 0d9c7791-f2ad-4e2f-ac73-abf2373b0d2d

Test creating security group rule with invalid ports

test_create_security_group_rule_with_non_existent_remote_groupid()[source]

Test idempotent id: 4bf786fd-2f02-443c-9716-5b98e159a49a

Creating security group rule with non existent remote group id

test_create_security_group_rule_with_non_existent_security_group()[source]

Test idempotent id: be308db6-a7cf-4d5c-9baf-71bafd73f35e

Creating security group rules with not existing security group

test_create_security_group_rule_with_remote_ip_and_group()[source]

Test idempotent id: b5c4b247-6b02-435b-b088-d10d45650881

Test creating security group rule with remote ip and group

test_create_security_group_update_name_default()[source]

Test idempotent id: 966e2b96-023a-11e7-a9e4-fa163e4fa634

Test updating security group’s name to default

Update security group name to ‘default’, it should be failed.

test_delete_non_existent_security_group()[source]

Test idempotent id: 1f1bb89d-5664-4956-9fcd-83ee0fa603df

Test deleting non existent security group

test_show_non_existent_security_group()[source]

Test idempotent id: 424fd5c3-9ddc-486a-b45f-39bf0c820fc6

Test showing non existent security group

test_show_non_existent_security_group_rule()[source]

Test idempotent id: 4c094c09-000b-4e41-8100-9617600c02a6

Test showing non existent security group rule

network.test_service_providers module

class ServiceProvidersTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

Test network service providers

test_service_providers_list()[source]

Test idempotent id: 2cbbeea9-f010-40f6-8df5-4eaa0c918ea6

Test listing network service providers

network.test_subnetpools_extensions module

class SubnetPoolsTestJSON(*args, **kwargs)[source]

Bases: BaseNetworkTest

Tests the following operations in the subnetpools API:

Create a subnet pool. Update a subnet pool. Delete a subnet pool. Lists subnet pool. Show subnet pool details.

v2.0 of the Neutron API is assumed. It is assumed that subnet_allocation options mentioned in the [network-feature-enabled] section and default_network option mentioned in the [network] section of etc/tempest.conf:

test_create_list_show_update_delete_subnetpools()[source]

Test idempotent id: 62595970-ab1c-4b7f-8fcc-fddfe55e9811

Test create/list/show/update/delete of subnet pools

network.test_tags module

class TagsExtTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

Tests the following operations in the tags API:

Update all tags. Delete all tags. Check tag existence. Create a tag. List tags. Remove a tag.

v2.0 of the Neutron API is assumed. The tag-ext or standard-attr-tag extension allows users to set tags on the following resources: subnets, ports, routers and subnetpools. from stein release the tag-ext has been renamed to standard-attr-tag

test_create_check_list_and_delete_tags()[source]

Test idempotent id: c6231efa-9a89-4adf-b050-2a3156b8a1d9

Test tag operations on subnets/ports/routers/subnetpools

test_update_and_delete_all_tags()[source]

Test idempotent id: 663a90f5-f334-4b44-afe0-c5fc1d408791

Test update/delete all tags on subnets/ports/routers/subnetpools

class TagsTest(*args, **kwargs)[source]

Bases: BaseNetworkTest

Tests the following operations in the tags API:

Update all tags. Delete all tags. Check tag existence. Create a tag. List tags. Remove a tag.

v2.0 of the Neutron API is assumed. The tag extension allows users to set tags on their networks. The extension supports networks only.

test_create_list_show_update_delete_tags()[source]

Test idempotent id: ee76bfaf-ac94-4d74-9ecc-4bbd4c583cb1

Validate that creating a tag on a network resource works

network.test_versions module

class NetworksApiDiscovery(*args, **kwargs)[source]

Bases: BaseNetworkTest

test_api_version_resources()[source]

Test idempotent id: cac8a836-c2e0-4304-b556-cd299c7281d1

Test that GET / returns expected resources.

The versions document returned by Neutron returns a few other resources other than just available API versions: it also states the status of each API version and provides links to schema.

test_show_api_v2_details()[source]

Test idempotent id: e64b7216-3178-4263-967c-d389290988bf

Test that GET /v2.0/ returns expected resources.

Module contents