Fix behave tests (#2656)

1. specify `subjectAltName=IP:127.0.0.1` when generating certificate
2. run more behave tests with psycopg2
This commit is contained in:
Alexander Kukushkin
2023-04-27 12:18:44 +02:00
committed by GitHub
parent 54b6d8186f
commit 4d35f85b87
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1060,7 +1060,8 @@ def before_all(context):
try:
with open(os.devnull, 'w') as null:
ret = subprocess.call(['openssl', 'req', '-nodes', '-new', '-x509', '-subj', '/CN=batman.patroni',
'-keyout', context.keyfile, '-out', context.certfile], stdout=null, stderr=null)
'--addext', 'subjectAltName=IP:127.0.0.1', '-keyout', context.keyfile,
'-out', context.certfile], stdout=null, stderr=null)
if ret != 0:
raise Exception
except Exception: