[Asterisk-code-review] testsuite: Python 3 compatibility inital commit (testsuite[development/16/python3])
Michael Bradeen
asteriskteam at digium.com
Tue Apr 26 16:10:46 CDT 2022
Attention is currently required from: Michael Bradeen, Joshua Colp.
Hello Kevin Harwell, 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 (#8).
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.
pjsua_mod changes to use pjsua2 instead of pjsua. Classes previously
using a wrapper method were switched to use inheritence and
consolodated.
phones similar to pjsua_mod, consolation of classes and use of
inheritence to devine call backs rom pjsua2.
working to remove all pjsua deps as pjsua2 call-back structure
isn't playing nicely with the testsuite
Change-Id: Ic7a1d72b174df59107370fcb03fae9dc4cdfc9d3
---
M addons/Makefile
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/phones.py
M lib/python/asterisk/pjsua_mod.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
A tests/apps/queues/redirect/sipp/alice-calls-101.xml
A tests/apps/queues/redirect/sipp/bob-registers.xml
A tests/apps/queues/redirect/sipp/bob-waits-for-a-call.xml
A tests/apps/queues/redirect/sipp/carol-calls-102.xml
M tests/apps/queues/redirect/test-config.yaml
A tests/apps/queues/transfer/caller_attended/sipp/alice-calls-101.xml
A tests/apps/queues/transfer/caller_attended/sipp/alice-calls-102.xml
A tests/apps/queues/transfer/caller_attended/sipp/bob-registers.xml
A tests/apps/queues/transfer/caller_attended/sipp/charlie-registers.xml
A tests/apps/queues/transfer/caller_attended/sipp/wait-for-a-call-then-send-bye.xml
A tests/apps/queues/transfer/caller_attended/sipp/wait-for-a-call.xml
M tests/apps/queues/transfer/caller_attended/test-config.yaml
A tests/apps/queues/transfer/caller_blind/sipp/alice-calls-101.xml
A tests/apps/queues/transfer/caller_blind/sipp/bob-registers.xml
A tests/apps/queues/transfer/caller_blind/sipp/charlie-registers.xml
A tests/apps/queues/transfer/caller_blind/sipp/wait-for-a-call-then-send-bye.xml
A tests/apps/queues/transfer/caller_blind/sipp/wait-for-a-call.xml
M tests/apps/queues/transfer/caller_blind/test-config.yaml
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
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_app/sipp/alice-calls-101.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_app/sipp/alice-registers.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_app/sipp/bob-calls-echo.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_app/sipp/bob-does-a-transfer.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_app/sipp/bob-registers.xml
M tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_app/test-config.yaml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_direct_media/sipp/alice-calls-101.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_direct_media/sipp/alice-registers.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_direct_media/sipp/bob-calls-echo.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_direct_media/sipp/bob-does-a-transfer.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_direct_media/sipp/bob-registers.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_direct_media/sipp/charlie-registers.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_direct_media/sipp/wait-for-a-call-then-send-bye.xml
M tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_direct_media/test-config.yaml
M tests/channels/pjsip/transfers/attended_transfer/nominal/caller_local_app/test-config.yaml
M tests/channels/pjsip/transfers/attended_transfer/nominal/caller_local_direct_media/test-config.yaml
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/attended_transfer/non_stasis_app_to_stasis_bridge/configs/ast1/pjsip.conf
A tests/rest_api/external_interaction/attended_transfer/non_stasis_app_to_stasis_bridge/sipp/referee.xml
A tests/rest_api/external_interaction/attended_transfer/non_stasis_app_to_stasis_bridge/sipp/referer.xml
A tests/rest_api/external_interaction/attended_transfer/non_stasis_app_to_stasis_bridge/sipp/wait-for-a-call.xml
M tests/rest_api/external_interaction/attended_transfer/non_stasis_app_to_stasis_bridge/test-config.yaml
M tests/rest_api/external_interaction/attended_transfer/non_stasis_bridge_to_stasis_bridge/configs/ast1/pjsip.conf
A tests/rest_api/external_interaction/attended_transfer/non_stasis_bridge_to_stasis_bridge/sipp/referee.xml
A tests/rest_api/external_interaction/attended_transfer/non_stasis_bridge_to_stasis_bridge/sipp/referer.xml
A tests/rest_api/external_interaction/attended_transfer/non_stasis_bridge_to_stasis_bridge/sipp/wait-for-a-call.xml
M tests/rest_api/external_interaction/attended_transfer/non_stasis_bridge_to_stasis_bridge/test-config.yaml
M tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_non_stasis_app/test-config.yaml
M tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_app/test-config.yaml
M tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/different_stasis_app/configs/ast1/pjsip.conf
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/different_stasis_app/sipp/referee.xml
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/different_stasis_app/sipp/referer.xml
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/different_stasis_app/sipp/wait-for-a-call.xml
M tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/different_stasis_app/test-config.yaml
M tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app/configs/ast1/pjsip.conf
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app/sipp/referee.xml
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app/sipp/referer.xml
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app/sipp/wait-for-a-call.xml
M tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app/test-config.yaml
M tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app_accepted/configs/ast1/pjsip.conf
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app_accepted/sipp/referee.xml
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app_accepted/sipp/referer.xml
A tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app_accepted/sipp/wait-for-a-call.xml
M tests/rest_api/external_interaction/attended_transfer/stasis_bridge_to_stasis_bridge/same_stasis_app_accepted/test-config.yaml
M tests/rest_api/external_interaction/blind_transfer/call_transfer.py
M tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_different_stasis_app/configs/ast1/pjsip.conf
A tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_different_stasis_app/sipp/alice-calls.xml
A tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_different_stasis_app/sipp/bob-calls.xml
M tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_different_stasis_app/test-config.yaml
D tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_non_stasis_app/blind_transfer.py
M tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_non_stasis_app/configs/ast1/pjsip.conf
A tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_non_stasis_app/sipp/alice-calls.xml
A tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_non_stasis_app/sipp/bob-calls.xml
M tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_non_stasis_app/test-config.yaml
M tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_same_stasis_app/configs/ast1/pjsip.conf
A tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_same_stasis_app/sipp/alice-calls.xml
A tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_same_stasis_app/sipp/bob-calls.xml
M tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_same_stasis_app/test-config.yaml
A tests/rest_api/external_interaction/extension_bank.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
171 files changed, 6,289 insertions(+), 1,642 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/99/18199/8
--
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: 8
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-CC: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220426/5c606cd6/attachment-0001.html>
More information about the asterisk-code-review
mailing list