Skip the external network connection test
Change-Id: I7a12483fc0d8a678f6c9b322ee327481b84ce1fe
This commit is contained in:
parent
220a45c5a0
commit
b7522b5f13
@ -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."),
|
||||
]
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user