behaving
behaving copied to clipboard
Issue: Python 3.9-slim-bullseye to 3.13-slim-bullseye gives SMS/GCM errors during testing
see: https://github.com/ggozad/behaving/pull/147
Failing scenarios:
tests/features/gcm.feature:4 Receive GCM notifications
tests/features/mail.feature:4 Receive email
tests/features/mail.feature:11 Send Receive email with non ANSII subject
tests/features/mail.feature:23 Receive email with attachment
tests/features/mail.feature:29 Click link in an email
tests/features/mail.feature:36 Parse email and set persona variable
tests/features/mail.feature:43 International friendly
tests/features/mail.feature:53 No messages received
tests/features/sms.feature:4 Receive SMSs
tests/features/sms.feature:9 Receive SMS with body
tests/features/sms.feature:17 Persona variables from sms
File "/usr/local/lib/python3.13/smtplib.py", line 312, in _get_socket
return socket.create_connection((host, port), timeout,
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
self.source_address)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/socket.py", line 864, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.13/socket.py", line 849, in create_connection
sock.connect(sa)
~~~~~~~~~~~~^^^^
ConnectionRefusedError: [Errno 111] Connection refused
and
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/behave/model.py", line 1329, in run
match.run(runner.context)
~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/behave/matchers.py", line 98, in run
self.func(context, *args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/behaving/personas/persona.py", line 52, in replace
self.func.call(*args, **kwargs)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/app/src/behaving/sms/steps.py", line 55, in send_sms
urlopen(req)
~~~~~~~^^^^^
File "/usr/local/lib/python3.13/urllib/request.py", line 189, in urlopen
return opener.open(url, data, timeout)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/urllib/request.py", line 489, in open
response = self._open(req, data)
File "/usr/local/lib/python3.13/urllib/request.py", line 506, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
'_open', req)
File "/usr/local/lib/python3.13/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.13/urllib/request.py", line 1348, in http_open
return self.do_open(http.client.HTTPConnection, req)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/urllib/request.py", line 1322, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>