Browse Source

Avoid eventlet monkey patching for the tempest plugin

do the monkey patch for each modules instead.

Closes-Bug: #1571486
Change-Id: Ia698dcf99f3950aeabffc44d85e4b33f56714afd
changes/94/310094/2
YAMAMOTO Takashi 5 years ago
parent
commit
16ca061abc
  1. 15
      neutron/tests/__init__.py
  2. 16
      neutron/tests/common/__init__.py
  3. 16
      neutron/tests/fullstack/__init__.py
  4. 5
      neutron/tests/functional/__init__.py
  5. 5
      neutron/tests/unit/__init__.py

15
neutron/tests/__init__.py

@ -1,15 +0,0 @@
# 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 neutron.common import eventlet_utils
eventlet_utils.monkey_patch()

16
neutron/tests/common/__init__.py

@ -0,0 +1,16 @@
# 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 neutron.common import eventlet_utils
eventlet_utils.monkey_patch()

16
neutron/tests/fullstack/__init__.py

@ -0,0 +1,16 @@
# 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 neutron.common import eventlet_utils
eventlet_utils.monkey_patch()

5
neutron/tests/functional/__init__.py

@ -20,6 +20,11 @@ discovery.
import os.path
from neutron.common import eventlet_utils
eventlet_utils.monkey_patch()
def load_tests(loader, tests, pattern):
this_dir = os.path.dirname(__file__)

5
neutron/tests/unit/__init__.py

@ -15,5 +15,10 @@
from oslo_config import cfg
from neutron.common import eventlet_utils
cfg.CONF.use_stderr = False
eventlet_utils.monkey_patch()
Loading…
Cancel
Save