Skip the external network connection test

Change-Id: I7a12483fc0d8a678f6c9b322ee327481b84ce1fe
This commit is contained in:
Lingxian Kong 2019-02-21 14:53:57 +13:00
parent 220a45c5a0
commit b7522b5f13
2 changed files with 9 additions and 0 deletions

View File

@ -45,4 +45,8 @@ QinlingGroup = [
cfg.StrOpt("nodejs_runtime_image",
default="openstackqinling/nodejs-runtime:0.0.1",
help="The NodeJS runtime being used in the tests."),
cfg.BoolOpt("allow_external_connection",
default=False,
help="If the tests which need external network connection "
"should be running."),
]

View File

@ -19,11 +19,14 @@ import requests
import futurist
from oslo_serialization import jsonutils
from tempest import config
from tempest.lib import decorators
from tempest.lib import exceptions
import testtools
from qinling_tempest_plugin.tests import base
CONF = config.CONF
INVOKE_ERROR = "Function execution failed because of too much resource " \
"consumption"
@ -492,6 +495,8 @@ class ExecutionsTest(base.BaseQinlingTest):
self.assertLessEqual(lower, first_duration)
@decorators.idempotent_id('07edf2ff-7544-4f30-b006-fd5302a2a9cc')
@testtools.skipUnless(CONF.qinling.allow_external_connection,
"External network connection is not allowed")
def test_python_execution_public_connection(self):
"""Test connections from k8s pod to the outside.