[Asterisk-code-review] tests/endpoints/statsd: Take into account 'samples' config e... (testsuite[master])

Matt Jordan asteriskteam at digium.com
Tue Nov 24 12:52:42 CST 2015


Matt Jordan has uploaded a new change for review.

  https://gerrit.asterisk.org/1704

Change subject: tests/endpoints/statsd: Take into account 'samples' config environment
......................................................................

tests/endpoints/statsd: Take into account 'samples' config environment

The build agents run tests using the 'samples' set of configuration files. With
this set of configuration files, an anonymous endpoint will be created, which
will add additional endpoint statistics that the test was not expecting. This
patch accomodates that environment, as it is the expected one for the vast
majority of test execution.

Change-Id: I4e35788c4feeb4354cd42e09857988528808fca5
---
M tests/endpoints/statsd/test-config.yaml
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/04/1704/1

diff --git a/tests/endpoints/statsd/test-config.yaml b/tests/endpoints/statsd/test-config.yaml
index 12549d9..cd46383 100644
--- a/tests/endpoints/statsd/test-config.yaml
+++ b/tests/endpoints/statsd/test-config.yaml
@@ -42,6 +42,10 @@
         -
             'endpoints\.state\.online:\+1\|g'
         -
+            'endpoints\.count:\+1\|g'
+        -
+            'endpoints\.state\.unknown:\+1\|g'
+        -
             'endpoints\.PJSIP\.test\.channels:1\|g'
         -
             'endpoints\.PJSIP\.test\.channels:1\|g'
@@ -61,7 +65,10 @@
             'endpoints\.count:\-1\|g'
         -
             'endpoints\.state\.online:\-1\|g'
-
+        -
+            'endpoints\.count:\-1\|g'
+        -
+            'endpoints\.state\.unknown:\-1\|g'
 
 originator-config:
     channel: 'PJSIP/test'

-- 
To view, visit https://gerrit.asterisk.org/1704
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4e35788c4feeb4354cd42e09857988528808fca5
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>



More information about the asterisk-code-review mailing list