Files
whitebox-neutron-tempest-pl…/whitebox_neutron_tempest_plugin/tests/scenario/test_basic.py
yatinkarel a7f2489edb Remove duplicated test_ping_global_ip_from_vm_with_fip
The test exists[1] in neutron-tempest-plugin for some years
with configurable option, let's remove this test as
it is duplicated.

[1] https://review.opendev.org/727764

Change-Id: I7822d5576b806b0b06287dada4e74fe3b64ffebc
2025-05-12 12:00:28 +05:30

55 lines
2.1 KiB
Python

# Copyright 2016 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from tempest.lib import decorators
from neutron_tempest_plugin import config
from neutron_tempest_plugin.scenario import base
CONF = config.CONF
class NetworkBasicTest(base.BaseTempestTestCase):
credentials = ['primary', 'admin']
force_tenant_isolation = False
# Default to ipv4.
_ip_version = 4
@decorators.idempotent_id('df9e38fd-4eb3-4d6c-b26a-a472856fdcb8')
def test_basic_instance_kuku(self):
self.setup_network_and_server()
self.check_connectivity(self.fip['floating_ip_address'],
CONF.validation.image_ssh_user,
self.keypair['private_key'])
@decorators.idempotent_id('ff7f6a84-4705-4638-9fce-cdc79f8b2c73')
def test_soft_hard_vm_reboot(self):
self.setup_network_and_server()
self.check_connectivity(self.fip['floating_ip_address'],
CONF.validation.image_ssh_user,
self.keypair['private_key'])
# TODO(eolivare): restore the original order [HARD, SOFT] once
# BZ2064228 is resolved
reboot_types = ['SOFT', 'HARD']
for reboot_type in reboot_types:
self.os_primary.servers_client.reboot_server(
self.server['server']['id'], type=reboot_type)
self.wait_for_server_active(self.server['server'])
self.check_connectivity(
self.fip['floating_ip_address'],
CONF.validation.image_ssh_user,
self.keypair['private_key'])