The neutron_taas.tests.tempest_plugin.tests.scenario.manager Module¶
-
class
neutron_taas.tests.tempest_plugin.tests.scenario.manager.NetworkScenarioTest(*args, **kwargs)¶ Bases:
neutron_taas.tests.tempest_plugin.tests.scenario.manager.ScenarioTestBase class for network scenario tests.
This class provide helpers for network scenario tests, using the neutron API. Helpers from ancestor which use the nova network API are overridden with the neutron API.
This Class also enforces using Neutron instead of novanetwork. Subclassed tests will be skipped if Neutron is not enabled
-
check_floating_ip_status(floating_ip, status)¶ Verifies floatingip reaches the given status
Parameters: - floating_ip (dict) – floating IP dict to check status
- status – target status
Raises: AssertionError if status doesn’t match
-
create_floating_ip(thing, external_network_id=None, port_id=None, client=None)¶ Create a floating IP and associates to a resource/port on Neutron
-
create_networks(networks_client=None, routers_client=None, subnets_client=None, tenant_id=None, dns_nameservers=None, port_security_enabled=True)¶ Create a network with a subnet connected to a router.
The baremetal driver is a special case since all nodes are on the same shared network.
Parameters: - tenant_id – id of tenant to create resources in.
- dns_nameservers – list of dns servers to send to subnet.
Returns: network, subnet, router
-
credentials= [‘primary’, ‘admin’]¶
-
classmethod
skip_checks()¶
-
-
class
neutron_taas.tests.tempest_plugin.tests.scenario.manager.ScenarioTest(*args, **kwargs)¶ Bases:
tempest.test.BaseTestCaseBase class for scenario tests. Uses tempest own clients.
-
check_public_network_connectivity(ip_address, username, private_key, should_connect=True, msg=None, servers=None, mtu=None)¶
-
check_vm_connectivity(ip_address, username=None, private_key=None, should_connect=True, mtu=None)¶ Check server connectivity
Parameters: - ip_address – server to test against
- username – server’s ssh username
- private_key – server’s ssh private key to be used
- should_connect – True/False indicates positive/negative test positive - attempt ping and ssh negative - attempt ping and fail if succeed
- mtu – network MTU to use for connectivity validation
Raises: AssertError if the result of the connectivity check does not match the value of the should_connect param
-
create_keypair(client=None)¶
-
create_server(name=None, image_id=None, flavor=None, validatable=False, wait_until=’ACTIVE’, clients=None, **kwargs)¶ Wrapper utility that returns a test server.
This wrapper utility calls the common create test server and returns a test server. The purpose of this wrapper is to minimize the impact on the code of the tests already using this function.
-
credentials= [‘primary’]¶
-
get_remote_client(ip_address, username=None, private_key=None)¶ Get a SSH client to a remote server
- @param ip_address the server floating or fixed IP address to use
- for ssh validation
@param username name of the Linux account on the remote server @param private_key the SSH private key to use @return a RemoteClient object
-
ping_ip_address(ip_address, should_succeed=True, ping_timeout=None, mtu=None)¶
-
classmethod
setup_clients()¶
-