[Asterisk-code-review] endpoints/statsd: Fix the expected stats for 'make samples' ... (testsuite[master])

Anonymous Coward asteriskteam at digium.com
Wed Dec 30 18:43:12 CST 2015


Anonymous Coward #1000019 has submitted this change and it was merged.

Change subject: endpoints/statsd: Fix the expected stats for 'make samples' configuration
......................................................................


endpoints/statsd: Fix the expected stats for 'make samples' configuration

When run with a set of configuration files installed by 'make samples', the
endpoints/statsd test will currently fail. This is due to one of the channel
drivers with a 'sample' configuration creating an endpoint in addition to the
endpoints created by the test.

This patch updates the test (again) to track the expected events with the
configuration that the CI infrastructure runs with.

ASTERISK-25137

Change-Id: I704649c4dcf3b72a750fb8db0fa6347700670d4f
---
M tests/endpoints/statsd/test-config.yaml
1 file changed, 7 insertions(+), 7 deletions(-)

Approvals:
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved



diff --git a/tests/endpoints/statsd/test-config.yaml b/tests/endpoints/statsd/test-config.yaml
index ce19da9..a96098c 100644
--- a/tests/endpoints/statsd/test-config.yaml
+++ b/tests/endpoints/statsd/test-config.yaml
@@ -42,25 +42,25 @@
         -
             'endpoints\.state\.online:\+1\|g'
         -
-            'endpoints\.PJSIP\.test\.channels:1\|g'
+            'endpoints\.count:\+1\|g'
+        -
+            'endpoints\.state\.unknown:\+1\|g'
         -
             'endpoints\.PJSIP\.test\.channels:1\|g'
         -
             'endpoints\.PJSIP\.test\.channels:2\|g'
         -
-            'endpoints\.PJSIP\.test\.channels:2\|g'
-        -
             'endpoints\.PJSIP\.test\.channels:1\|g'
-        -
-            'endpoints\.PJSIP\.test\.channels:1\|g'
-        -
-            'endpoints\.PJSIP\.test\.channels:0\|g'
         -
             'endpoints\.PJSIP\.test\.channels:0\|g'
         -
             '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/1887
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I704649c4dcf3b72a750fb8db0fa6347700670d4f
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>



More information about the asterisk-code-review mailing list