blob: d825e15e62d70ff8ad40e3e4eb46a66ff39a611e [file] [log] [blame]
Itzik Browne67ebb52016-05-15 05:34:41 +00001# Copyright 2016 Red Hat, Inc.
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000015from tempest.lib import decorators
Itzik Browne67ebb52016-05-15 05:34:41 +000016
Chandan Kumar667d3d32017-09-22 12:24:06 +053017from neutron_tempest_plugin import config
18from neutron_tempest_plugin.scenario import base
Itzik Browne67ebb52016-05-15 05:34:41 +000019
20CONF = config.CONF
Itzik Browne67ebb52016-05-15 05:34:41 +000021
22
23class NetworkBasicTest(base.BaseTempestTestCase):
24 credentials = ['primary']
25 force_tenant_isolation = False
26
27 # Default to ipv4.
28 _ip_version = 4
29
Sławek Kapłońskic0caa2e2017-02-25 10:11:32 +000030 @decorators.idempotent_id('de07fe0a-e955-449e-b48b-8641c14cd52e')
Itzik Browne67ebb52016-05-15 05:34:41 +000031 def test_basic_instance(self):
Itzik Brown1ef813a2016-06-06 12:56:21 +000032 self.setup_network_and_server()
33 self.check_connectivity(self.fip['floating_ip_address'],
Itzik Browne67ebb52016-05-15 05:34:41 +000034 CONF.validation.image_ssh_user,
Itzik Brown1ef813a2016-06-06 12:56:21 +000035 self.keypair['private_key'])