Remove test_nova_port_notification_on_shutoff

Test scenario is not acurate as we shouldn't send the port-unplugged
event on the server shutoff.
https://bugzilla.redhat.com/show_bug.cgi?id=1932187

Change-Id: I803c976a3158bcbbec2513cdd690ea30ae74c2f8
This commit is contained in:
Alex Katz 2021-03-31 13:22:04 +03:00
parent c5146899e6
commit 45c1b0117a
1 changed files with 0 additions and 13 deletions

View File

@ -175,19 +175,6 @@ class PortLogsTest(testtools.TestCase):
stack = tobiko.required_setup_fixture(PortLogsStack) stack = tobiko.required_setup_fixture(PortLogsStack)
def test_nova_port_notification_on_shutoff(self):
self.stack.ensure_server_status('ACTIVE')
log_digger = topology.get_log_file_digger(
service_name=neutron.SERVER,
groups=['controller'],
pattern=f'Nova.+event.+response.*{self.stack.server_id}')
with log_digger:
# Check unplugged event is logged
nova.shutoff_server(self.stack.server_id)
new_lines = log_digger.find_new_lines()
self.assert_has_event(new_lines, 'network-vif-unplugged')
@pytest.mark.flaky(reruns=5, reruns_delay=120) @pytest.mark.flaky(reruns=5, reruns_delay=120)
def test_nova_port_notification_on_activate(self): def test_nova_port_notification_on_activate(self):
self.stack.ensure_server_status('SHUTOFF') self.stack.ensure_server_status('SHUTOFF')