[asterisk-bugs] [JIRA] (ASTERISK-27897) tests/manager/acl-login: An AMI Login was allowed which was not expected.

Alexander Traud (JIRA) noreply at issues.asterisk.org
Wed Jun 6 03:21:54 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243711#comment-243711 ] 

Alexander Traud commented on ASTERISK-27897:
--------------------------------------------

This issue does not happen on Ubuntu 16.04 LTS and the branch Asterisk 15.4. Here my steps for both systems:
{code}cd ~/Documents
sudo apt install build-essential pkg-config libedit-dev libjansson-dev libsqlite3-dev uuid-dev libxslt1-dev
sudo apt install libbfd-dev libcurl4-openssl-dev liblua5.1-0-dev libpython2.7-dev libspandsp-dev libspeexdsp-dev libsqlite0-dev libsrtp0-dev libssl-dev libunbound-dev xmlstarlet bash
wget downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
tar -zxf asterisk-*.tar.gz && rm asterisk-*.tar.gz
cd asterisk-*/
./configure --with-pjproject-bundled --enable-dev-mode
make menuselect.makeopts
./menuselect/menuselect --enable TEST_FRAMEWORK --enable DONT_OPTIMIZE --disable COMPILE_DOUBLE --enable BETTER_BACKTRACES --enable app_statsd --enable res_endpoint_stats --enable res_mwi_external --enable res_mwi_external_ami --enable res_stasis_mailbox --enable res_ari_mailboxes --enable codec_opus
#
# SIPp
#
cd ~/Documents
sudo apt install build-essential autoconf automake help2man libncurses5-dev patch libpcap-dev libssl-dev
wget github.com/SIPp/sipp/releases/download/v3.5.1/sipp-3.5.1.tar.gz
tar -zxf sipp-3.*.tar.gz && rm sipp-3.*.tar.gz
cd sipp-*/
wget github.com/SIPp/sipp/commit/10a7b8069f7147c40f278ad77fd0d48c1740274c.patch
patch -p1 <./10a7b8069f7147c40f278ad77fd0d48c1740274c.patch
./build.sh --enable-epoll --with-openssl --with-pcap
sudo make install
#
# yappcap
#
cd ~/Documents
sudo apt install build-essential cython libpcap-dev libpython2.7-dev
wget github.com/otherwiseguy/yappcap/archive/master.tar.gz
tar -zxf master.tar.gz && rm master.tar.gz
cd yappcap-*/
make
sudo make install
#
# Test Suite
#
cd ~/Documents
wget github.com/asterisk/testsuite/archive/13.tar.gz
tar -zxf master.tar.gz && rm master.tar.gz
#
# Test Suite (asttest)
#
cd ~/Documents/testsuite-*/
sudo apt install build-essential lua5.1 liblua5.1-0-dev pkg-config
cd ./asttest/
make
sudo make install
#
# Test Suite (starpy)
#
cd ~/Documents/testsuite-*/
sudo apt install git python-setuptools
make -C ./addons update
cd ./addons/starpy/
sudo python ./setup.py install
#
# Test Suite (run)
#
cd ~/Documents/testsuite-*/
sudo apt install python-autobahn python-construct python-lxml python-netifaces python-numpy python-pyxb python-requests python-twisted python-yaml
sudo ./runtests.py --list-tests{code}Because of ASTERISK-27717 (which is not solved, yet), you have to add
{{sudo apt install python-dev}}
For the test on Ubuntu 18.04 LTS, I did not go for the branch Asterisk 13 but the master branch.

> tests/manager/acl-login: An AMI Login was allowed which was not expected.
> -------------------------------------------------------------------------
>
>                 Key: ASTERISK-27897
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27897
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Tests/testsuite
>    Affects Versions: GIT
>         Environment: Ubuntu 18.04 LTS
>            Reporter: Alexander Traud
>
> {{tests/manager/acl-login}} from the Asterisk Test Suite fails for me constantly, with the following errors:{code}ami_connect: AMI  4: Login was allowed and it shouldn't have been.
> ami_connect: AMI  6: Login was allowed and it shouldn't have been.
> ami_connect: AMI  7: Login was allowed and it shouldn't have been.
> ami_connect: AMI  9: Login was allowed and it shouldn't have been.
> ami_connect: AMI 11: Login was allowed and it shouldn't have been.
> ami_connect: AMI 12: Login was allowed and it shouldn't have been.
> ami_connect: AMI 13: Login was allowed and it shouldn't have been.
> ami_connect: AMI 14: Login was allowed and it shouldn't have been.
> ami_connect: AMI 10: Login was allowed and it shouldn't have been.
> ami_connect: AMI 15: Login was allowed and it shouldn't have been.
> evaluate_success: An AMI login was allowed which was not expected.{code}The IDs change and shuffle, not sure if that matters. No idea what is causing this. Someone has to take over.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list