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

Michael Bradeen asteriskteam at digium.com
Tue May 10 10:08:21 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/+/18528

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

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: I55caad3cb2a156b8e3f2f24dd10db5ebe67910d2
---
M lib/python/asterisk/astconfigparser.py
M lib/python/asterisk/asterisk.py
M lib/python/asterisk/opensslversion.py
M lib/python/asterisk/pluggable_modules.py
M lib/python/asterisk/test_case.py
M lib/python/asterisk/test_config.py
M tests/apps/queues/transfer/caller_blind/test-config.yaml
M tests/channels/SIP/invite_retransmit/run-test
M tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
A tests/channels/SIP/sip_semi_attended_transfer_record_route/configs/ast1/extensions.conf
A tests/channels/SIP/sip_semi_attended_transfer_record_route/configs/ast1/sip.conf
A tests/channels/SIP/sip_semi_attended_transfer_record_route/sipp/referee.xml
A tests/channels/SIP/sip_semi_attended_transfer_record_route/sipp/referer_uas.xml
A tests/channels/SIP/sip_semi_attended_transfer_record_route/sipp/uac-no-hangup.xml
A tests/channels/SIP/sip_semi_attended_transfer_record_route/sipp/uas.xml
A tests/channels/SIP/sip_semi_attended_transfer_record_route/test-config.yaml
M tests/channels/SIP/tests.yaml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_semi_attended_transfer_record_route/configs/ast1/extensions.conf
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_semi_attended_transfer_record_route/configs/ast1/pjsip.conf
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_semi_attended_transfer_record_route/sipp/referee.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_semi_attended_transfer_record_route/sipp/referer_uas.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_semi_attended_transfer_record_route/sipp/uac-no-hangup.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_semi_attended_transfer_record_route/sipp/uas.xml
A tests/channels/pjsip/transfers/attended_transfer/nominal/callee_local_semi_attended_transfer_record_route/test-config.yaml
M tests/channels/pjsip/transfers/attended_transfer/nominal/tests.yaml
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/test-config.yaml
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/test-config.yaml
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/stasis_bridge_to_different_stasis_app/test-config.yaml
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/test-config.yaml
33 files changed, 1,605 insertions(+), 43 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/28/18528/2
-- 
To view, visit https://gerrit.asterisk.org/c/testsuite/+/18528
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: I55caad3cb2a156b8e3f2f24dd10db5ebe67910d2
Gerrit-Change-Number: 18528
Gerrit-PatchSet: 2
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-CC: Mark Petersen <bugs.digium.com at zombie.dk>
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/20220510/ecf4b0b4/attachment.html>


More information about the asterisk-code-review mailing list