Skip to content

Commit

Permalink
BEWARE Tests require openssl present
Browse files Browse the repository at this point in the history
```
======================================================================
ERROR: setUpClass (system_tests_tcp_adaptor_tls.TcpAdaptorOpenSSLTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/skupper-router/tests/system_test.py", line 374, in __init__
    super(Process, self).__init__(args, **kwargs)
  File "/usr/lib64/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.10/subprocess.py", line 1847, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'openssl'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/skupper-router/tests/system_tests_tcp_adaptor_tls.py", line 183, in setUpClass
    cls.openssl_server_alpn_http11 = openssl_server(listening_port=cls.openssl_server_listening_port_http11,
  File "/builddir/build/BUILD/skupper-router/tests/system_test.py", line 1222, in openssl_server
    return self.cleanup(OpenSSLServer(*args, **kwargs))
  File "/builddir/build/BUILD/skupper-router/tests/system_test.py", line 567, in __init__
    super(OpenSSLServer, self).__init__(self.openssl_server_cmd, name=name, expect=expect, **kwargs)
  File "/builddir/build/BUILD/skupper-router/tests/system_test.py", line 378, in __init__
    raise Exception("subprocess.Popen(%s, %s) failed: %s: %s" %
Exception: subprocess.Popen(['openssl', 's_server', '-accept', '23340', '-CAfile', '/builddir/build/BUILD/skupper-router/tests/ssl_certs/ca-certificate.pem', '-cert', '/builddir/build/BUILD/skupper-router/tests/ssl_certs/server-certificate.pem', '-key', '/builddir/build/BUILD/skupper-router/tests/ssl_certs/server-private-key.pem', '-pass', 'pass:server-password', '-alpn', 'http/1.1'], {'stdin': -1, 'stdout': <_io.TextIOWrapper name='/builddir/build/BUILD/skupper-router/redhat-linux-build/tests/system_test.dir/system_tests_tcp_adaptor_tls/TcpAdaptorOpenSSLTests/setUpClass/OpenSSLServerhttp11-25.out' mode='w' encoding='UTF-8'>, 'stderr': -2}) failed: FileNotFoundError: [Errno 2] No such file or directory: 'openssl'
```
  • Loading branch information
jiridanek committed Mar 28, 2023
1 parent 4448c8d commit 71ba533
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packaging/skupper-router.spec.rpkg
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ BuildRequires: asciidoc
BuildRequires: python3-qpid-proton >= %{proton_minimum_version}
# check ctest
BuildRequires: cyrus-sasl-plain
BuildRequires: openssl

# proton-c requirements
BuildRequires: openssl-devel
Expand Down

0 comments on commit 71ba533

Please sign in to comment.