diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-07 11:42:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-07 11:42:03 +0100 |
commit | f70601e0934acd62f6c5d06c5ede4cc607179514 (patch) | |
tree | 0b337390375de04b950fc4b45edc0f895a4701a4 /app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch | |
parent | b2be182d49eea46686b5cf2680d457df61e89dc4 (diff) |
gentoo resync : 07.07.2018
Diffstat (limited to 'app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch')
-rw-r--r-- | app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch b/app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch new file mode 100644 index 000000000000..7b94fafd447d --- /dev/null +++ b/app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch @@ -0,0 +1,79 @@ +diff --git a/tests/unit/transport/test_zeromq.py b/tests/unit/transport/test_zeromq.py +index ccb337462e..97d2962e5e 100644 +--- a/tests/unit/transport/test_zeromq.py ++++ b/tests/unit/transport/test_zeromq.py +@@ -45,6 +45,10 @@ ON_SUSE = False + if 'SuSE' in linux_distribution(full_distribution_name=False): + ON_SUSE = True + ++ON_GENTOO = False ++if 'Gentoo' in linux_distribution(full_distribution_name=False): ++ ON_GENTOO = True ++ + + class BaseZMQReqCase(TestCase, AdaptedConfigurationTestCaseMixin): + ''' +@@ -122,63 +126,6 @@ class BaseZMQReqCase(TestCase, AdaptedConfigurationTestCaseMixin): + return payload, {'fun': 'send_clear'} + + +-class ClearReqTestCases(BaseZMQReqCase, ReqChannelMixin): +- ''' +- Test all of the clear msg stuff +- ''' +- def setUp(self): +- self.channel = salt.transport.client.ReqChannel.factory(self.minion_config, crypt='clear') +- +- def tearDown(self): +- del self.channel +- +- @classmethod +- @tornado.gen.coroutine +- def _handle_payload(cls, payload): +- ''' +- TODO: something besides echo +- ''' +- raise tornado.gen.Return((payload, {'fun': 'send_clear'})) +- +- +-@flaky +-@skipIf(ON_SUSE, 'Skipping until https://github.com/saltstack/salt/issues/32902 gets fixed') +-class AESReqTestCases(BaseZMQReqCase, ReqChannelMixin): +- def setUp(self): +- self.channel = salt.transport.client.ReqChannel.factory(self.minion_config) +- +- def tearDown(self): +- del self.channel +- +- @classmethod +- @tornado.gen.coroutine +- def _handle_payload(cls, payload): +- ''' +- TODO: something besides echo +- ''' +- raise tornado.gen.Return((payload, {'fun': 'send'})) +- +- # TODO: make failed returns have a specific framing so we can raise the same exception +- # on encrypted channels +- # +- #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +- # +- # WARNING: This test will fail randomly on any system with > 1 CPU core!!! +- # +- #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +- def test_badload(self): +- ''' +- Test a variety of bad requests, make sure that we get some sort of error +- ''' +- # TODO: This test should be re-enabled when Jenkins moves to C7. +- # Once the version of salt-testing is increased to something newer than the September +- # release of salt-testing, the @flaky decorator should be applied to this test. +- msgs = ['', [], tuple()] +- for msg in msgs: +- with self.assertRaises(salt.exceptions.AuthenticationError): +- ret = self.channel.send(msg, timeout=5) +- +- + class BaseZMQPubCase(AsyncTestCase, AdaptedConfigurationTestCaseMixin): + ''' + Test the req server/client pair |