[svn-commits] gtjoseph: testsuite/asterisk/trunk r6098 - in /asterisk/trunk/tests/channels/...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Dec 15 11:50:21 CST 2014


Author: gtjoseph
Date: Mon Dec 15 11:50:15 2014
New Revision: 6098

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=6098
Log:
Testsuite: tests for res_pjsip_config_wizard

These are the tests for res_pjsip_config_wizard.
When I cloned AMISendTest, I made a small change that might be usefull
for other AMI tests...  You now specify the ACTION in test-config.yaml
rather than having ACTION hard coded in AMISendTest.py and the results
in test-config.yaml.

Tested-by: George Joseph

Review: https://reviewboard.asterisk.org/r/4172/


Added:
    asterisk/trunk/tests/channels/pjsip/config_wizard/
    asterisk/trunk/tests/channels/pjsip/config_wizard/AMISendTest.py   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/phone/
    asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/
    asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip_wizard.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/phone/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/registration/
    asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/
    asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip_wizard.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/registration/test-config.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/tests.yaml   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/
    asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/
    asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip_wizard.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/test-config.yaml   (with props)
Modified:
    asterisk/trunk/tests/channels/pjsip/tests.yaml

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/AMISendTest.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/AMISendTest.py?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/AMISendTest.py (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/AMISendTest.py Mon Dec 15 11:50:15 2014
@@ -1,0 +1,36 @@
+#!/usr/bin/env python
+'''
+Copyright (C) 2013, Digium, Inc.
+Kevin Harwell <kharwell at digium.com>
+George Joseph <george.joseph at fairview5.com>
+
+This program is free software, distributed under the terms of
+the GNU General Public License Version 2.
+'''
+
+import sys
+
+sys.path.append("lib/python/asterisk")
+
+from test_case import TestCase
+
+class AMISendTest(TestCase):
+    def __init__(self, path=None, config=None):
+        super(AMISendTest, self).__init__(path, config)
+        self.config = config
+        self.action = config.get('ACTION')
+        if not self.action:
+            raise Exception('"ACTION" was not defined in test-config.yaml')
+        self.create_asterisk()
+
+    def run(self):
+        super(AMISendTest, self).run()
+        self.create_ami_factory()
+
+    def ami_connect(self, ami):
+        ami.sendDeferred(self.action).addCallback(self.__on_response)
+
+    def __on_response(self, result):
+        # stop test since done
+        self.stop_reactor()
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/AMISendTest.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/AMISendTest.py
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/AMISendTest.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip.conf?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip.conf Mon Dec 15 11:50:15 2014
@@ -1,0 +1,5 @@
+[ipv4]
+type=transport
+protocol=udp
+bind=0.0.0.0
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip_wizard.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip_wizard.conf?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip_wizard.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip_wizard.conf Mon Dec 15 11:50:15 2014
@@ -1,0 +1,11 @@
+[phone1]
+type = wizard
+accepts_auth = yes
+accepts_registrations = yes
+transport = ipv4
+endpoint/from_domain = test_domain
+aor/max_contacts = 7
+inbound_auth/username = testuser
+inbound_auth/password = testpass
+endpoint/direct_media = no
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/phone/test-config.yaml?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/phone/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/phone/test-config.yaml Mon Dec 15 11:50:15 2014
@@ -1,0 +1,205 @@
+testinfo:
+    summary: 'Test PJSIP Config Wizard Phone'
+    description: |
+        Tests the PJSIP Config Wizard to make sure the
+        objects created are the same as discretely defined objects.
+
+properties:
+    minversion: '13.2.0'
+    dependencies:
+        - asterisk : 'res_pjsip'
+        - asterisk : 'res_pjsip_config_wizard'
+
+    tags:
+        - pjsip
+
+test-modules:
+    # allow test_runner to find and run the local test
+    add-test-to-search-path: 'True'
+    add-relative-to-search-path: ['../']
+    test-object:
+        config-section: object-config
+        typename: 'AMISendTest.AMISendTest'
+    modules:
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+object-config:
+    reactor-timeout: 15
+    ACTION: { "Action": "PJSIPShowEndpoint", "ActionID": "12345", "Endpoint": "phone1" }
+
+ami-config:
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'EndpointDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'endpoint'
+                    ObjectName: 'phone1'
+                    SrtpTag32: 'false'
+                    DtlsSetup: 'active'
+                    DtlsCaPath: ''
+                    DtlsCaFile: ''
+                    DtlsCipher: ''
+                    DtlsPrivateKey: ''
+                    DtlsCertFile: ''
+                    DtlsRekey: '0'
+                    DtlsVerify: 'No'
+                    RtpEngine: 'asterisk'
+                    MwiFromUser: ''
+                    FromDomain: 'test_domain'
+                    FromUser: ''
+                    SubMinExpiry: '0'
+                    AllowSubscribe: 'true'
+                    CosVideo: '0'
+                    CosAudio: '0'
+                    TosVideo: '0'
+                    TosAudio: '0'
+                    SdpSession: 'Asterisk'
+                    SdpOwner: '-'
+                    AllowTransfer: 'true'
+                    RecordOffFeature: 'automixmon'
+                    RecordOnFeature: 'automixmon'
+                    Language: ''
+                    ToneZone: ''
+                    T38UdptlIpv6: 'false'
+                    T38UdptlNat: 'false'
+                    FaxDetect: 'false'
+                    T38UdptlMaxdatagram: '0'
+                    T38UdptlEc: 'none'
+                    T38Udptl: 'false'
+                    DeviceStateBusyAt: '0'
+                    NamedPickupGroup: ''
+                    NamedCallGroup: ''
+                    PickupGroup: ''
+                    CallGroup: ''
+                    InbandProgress: 'false'
+                    OneTouchRecording: 'false'
+                    UseAvpf: 'false'
+                    MediaEncryption: 'none'
+                    AggregateMwi: 'true'
+                    Mailboxes: ''
+                    SendDiversion: 'true'
+                    SendRpid: 'false'
+                    SendPai: 'false'
+                    TrustIdOutbound: 'false'
+                    TrustIdInbound: 'false'
+                    CalleridTag: ''
+                    CalleridPrivacy: 'allowed_not_screened'
+                    Callerid: '<unknown>'
+                    DisableDirectMediaOnNat: 'false'
+                    DirectMediaGlareMitigation: 'none'
+                    ConnectedLineMethod: 'invite'
+                    DirectMediaMethod: 'invite'
+                    DirectMedia: 'false'
+                    IdentifyBy: 'username'
+                    MediaAddress: ''
+                    Aors: 'phone1'
+                    OutboundAuth: ''
+                    Auth: 'phone1-iauth'
+                    TimersSessExpires: '1800'
+                    TimersMinSe: '90'
+                    Timers: 'yes'
+                    100rel: 'yes'
+                    MohSuggest: 'default'
+                    OutboundProxy: ''
+                    Transport: 'ipv4'
+                    RewriteContact: 'false'
+                    ForceRport: 'true'
+                    UsePtime: 'false'
+                    IceSupport: 'false'
+                    RtpSymmetric: 'false'
+                    RtpIpv6: 'false'
+                    DtmfMode: 'rfc4733'
+                    Context: 'default'
+                    DeviceState: 'Invalid|Not in use|Unavailable'
+                    ActiveChannels: ''
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'AorDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: aor
+                    ObjectName: phone1
+                    Mailboxes: ''
+                    RemoveExisting: 'false'
+                    MaxContacts: '7'
+                    AuthenticateQualify: 'false'
+                    QualifyFrequency: '0'
+                    DefaultExpiration: '3600'
+                    MaximumExpiration: '7200'
+                    MinimumExpiration: '60'
+                    Contacts: ''
+                    TotalContacts: '0'
+                    ContactsRegistered: '0'
+                    EndpointName: 'phone1'
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'AuthDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'auth'
+                    ObjectName: 'phone1-iauth'
+                    AuthType: 'userpass'
+                    NonceLifetime: '32'
+                    Realm: ''
+                    Md5Cred: ''
+                    Password: 'testpass'
+                    Username: 'testuser'
+                    EndpointName: 'phone1'
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'TransportDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'transport'
+                    ObjectName: 'ipv4'
+                    Cos: '0'
+                    Tos: '0'
+                    LocalNet: ''
+                    Cipher: ''
+                    Method: 'unspecified'
+                    RequireClientCert: 'No'
+                    VerifyClient: 'No'
+                    VerifyServer: 'No'
+                    Domain: ''
+                    ExternalMediaAddress: ''
+                    ExternalSignalingPort: '0'
+                    ExternalSignalingAddress: ''
+                    Password: ''
+                    PrivKeyFile: ''
+                    CertFile: ''
+                    CaListFile: ''
+                    AsyncOperations: '1'
+                    Bind: '0.0.0.0:5060'
+                    Protocol: 'udp'
+                    EndpointName: 'phone1'
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'EndpointDetailComplete'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    EventList: 'Complete'
+                    ListItems: '4'
+            count: 1
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/phone/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip.conf?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip.conf Mon Dec 15 11:50:15 2014
@@ -1,0 +1,5 @@
+[ipv4]
+type=transport
+protocol=udp
+bind=0.0.0.0
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip_wizard.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip_wizard.conf?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip_wizard.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip_wizard.conf Mon Dec 15 11:50:15 2014
@@ -1,0 +1,13 @@
+[trunk1]
+type = wizard
+sends_auth = yes
+sends_registrations = yes
+transport = ipv4
+remote_hosts = 127.0.0.5:41060,127.0.0.6:41070
+endpoint/from_domain = test_domain
+outbound_auth/username = testuser
+outbound_auth/password = testpass
+endpoint/direct_media = no
+registration/retry_interval = 38
+
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/registration/test-config.yaml?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/registration/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/registration/test-config.yaml Mon Dec 15 11:50:15 2014
@@ -1,0 +1,88 @@
+testinfo:
+    summary: 'Test PJSIP Config Wizard Outbound Registration'
+    description: |
+        Tests the PJSIP Config Wizard to make sure the
+        objects created are the same as discretely defined objects.
+
+properties:
+    minversion: '13.2.0'
+    dependencies:
+        - asterisk : 'res_pjsip'
+        - asterisk : 'res_pjsip_config_wizard'
+        - asterisk : 'res_pjsip_endpoint_identifier_ip'
+        - asterisk : 'res_pjsip_outbound_registration'
+
+    tags:
+        - pjsip
+
+test-modules:
+    # allow test_runner to find and run the local test
+    add-test-to-search-path: 'True'
+    add-relative-to-search-path: ['../']
+    test-object:
+        config-section: object-config
+        typename: 'AMISendTest.AMISendTest'
+    modules:
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+object-config:
+    reactor-timeout: 15
+    ACTION: { "Action": "PJSIPShowRegistrationsOutbound", "ActionID": "12345" }
+
+ami-config:
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'OutboundRegistrationDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'registration'
+                    ObjectName: 'trunk1-reg-*'
+                    OutboundAuth: 'trunk1-oauth'
+                    AuthRejectionPermanent: 'true'
+                    MaxRetries: '10'
+                    ForbiddenRetryInterval: '0'
+                    RetryInterval: '38'
+                    Expiration: '3600'
+                    OutboundProxy: ''
+                    Transport: 'ipv4'
+                    ContactUser: ''
+                    ClientUri: 'sip:testuser at 127.*'
+                    ServerUri: 'sip:127.*'
+                    Status: 'Unregistered|Rejected'
+                    NextReg: '0'
+            count: 2
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'AuthDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'auth'
+                    ObjectName: 'trunk1-oauth'
+                    AuthType: 'userpass'
+                    NonceLifetime: '32'
+                    Realm: ''
+                    Md5Cred: ''
+                    Password: 'testpass'
+                    Username: 'testuser'
+
+            count: 2
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'OutboundRegistrationDetailComplete'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    EventList: 'Complete'
+                    Registered: '0'
+                    NotRegistered: '2'
+            count: 1

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/registration/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/tests.yaml?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/tests.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/tests.yaml Mon Dec 15 11:50:15 2014
@@ -1,0 +1,5 @@
+# Enter tests here in the order they should be considered for execution:
+tests:
+    - test: 'phone'
+    - test: 'trunk'
+    - test: 'registration'

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/tests.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/tests.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/tests.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip.conf?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip.conf Mon Dec 15 11:50:15 2014
@@ -1,0 +1,5 @@
+[ipv4]
+type=transport
+protocol=udp
+bind=0.0.0.0
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip_wizard.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip_wizard.conf?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip_wizard.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip_wizard.conf Mon Dec 15 11:50:15 2014
@@ -1,0 +1,13 @@
+[trunk1]
+type = wizard
+sends_auth = yes
+sends_registrations = yes
+transport = ipv4
+remote_hosts = 127.0.0.5:41060,127.0.0.6:41070
+endpoint/from_domain = test_domain
+outbound_auth/username = testuser
+outbound_auth/password = testpass
+endpoint/direct_media = no
+registration/retry_interval = 38
+
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/configs/ast1/pjsip_wizard.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/test-config.yaml?view=auto&rev=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/test-config.yaml Mon Dec 15 11:50:15 2014
@@ -1,0 +1,232 @@
+testinfo:
+    summary: 'Test PJSIP Config Wizard Trunk'
+    description: |
+        Tests the PJSIP Config Wizard to make sure the
+        objects created are the same as discretely defined objects.
+
+properties:
+    minversion: '13.2.0'
+    dependencies:
+        - asterisk : 'res_pjsip'
+        - asterisk : 'res_pjsip_config_wizard'
+        - asterisk : 'res_pjsip_endpoint_identifier_ip'
+        - asterisk : 'res_pjsip_outbound_registration'
+
+    tags:
+        - pjsip
+
+test-modules:
+    # allow test_runner to find and run the local test
+    add-test-to-search-path: 'True'
+    add-relative-to-search-path: ['../']
+    test-object:
+        config-section: object-config
+        typename: 'AMISendTest.AMISendTest'
+    modules:
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+object-config:
+    reactor-timeout: 15
+    ACTION: { "Action": "PJSIPShowEndpoint", "ActionID": "12345", "Endpoint": "trunk1" }
+
+ami-config:
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'EndpointDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'endpoint'
+                    ObjectName: 'trunk1'
+                    SrtpTag32: 'false'
+                    DtlsSetup: 'active'
+                    DtlsCaPath: ''
+                    DtlsCaFile: ''
+                    DtlsCipher: ''
+                    DtlsPrivateKey: ''
+                    DtlsCertFile: ''
+                    DtlsRekey: '0'
+                    DtlsVerify: 'No'
+                    RtpEngine: 'asterisk'
+                    MwiFromUser: ''
+                    FromDomain: 'test_domain'
+                    FromUser: ''
+                    SubMinExpiry: '0'
+                    AllowSubscribe: 'true'
+                    CosVideo: '0'
+                    CosAudio: '0'
+                    TosVideo: '0'
+                    TosAudio: '0'
+                    SdpSession: 'Asterisk'
+                    SdpOwner: '-'
+                    AllowTransfer: 'true'
+                    RecordOffFeature: 'automixmon'
+                    RecordOnFeature: 'automixmon'
+                    Language: ''
+                    ToneZone: ''
+                    T38UdptlIpv6: 'false'
+                    T38UdptlNat: 'false'
+                    FaxDetect: 'false'
+                    T38UdptlMaxdatagram: '0'
+                    T38UdptlEc: 'none'
+                    T38Udptl: 'false'
+                    DeviceStateBusyAt: '0'
+                    NamedPickupGroup: ''
+                    NamedCallGroup: ''
+                    PickupGroup: ''
+                    CallGroup: ''
+                    InbandProgress: 'false'
+                    OneTouchRecording: 'false'
+                    UseAvpf: 'false'
+                    MediaEncryption: 'none'
+                    AggregateMwi: 'true'
+                    Mailboxes: ''
+                    SendDiversion: 'true'
+                    SendRpid: 'false'
+                    SendPai: 'false'
+                    TrustIdOutbound: 'false'
+                    TrustIdInbound: 'false'
+                    CalleridTag: ''
+                    CalleridPrivacy: 'allowed_not_screened'
+                    Callerid: '<unknown>'
+                    DisableDirectMediaOnNat: 'false'
+                    DirectMediaGlareMitigation: 'none'
+                    ConnectedLineMethod: 'invite'
+                    DirectMediaMethod: 'invite'
+                    DirectMedia: 'false'
+                    IdentifyBy: 'username'
+                    MediaAddress: ''
+                    Aors: 'trunk1'
+                    OutboundAuth: 'trunk1-oauth'
+                    Auth: ''
+                    TimersSessExpires: '1800'
+                    TimersMinSe: '90'
+                    Timers: 'yes'
+                    100rel: 'yes'
+                    MohSuggest: 'default'
+                    OutboundProxy: ''
+                    Transport: 'ipv4'
+                    RewriteContact: 'false'
+                    ForceRport: 'true'
+                    UsePtime: 'false'
+                    IceSupport: 'false'
+                    RtpSymmetric: 'false'
+                    RtpIpv6: 'false'
+                    DtmfMode: 'rfc4733'
+                    Context: 'default'
+                    DeviceState: 'Invalid|Not in use|Unavailable'
+                    ActiveChannels: ''
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'AorDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: aor
+                    ObjectName: trunk1
+                    Mailboxes: ''
+                    RemoveExisting: 'false'
+                    MaxContacts: '0'
+                    AuthenticateQualify: 'false'
+                    QualifyFrequency: '0'
+                    DefaultExpiration: '3600'
+                    MaximumExpiration: '7200'
+                    MinimumExpiration: '60'
+                    Contacts: 'trunk1/sip:127.0.0.5:41060,trunk1/sip:127.0.0.6:41070'
+                    TotalContacts: '2'
+                    ContactsRegistered: '0'
+                    EndpointName: 'trunk1'
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'ContactStatusDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    AOR: 'trunk1'
+                    EndpointName: 'trunk1'
+            count: 2
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'AuthDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'auth'
+                    ObjectName: 'trunk1-oauth'
+                    AuthType: 'userpass'
+                    NonceLifetime: '32'
+                    Realm: ''
+                    Md5Cred: ''
+                    Password: 'testpass'
+                    Username: 'testuser'
+                    EndpointName: 'trunk1'
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'IdentifyDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'identify'
+                    ObjectName: 'trunk1-identify'
+                    Match: '127.0.0.5/255.255.255.255,127.0.0.6/255.255.255.255'
+                    Endpoint: 'trunk1'
+                    EndpointName: 'trunk1'
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'TransportDetail'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    ObjectType: 'transport'
+                    ObjectName: 'ipv4'
+                    Cos: '0'
+                    Tos: '0'
+                    LocalNet: ''
+                    Cipher: ''
+                    Method: 'unspecified'
+                    RequireClientCert: 'No'
+                    VerifyClient: 'No'
+                    VerifyServer: 'No'
+                    Domain: ''
+                    ExternalMediaAddress: ''
+                    ExternalSignalingPort: '0'
+                    ExternalSignalingAddress: ''
+                    Password: ''
+                    PrivKeyFile: ''
+                    CertFile: ''
+                    CaListFile: ''
+                    AsyncOperations: '1'
+                    Bind: '0.0.0.0:5060'
+                    Protocol: 'udp'
+                    EndpointName: 'trunk'
+            count: 1
+        -
+            type: 'headermatch'
+            conditions:
+                match:
+                    Event: 'EndpointDetailComplete'
+            requirements:
+                match:
+                    ActionID: '12345'
+                    EventList: 'Complete'
+                    ListItems: '7'
+            count: 1
+

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision URL

Propchange: asterisk/trunk/tests/channels/pjsip/config_wizard/trunk/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/trunk/tests/channels/pjsip/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/tests.yaml?view=diff&rev=6098&r1=6097&r2=6098
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/tests.yaml (original)
+++ asterisk/trunk/tests/channels/pjsip/tests.yaml Mon Dec 15 11:50:15 2014
@@ -26,5 +26,6 @@
     - dir: 'video_calls'
     - test: 'accountcode'
     - dir: 'publish'
+    - dir: 'config_wizard'
     - dir: 'optimistic_srtp'
     - test: 'in_dialog_invite_replaces'




More information about the svn-commits mailing list