summaryrefslogtreecommitdiffhomepage
path: root/test/test_configuration.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-05-30 16:46:04 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-05-30 16:46:04 +0300
commit90c5d3f5c0ad42ccdb764684f721b511131e0782 (patch)
tree5ea5423e5084feee9d8d965be5e2e7bcb4a8d121 /test/test_configuration.py
parent7ad4a7670470872d78d2f552efa346a66ed4845e (diff)
downloadunit-90c5d3f5c0ad42ccdb764684f721b511131e0782.tar.gz
unit-90c5d3f5c0ad42ccdb764684f721b511131e0782.tar.bz2
Tests: adjusted skipping tests.
Diffstat (limited to 'test/test_configuration.py')
-rw-r--r--test/test_configuration.py37
1 files changed, 4 insertions, 33 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index 51c6f6a2..6e59c0a7 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -89,15 +89,8 @@ class TestConfiguration(TestControl):
def test_applications_string(self):
self.assertIn('error', self.conf('"{}"', 'applications'), 'string')
+ @unittest.skip('not yet, unsafe')
def test_applications_type_only(self):
- self.skip_alerts.extend(
- [
- r'python module is empty',
- r'failed to apply new conf',
- r'process \d+ exited on signal',
- ]
- )
-
self.assertIn(
'error',
self.conf({"app": {"type": "python"}}, 'applications'),
@@ -183,16 +176,8 @@ class TestConfiguration(TestControl):
'relative path',
)
- @unittest.expectedFailure
+ @unittest.skip('not yet, unsafe')
def test_listeners_empty(self):
- self.skip_sanitizer = True
- self.skip_alerts.extend(
- [
- r'failed to apply previous configuration',
- r'process \d+ exited on signal',
- ]
- )
-
self.assertIn(
'error', self.conf({"*:7080": {}}, 'listeners'), 'listener empty'
)
@@ -261,15 +246,8 @@ class TestConfiguration(TestControl):
'explicit ipv6',
)
+ @unittest.skip('not yet, unsafe')
def test_listeners_no_port(self):
- self.skip_alerts.extend(
- [
- r'invalid listener "127\.0\.0\.1"',
- r'failed to apply new conf',
- r'process \d+ exited on signal',
- ]
- )
-
self.assertIn(
'error',
self.conf(
@@ -308,11 +286,8 @@ class TestConfiguration(TestControl):
),
)
- @unittest.expectedFailure
+ @unittest.skip('not yet')
def test_json_application_many(self):
- self.skip_alerts.extend(
- [r'eventfd.+failed', r'epoll.+failed', r'failed to apply']
- )
apps = 999
conf = {
@@ -335,10 +310,6 @@ class TestConfiguration(TestControl):
self.assertIn('success', self.conf(conf))
def test_json_application_many2(self):
- self.skip_alerts.extend(
- [r'eventfd.+failed', r'epoll.+failed', r'failed to apply']
- )
-
conf = {
"applications": {
"app-"