[Asterisk-code-review] testsuite: Python 3 compatibility inital commit (testsuite[development/16/python3])

Michael Bradeen asteriskteam at digium.com
Mon Mar 21 14:25:01 CDT 2022


Attention is currently required from: Michael Bradeen.
Hello Friendly Automation, 

I'd like you to reexamine a change. Please visit

    https://gerrit.asterisk.org/c/testsuite/+/18199

to look at the new patch set (#5).

Change subject: testsuite: Python 3 compatibility inital commit
......................................................................

testsuite: Python 3 compatibility inital commit

Multiple changes for compatibility.  Requires latest version of all
pre-requisites and assumes a change in starpy to replace the now
protected data field async with asyncrn.

Changes also to print, replaced old library references, broke up
sub-parameters, etc.

Twisted input to realtime is bytes, while internally strings are used
so multiple changes required in order to convert back and forth

rest_api multiple removals of xrange in favor of range and making
sure that all calls to write to stdout are in byte format

rls required a change to use BytiesIO and a bytestring

Change-Id: Ic7a1d72b174df59107370fcb03fae9dc4cdfc9d3
---
M contrib/scripts/cel-to-yaml.py
M contrib/scripts/install_prereq
M contrib/scripts/rlmi_demo.py
M lib/python/asterisk/astdicts.py
M lib/python/asterisk/matcher_listener.py
M lib/python/asterisk/pcap.py
M lib/python/asterisk/pluggable_modules.py
M lib/python/asterisk/realtime_test_module.py
M lib/python/asterisk/sipp.py
M lib/python/asterisk/syncami.py
M lib/python/asterisk/test_case.py
M lib/python/asterisk/test_runner.py
M lib/python/protocols/ipstack.py
M lib/python/protocols/layer4/tcp.py
M lib/python/qm.py
M lib/python/rlmi.py
M runtests.py
M tests/agi/nominal/run-test
M tests/apps/chanspy/chanspy_w_mixmonitor/run-test
M tests/apps/directory/directory_attendant_exit/run-test
M tests/apps/directory/directory_context_operator_exit/run-test
M tests/apps/directory/directory_operator_exit/run-test
M tests/apps/voicemail/check_voicemail_options_change_password/voicemailpwcheck.py
M tests/blind-transfer-parkingtimeout/run-test
M tests/bridge/bridge_action/bridge_action.py
M tests/channels/SIP/noload_res_srtp/run-test
M tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test
M tests/channels/SIP/refer_replaces_to_self/run-test
M tests/channels/SIP/secure_bridge_media/run-test
M tests/channels/SIP/sip_attended_transfer_tcp/run-test
M tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
M tests/channels/SIP/sip_blind_transfer/callee_with_reinvite/run-test
M tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test
M tests/channels/SIP/sip_blind_transfer/caller_with_reinvite/run-test
M tests/channels/SIP/sip_one_legged_transfer/run-test
M tests/channels/SIP/sip_one_legged_transfer_v6/run-test
M tests/channels/SIP/sip_srtp/srtp_call/run-test
M tests/channels/SIP/tcpauthtimeout/timeout_should_happen/timeout.py
M tests/channels/pjsip/resolver/naptr/explicit_transport_configured/dns_zones/example.com
M tests/channels/pjsip/resolver/naptr/order/dns_zones/example.com
M tests/channels/pjsip/resolver/naptr/preference/dns_zones/example.com
M tests/channels/pjsip/resolver/naptr/preference_failover/dns_zones/example.com
M tests/channels/pjsip/resolver/naptr/restricted_transport/dns_zones/example.com
M tests/channels/pjsip/resolver/naptr/transport_tcp/dns_zones/example.com
M tests/channels/pjsip/resolver/naptr/transport_udp/dns_zones/example.com
M tests/channels/pjsip/resolver/naptr/transport_unspecified/dns_zones/example.com
M tests/channels/pjsip/rtp/bind_rtp_to_media_address/rtp.py
M tests/channels/pjsip/rtp/rtp_keepalive/base/rtp.py
M tests/channels/pjsip/rtp/rtp_keepalive/direct_media/rtp.py
M tests/channels/pjsip/subscriptions/rls/rls_element.py
M tests/channels/pjsip/subscriptions/rls/rls_test.py
M tests/channels/pjsip/transfers/blind_transfer/callee_refer_only/transfer.py
M tests/channels/pjsip/transfers/blind_transfer/caller_refer_only/transfer.py
M tests/codecs/audio_analyzer.py
M tests/fastagi/channel-status/run-test
M tests/fastagi/connect/run-test
M tests/fastagi/database/run-test
M tests/fastagi/record-file/run-test
M tests/fastagi/stream-file/run-test
M tests/fastagi/wait-for-digit/run-test
M tests/fax/pjsip/t38_fast_reject/check_reinvite_rtt.py
M tests/fax/sip/gateway_g711_t38/run-test
M tests/fax/sip/gateway_mix1/run-test
M tests/fax/sip/gateway_mix2/run-test
M tests/fax/sip/gateway_mix3/run-test
M tests/fax/sip/gateway_mix4/run-test
M tests/fax/sip/gateway_native_t38/run-test
M tests/fax/sip/gateway_native_t38_ced/run-test
M tests/fax/sip/gateway_no_t38/run-test
M tests/fax/sip/gateway_t38_g711/run-test
M tests/fax/sip/gateway_timeout1/run-test
M tests/fax/sip/gateway_timeout2/run-test
M tests/fax/sip/gateway_timeout3/run-test
M tests/fax/sip/gateway_timeout4/run-test
M tests/fax/sip/gateway_timeout5/run-test
M tests/funcs/func_srv/run-test
M tests/hep/hep_capture_node.py
M tests/manager/userevent/event.py
M tests/masquerade/run-test
M tests/pbx/dialplan_save/run-test
M tests/pbx/merge_contexts/run-test
M tests/pbx/pbx_lua_background/run-test
M tests/pbx/pbx_lua_goto/run-test
M tests/rest_api/applications/stasisstatus/test_case.py
M tests/rest_api/bridges/add_recording_channel/add_recording_channel.py
M tests/rest_api/channels/originate/channel_originate.py
M tests/rest_api/channels/redirect/nominal/run-test
M tests/rest_api/chunked-transfer/run-test
M tests/rest_api/device_state/add_invalid/device_state.py
M tests/rest_api/external_interaction/blind_transfer/call_transfer.py
M tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_non_stasis_app/blind_transfer.py
M tests/rest_api/request-bodies/run-test
M tests/rtp/strict_rtp/strict_rtp_seqno/strict_rtp.py
M tests/rtp/strict_rtp/strict_rtp_yes/strict_rtp.py
94 files changed, 626 insertions(+), 561 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/99/18199/5
-- 
To view, visit https://gerrit.asterisk.org/c/testsuite/+/18199
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: development/16/python3
Gerrit-Change-Id: Ic7a1d72b174df59107370fcb03fae9dc4cdfc9d3
Gerrit-Change-Number: 18199
Gerrit-PatchSet: 5
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Attention: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220321/37314b48/attachment.html>


More information about the asterisk-code-review mailing list