Blame SOURCES/grpc-1.26.0-grpcio_tests-make-network-tests-skippable.patch
|
rdobuilder |
dca260 |
diff -Naur grpc-1.26.0-original/src/python/grpcio_tests/tests/interop/_secure_intraop_test.py grpc-1.26.0/src/python/grpcio_tests/tests/interop/_secure_intraop_test.py
|
|
rdobuilder |
dca260 |
--- grpc-1.26.0-original/src/python/grpcio_tests/tests/interop/_secure_intraop_test.py 2019-12-17 20:29:27.000000000 -0500
|
|
rdobuilder |
dca260 |
+++ grpc-1.26.0/src/python/grpcio_tests/tests/interop/_secure_intraop_test.py 2021-03-15 10:09:54.802317262 -0400
|
|
rdobuilder |
dca260 |
@@ -13,6 +13,7 @@
|
|
rdobuilder |
dca260 |
# limitations under the License.
|
|
rdobuilder |
dca260 |
"""Secure client-server interoperability as a unit test."""
|
|
rdobuilder |
dca260 |
|
|
rdobuilder |
dca260 |
+import os
|
|
rdobuilder |
dca260 |
import unittest
|
|
rdobuilder |
dca260 |
|
|
rdobuilder |
dca260 |
import grpc
|
|
rdobuilder |
dca260 |
@@ -29,6 +30,8 @@
|
|
rdobuilder |
dca260 |
class SecureIntraopTest(_intraop_test_case.IntraopTestCase, unittest.TestCase):
|
|
rdobuilder |
dca260 |
|
|
rdobuilder |
dca260 |
def setUp(self):
|
|
rdobuilder |
dca260 |
+ if 'FEDORA_NO_NETWORK_TESTS' in os.environ:
|
|
rdobuilder |
dca260 |
+ self.skipTest('Network tests disabled')
|
|
rdobuilder |
dca260 |
self.server = test_common.test_server()
|
|
rdobuilder |
dca260 |
test_pb2_grpc.add_TestServiceServicer_to_server(service.TestService(),
|
|
rdobuilder |
dca260 |
self.server)
|
|
rdobuilder |
dca260 |
diff -Naur grpc-1.26.0-original/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py grpc-1.26.0/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py
|
|
rdobuilder |
dca260 |
--- grpc-1.26.0-original/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py 2019-12-17 20:29:27.000000000 -0500
|
|
rdobuilder |
dca260 |
+++ grpc-1.26.0/src/python/grpcio_tests/tests/unit/_dns_resolver_test.py 2021-03-15 10:08:08.159649736 -0400
|
|
rdobuilder |
dca260 |
@@ -13,6 +13,7 @@
|
|
rdobuilder |
dca260 |
# limitations under the License.
|
|
rdobuilder |
dca260 |
"""Tests for an actual dns resolution."""
|
|
rdobuilder |
dca260 |
|
|
rdobuilder |
dca260 |
+import os
|
|
rdobuilder |
dca260 |
import unittest
|
|
rdobuilder |
dca260 |
import logging
|
|
rdobuilder |
dca260 |
import six
|
|
rdobuilder |
dca260 |
@@ -45,6 +46,8 @@
|
|
rdobuilder |
dca260 |
def tearDown(self):
|
|
rdobuilder |
dca260 |
self._server.stop(None)
|
|
rdobuilder |
dca260 |
|
|
rdobuilder |
dca260 |
+ @unittest.skipIf('FEDORA_NO_NETWORK_TESTS' in os.environ,
|
|
rdobuilder |
dca260 |
+ 'Network tests disabled')
|
|
rdobuilder |
dca260 |
def test_connect_loopback(self):
|
|
rdobuilder |
dca260 |
# NOTE(https://github.com/grpc/grpc/issues/18422)
|
|
rdobuilder |
dca260 |
# In short, Gevent + C-Ares = Segfault. The C-Ares driver is not
|