[asterisk-bugs] [Asterisk 0016809]: Design functionality test for dialplan pattern matching

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 11 09:36:46 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16809 
====================================================================== 
Reported By:                lmadsen
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   16809
Category:                   Tests/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-02-11 07:26 CST
Last Modified:              2010-02-11 09:36 CST
====================================================================== 
Summary:                    Design functionality test for dialplan pattern
matching
Description: 
Since we've had a couple of dialplan matching problems before in the past,
I'd like to try and create a set of tests that run through a set of complex
conditions, make sure they get the correct output (i.e. utilize the right
pattern match).

This is based from an email that Jared had sent. I know he'll have a lot
of examples to provide for this test!
====================================================================== 

---------------------------------------------------------------------- 
 (0117991) mmichelson (administrator) - 2010-02-11 09:36
 https://issues.asterisk.org/view.php?id=16809#c117991 
---------------------------------------------------------------------- 
I started working on code in the tests directory yesterday to test pattern
matching in the dialplan.

What I did was to create a context and add extensions to it, each having
only a single priority. From there, I can test strings to see which
extension, if any, is matched in that context.

It's rather simple to do in the code actually. If Jared, Leif, or anyone
else wants to post some particularly "killer" examples which show

a. a sample dialplan
b. a set of strings to use as a test for that dialplan
c. a set of answers showing which extension should be matched by each
string

that would be very helpful in helping me to get this test written. The
example given by Jared above has the first two parts taken care of, but it
does not tell which of the extensions are expected to match given the
input. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-11 09:36 mmichelson     Note Added: 0117991                          
======================================================================




More information about the asterisk-bugs mailing list