network.admin package¶
Submodules¶
network.admin.test_dhcp_agent_scheduler module¶
-
class
DHCPAgentSchedulersTestJSON
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Test network DHCP agent scheduler extension
-
test_add_remove_network_from_dhcp_agent
()[source]¶ Test idempotent id: a0856713-6549-470c-a656-e97c8df9a14d
Test adding and removing network from a DHCP agent
-
network.admin.test_external_network_extension module¶
-
class
ExternalNetworksTestJSON
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Test external networks
-
test_create_external_network
()[source]¶ Test idempotent id: 462be770-b310-4df9-9c42-773217e4c8b1
Test creating external network
Create a network as an admin user specifying the external network extension attribute
-
test_delete_external_networks_with_floating_ip
()[source]¶ Test idempotent id: 82068503-2cf2-4ed4-b3be-ecb89432e4bb
Test deleting external network with unassociated floating ips
Verifies external network can be deleted while still holding (unassociated) floating IPs
-
test_list_external_networks
()[source]¶ Test idempotent id: 39be4c9b-a57e-4ff9-b7c7-b218e209dfcc
Test listing external networks
-
network.admin.test_external_networks_negative module¶
-
class
ExternalNetworksAdminNegativeTestJSON
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Negative tests of external network
-
test_create_port_with_precreated_floatingip_as_fixed_ip
()[source]¶ Test idempotent id: d402ae6c-0be0-4d8e-833b-a738895d98d0
Test creating port with precreated floating ip as fixed ip
NOTE: External networks can be used to create both floating-ip as well as instance-ip. So, creating an instance-ip with a value of a pre-created floating-ip should be denied.
-
network.admin.test_floating_ips_admin_actions module¶
-
class
FloatingIPAdminTestJSON
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Test floating ips
-
test_create_list_show_floating_ip_with_tenant_id_by_admin
()[source]¶ Test idempotent id: 32727cc3-abe2-4485-a16e-48f2d54c14f2
Verify if admin can create/list/show floating ip with tenant id
-
test_list_floating_ips_from_admin_and_nonadmin
()[source]¶ Test idempotent id: 64f2100b-5471-4ded-b46c-ddeeeb4f231b
Test listing floating ips from admin and non admin users
This test performs below operations: 1. Create couple floating ips for admin and non-admin users. 2. Verify if admin can access all floating ips including other user and non-admin user can only access its own floating ips.
-
network.admin.test_metering_extensions module¶
-
class
MeteringIpV6TestJSON
(*args, **kwargs)[source]¶ Bases:
network.admin.test_metering_extensions.MeteringTestJSON
-
class
MeteringTestJSON
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Tests the following operations in the Neutron API:
List, Show, Create, Delete Metering labels List, Show, Create, Delete Metering labels rules
-
test_create_delete_metering_label_rule_with_filters
()[source]¶ Test idempotent id: f4d547cd-3aee-408f-bf36-454f8825e045
Verifies creating and deleting metering label rule with filters
-
test_create_delete_metering_label_with_filters
()[source]¶ Test idempotent id: ec8e15ff-95d0-433b-b8a6-b466bddb1e50
Verifies creating and deleting metering label with filters
-
test_list_metering_label_rules
()[source]¶ Test idempotent id: cc832399-6681-493b-9d79-0202831a1281
Verifies listing metering label rules
-
test_list_metering_labels
()[source]¶ Test idempotent id: e2fb2f8c-45bf-429a-9f17-171c70444612
Verify listing metering labels
-
network.admin.test_negative_quotas module¶
-
class
QuotasNegativeTest
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Tests the following operations in the Neutron API:
set network quota and exceed this quota
v2.0 of the API is assumed. It is also assumed that the per-project quota extension API is configured in /etc/neutron/neutron.conf as follows:
quota_driver = neutron.db.quota.driver.DbQuotaDriver
network.admin.test_ports module¶
-
class
PortsAdminExtendedAttrsIpV6TestJSON
(*args, **kwargs)[source]¶ Bases:
network.admin.test_ports.PortsAdminExtendedAttrsTestJSON
-
class
PortsAdminExtendedAttrsTestJSON
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Test extended attributes of ports
-
test_create_port_binding_ext_attr
()[source]¶ Test idempotent id: 8e8569c1-9ac7-44db-8bc1-f5fb2814f29b
Test creating port with extended attribute
-
test_list_ports_binding_ext_attr
()[source]¶ Test idempotent id: 1c82a44a-6c6e-48ff-89e1-abe7eaf8f9f8
Test updating and listing port’s extended attribute
-
network.admin.test_quotas module¶
-
class
QuotasTest
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Tests the following operations in the Neutron API:
list quotas for projects who have non-default quota values show quotas for a specified project update quotas for a specified project reset quotas to default values for a specified project
v2.0 of the API is assumed. It is also assumed that the per-project quota extension API is configured in /etc/neutron/neutron.conf as follows:
quota_driver = neutron.db.quota.driver.DbQuotaDriver
network.admin.test_routers module¶
-
class
RoutersAdminTest
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
Test routers operation supported by admin
-
test_create_router_set_gateway_with_fixed_ip
()[source]¶ Test idempotent id: cbe42f84-04c2-11e7-8adb-fa163e4fa634
Test creating router setting gateway with fixed ip
-
test_create_router_setting_project_id
()[source]¶ Test idempotent id: e54dd3a3-4352-4921-b09d-44369ae17397
Test creating router from admin user setting project_id.
-
test_create_router_with_default_snat_value
()[source]¶ Test idempotent id: 847257cc-6afd-4154-b8fb-af49f5670ce8
Create a router with default snat rule
-
test_create_router_with_snat_explicit
()[source]¶ Test idempotent id: ea74068d-09e9-4fd7-8995-9b6a1ace920f
Test creating router with specified enable_snat value
-
test_update_router_reset_gateway_without_snat
()[source]¶ Test idempotent id: f2faf994-97f4-410b-a831-9bc977b64374
Test updating router’s gateway to be with snat not enabled
-
test_update_router_set_gateway
()[source]¶ Test idempotent id: 6cc285d8-46bf-4f36-9b1a-783e3008ba79
Test updating router’s gateway info
-
test_update_router_set_gateway_with_snat_explicit
()[source]¶ Test idempotent id: b386c111-3b21-466d-880c-5e72b01e1a33
Test setting router’s gateway with snat enabled
-
network.admin.test_routers_dvr module¶
-
class
RoutersTestDVR
(*args, **kwargs)[source]¶ Bases:
tempest.api.network.base.BaseAdminNetworkTest
-
test_centralized_router_creation
()[source]¶ Test idempotent id: 8a0a72b4-7290-4677-afeb-b4ffe37bc352
Test centralized router creation
Test uses administrative credentials to creates a CVR (Centralized Virtual Routing) router using the distributed=False.
Acceptance The router is created and the “distributed” attribute is set to False, thus making it a “Centralized Virtual Router” as opposed to a “Distributed Virtual Router”
-
test_centralized_router_update_to_dvr
()[source]¶ Test idempotent id: acd43596-c1fb-439d-ada8-31ad48ae3c2e
Test centralized router update
Test uses administrative credentials to creates a CVR (Centralized Virtual Routing) router using the distributed=False. Then it will “update” the router distributed attribute to True
Acceptance The router is created and the “distributed” attribute is set to False. Once the router is updated, the distributed attribute will be set to True
-
test_distributed_router_creation
()[source]¶ Test idempotent id: 08a2a0a8-f1e4-4b34-8e30-e522e836c44e
Test distributed router creation
Test uses administrative credentials to creates a DVR (Distributed Virtual Routing) router using the distributed=True.
Acceptance The router is created and the “distributed” attribute is set to True
-
network.admin.test_routers_negative module¶
-
class
RoutersAdminNegativeIpV6Test
(*args, **kwargs)[source]¶ Bases:
network.admin.test_routers_negative.RoutersAdminNegativeTest