[Home]

Summary:ASTERISK-24096: testsuite: Add endpoint inspection tests
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-07-22 15:30:14Date Closed:
Priority:MajorRegression?
Status:Open/NewComponents:Tests/testsuite
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:This is to cover inspection of endpoints. The test should use the following:

# Two PJSIP endpoints
# A SIP peer
# An IAX2 peer

Note that it may take multiple Asterisk instances, as IAX2 is "funny" about what it considers an endpoint. XMPP would be nice, but it's doubtful that it will work without an XMPP server to connect to (and which would be rather difficult to set up).

*Note*: these tests are relatively simple. It's up to the person writing the tests if they want to combine them into one or multiple.

h3. List all endpoints

# Issue a {{GET /endpoints}}. Verify all endpoints are listed.

h3. List all endpoints by tech

# For each tech, issue a {{GET /endpoints/tech}} to get the endpoints for that technology. Verify that all the endpoints are returned appropriately.

h3. Get a specific endpoint

# Create a bridge
# Create a channel for one of the PJSIP endpoints and the IAX2 endpoint (thus associating channels with the endpoints)
# Create a channel for one of the SIP endpoints to the IAX2 endpoint (thus having two channels on an endpoint)
# For each endpoint, issue a {{GET /endpoints/tech/endpoint}}. Verify that the endpoints returned are individual and contain the appropriate data.
Comments: