neutron-tempest-plugin/neutron_tempest_plugin/common
Slawek Kaplonski fd4141f201 Fix how nc is called in qos test
We have already nc_listen method in base scenario tests class.
It was since now used only in port_forwarding tests but we can
reuse it in QoS tests also.

There was also problem with spawning ncat process, that sometimes,
without any clear reason for me, process wasn't spawned at all.
That caused failure of test.

So this patch adds new method ensure_nc_listen() which spawns ncat
process on remote host and checkes if process is really spawned. That
way we can avoid problems with not spawned ncat process.

This patch also makes "server" attribute to be optional in nc_listen
method. It is used only to log console output in case when ssh to the
server wouldn't work as expected. And if server is not given,
_log_console_output() method will list all servers which belongs to
tenant and log console for each of them.

Closes-Bug: #1868100

Change-Id: I54c9f041f2f971219c32005b3fa573c06f0110ef
2020-03-19 15:33:08 +01:00
..
__init__.py Refactored Neutron tempest plugin directory structure 2017-11-13 09:19:11 +05:30
constants.py Improve security groups management. 2018-11-14 13:03:09 +01:00
ip.py Use different CIDRs for private and public subnets 2020-01-30 11:08:03 +00:00
shell.py Stop using not existing ShellCommandError exception class 2020-02-06 10:44:16 +01:00
ssh.py Stop re-using client connections 2020-01-06 16:05:57 +00:00
tempest_fixtures.py Refactored Neutron tempest plugin directory structure 2017-11-13 09:19:11 +05:30
utils.py Fix how nc is called in qos test 2020-03-19 15:33:08 +01:00