[asterisk-dev] Change in testsuite[master]: channels/pjsip/publish/asterisk_event_db: Add AstDB clusteri...

Matt Jordan (Code Review) asteriskteam at digium.com
Sun Apr 5 21:22:46 CDT 2015


Matt Jordan has uploaded a new patch set (#2).

Change subject: channels/pjsip/publish/asterisk_event_db: Add AstDB clustering tests
......................................................................

channels/pjsip/publish/asterisk_event_db: Add AstDB clustering tests

This test verifies that Asterisk can share AstDB information with other
Asterisk instances using the PJSIP stack. The test does the following:

Two Asterisk instances are started. Both are configured to PUBLISH to
each other as well as handle inbound PUBLISH requests from each other
for event type "asterisk-db". Both instances of Asterisk create two global
shared families, "global_shared" and "filtered_shared", as well as a single
unique shared family, "unique_shared". Values are set for keys in each family.
Each Asterisk instance then verifies that:
  - The "filtered_shared" family is not updated, due to being filtered out by
    a regex in the PJSIP configuration
  - The "global_shared" family has keys from both instances
  - Each Asterisk instance has the "unique_shared" key/value from the other
    Asterisk instance stored in a family corresponding to that instance's EID.

Additionally, this patch allows for the asterisk.conf settings to be
manipulated on an individual Asterisk instance basis. Prior to this, the
same settings were passed to all Asterisk instances. As a result, the
rest_api/danger/dangerous test was updated with the new YAML schema.

ASTERISK-24909

Change-Id: Ibb2928065eb015363d0b3c081f9b324639fc6357
---
M lib/python/asterisk/test_case.py
A tests/channels/pjsip/publish/asterisk_event_db/configs/ast1/pjsip.conf
A tests/channels/pjsip/publish/asterisk_event_db/configs/ast2/extensions.conf
A tests/channels/pjsip/publish/asterisk_event_db/configs/ast2/pjsip.conf
A tests/channels/pjsip/publish/asterisk_event_db/run-test
A tests/channels/pjsip/publish/asterisk_event_db/test-config.yaml
M tests/channels/pjsip/publish/tests.yaml
M tests/rest_api/danger/dangerous/test-config.yaml
8 files changed, 265 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/09/9/2
-- 
To view, visit https://gerrit.asterisk.org/9
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ibb2928065eb015363d0b3c081f9b324639fc6357
Gerrit-PatchSet: 2
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>



More information about the asterisk-dev mailing list