Deleted
Added
tls.py (1093:5c4e5fa30ac8) | tls.py (1099:090bf53b3100) |
---|---|
1import ssl 2import subprocess 3from unit.applications.proto import TestApplicationProto 4 5 6class TestApplicationTLS(TestApplicationProto): 7 def __init__(self, test): 8 super().__init__(test) --- 62 unchanged lines hidden (view full) --- 71default_bits = 2048 72encrypt_key = no 73distinguished_name = req_distinguished_name 74[ req_distinguished_name ]""" 75 ) 76 77 script_path = self.current_dir + '/python/' + script 78 | 1import ssl 2import subprocess 3from unit.applications.proto import TestApplicationProto 4 5 6class TestApplicationTLS(TestApplicationProto): 7 def __init__(self, test): 8 super().__init__(test) --- 62 unchanged lines hidden (view full) --- 71default_bits = 2048 72encrypt_key = no 73distinguished_name = req_distinguished_name 74[ req_distinguished_name ]""" 75 ) 76 77 script_path = self.current_dir + '/python/' + script 78 |
79 self.conf( | 79 self._load_conf( |
80 { 81 "listeners": {"*:7080": {"pass": "applications/" + name}}, 82 "applications": { 83 name: { 84 "type": "python", 85 "processes": {"spare": 0}, 86 "path": script_path, 87 "working_directory": script_path, 88 "module": "wsgi", 89 } 90 }, 91 } 92 ) | 80 { 81 "listeners": {"*:7080": {"pass": "applications/" + name}}, 82 "applications": { 83 name: { 84 "type": "python", 85 "processes": {"spare": 0}, 86 "path": script_path, 87 "working_directory": script_path, 88 "module": "wsgi", 89 } 90 }, 91 } 92 ) |