summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls.py
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2021-11-18 17:04:04 +0300
committerAndrei Belov <defan@nginx.com>2021-11-18 17:04:04 +0300
commitb400ccd1aa8eeb6a5de1707e0bb8c3d417fe69b7 (patch)
tree60ff49ffc16ef7cb3aad1beb2d78f051a8794cdf /test/test_tls.py
parentfafd44166d9e835e91a4c5668048308ce99a62bd (diff)
parentb77895d1c7d6cd4826ac7427c91baa95b998a912 (diff)
downloadunit-b400ccd1aa8eeb6a5de1707e0bb8c3d417fe69b7.tar.gz
unit-b400ccd1aa8eeb6a5de1707e0bb8c3d417fe69b7.tar.bz2
Merged with the default branch.1.26.0-1
Diffstat (limited to 'test/test_tls.py')
-rw-r--r--test/test_tls.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/test_tls.py b/test/test_tls.py
index 546f0f89..01336765 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -5,7 +5,6 @@ import subprocess
import time
import pytest
-
from unit.applications.tls import TestApplicationTLS
from unit.option import option
@@ -33,7 +32,7 @@ class TestTLS(TestApplicationTLS):
def req(self, name='localhost', subject=None, x509=False):
subj = subject if subject is not None else '/CN=' + name + '/'
- subprocess.call(
+ subprocess.check_output(
[
'openssl',
'req',
@@ -88,7 +87,7 @@ basicConstraints = critical,CA:TRUE"""
f.write('')
def ca(self, cert='root', out='localhost'):
- subprocess.call(
+ subprocess.check_output(
[
'openssl',
'ca',
@@ -221,7 +220,7 @@ basicConstraints = critical,CA:TRUE"""
self.openssl_conf()
- subprocess.call(
+ subprocess.check_output(
[
'openssl',
'ecparam',
@@ -235,7 +234,7 @@ basicConstraints = critical,CA:TRUE"""
stderr=subprocess.STDOUT,
)
- subprocess.call(
+ subprocess.check_output(
[
'openssl',
'req',
@@ -590,9 +589,9 @@ basicConstraints = critical,CA:TRUE"""
app_id = self.findall(r'(\d+)#\d+ "mirror" application started')[0]
- subprocess.call(['kill', '-9', app_id])
+ subprocess.check_output(['kill', '-9', app_id])
- skip_alert(r'process %s exited on signal 9' % app_id)
+ skip_alert(r'process .* %s.* exited on signal 9' % app_id)
self.wait_for_record(
re.compile(
@@ -677,4 +676,3 @@ basicConstraints = critical,CA:TRUE"""
assert self.get_ssl()['status'] == 200, 'listener #1'
assert self.get_ssl(port=7081)['status'] == 200, 'listener #2'
-