Browse Source

Skip the external network connection test

Change-Id: I7a12483fc0d8a678f6c9b322ee327481b84ce1fe
changes/18/638318/1
Lingxian Kong 2 years ago
parent
commit
b7522b5f13
2 changed files with 9 additions and 0 deletions
  1. +4
    -0
      qinling_tempest_plugin/config.py
  2. +5
    -0
      qinling_tempest_plugin/tests/api/test_executions.py

+ 4
- 0
qinling_tempest_plugin/config.py 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."),
]

+ 5
- 0
qinling_tempest_plugin/tests/api/test_executions.py 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.


Loading…
Cancel
Save