summaryrefslogtreecommitdiffhomepage
path: root/test/test_configuration.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-03-06 16:58:47 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-03-06 16:58:47 +0300
commit30a32c2f09d954ee85be86e202828eab851311d6 (patch)
tree31d13b1163fe242cd51e5cbd7a4cb81887f4580b /test/test_configuration.py
parent912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 (diff)
downloadunit-30a32c2f09d954ee85be86e202828eab851311d6.tar.gz
unit-30a32c2f09d954ee85be86e202828eab851311d6.tar.bz2
Tests: detect alerts and Sanitizer errors.
Diffstat (limited to 'test/test_configuration.py')
-rw-r--r--test/test_configuration.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index 82638507..97ed1914 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -62,6 +62,12 @@ class TestUnitConfiguration(unit.TestUnitControl):
self.assertIn('error', self.conf('"{}"', '/applications'), 'string')
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"
@@ -120,6 +126,13 @@ class TestUnitConfiguration(unit.TestUnitControl):
@unittest.expectedFailure
def test_listeners_empty(self):
+ self.skip_sanitizer = True
+ self.skip_alerts.extend([
+ r'nxt_lvlhsh_is_empty\(&port->rpc_streams\)',
+ r'sendmsg.+failed',
+ r'process \d+ exited on signal'
+ ])
+
self.assertIn('error', self.conf({"*:7080":{}}, '/listeners'),
'listener empty')
@@ -179,6 +192,12 @@ class TestUnitConfiguration(unit.TestUnitControl):
}), 'explicit ipv6')
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({
"listeners": {
"127.0.0.1": {