[asterisk-commits] rest api/registration cleanup: Replace 'localhost' with '12... (testsuite[master])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 19 09:30:21 CDT 2016


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

Change subject: rest_api/registration_cleanup:  Replace 'localhost' with '127.0.0.1'
......................................................................


rest_api/registration_cleanup:  Replace 'localhost' with '127.0.0.1'

The test sometimes fails because pjsip isn't resolving 'localhost'.

Change-Id: I58f276f96c181153040ff4ee88cf8deeb1063a72
---
M tests/rest_api/asterisk/config/dynamic/registration_cleanup/test-config.yaml
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Anonymous Coward #1000019: Verified
  Matt Jordan: Looks good to me, approved
  Joshua Colp: Looks good to me, but someone else must approve



diff --git a/tests/rest_api/asterisk/config/dynamic/registration_cleanup/test-config.yaml b/tests/rest_api/asterisk/config/dynamic/registration_cleanup/test-config.yaml
index 8eb5079..461f8ca 100644
--- a/tests/rest_api/asterisk/config/dynamic/registration_cleanup/test-config.yaml
+++ b/tests/rest_api/asterisk/config/dynamic/registration_cleanup/test-config.yaml
@@ -50,8 +50,8 @@
             -
                 method: 'put'
                 uri: 'asterisk/config/dynamic/res_pjsip/registration/sipp'
-                body: { "fields": [ { 'attribute': 'server_uri', 'value': 'sip:localhost:5061' },
-                                    { 'attribute': 'client_uri', 'value': 'sip:sipp at localhost:5061'},
+                body: { "fields": [ { 'attribute': 'server_uri', 'value': 'sip:127.0.0.1:5061' },
+                                    { 'attribute': 'client_uri', 'value': 'sip:sipp at 127.0.0.1:5061'},
                                     { 'attribute': 'max_retries', 'value': '0'},
                                     { 'attribute': 'expiration', 'value': '10' } ] }
                 expect: 200
@@ -60,7 +60,7 @@
             conditions:
                 match:
                     Event: 'Registry'
-                    Username: 'sip:sipp at localhost:5061'
+                    Username: 'sip:sipp at 127.0.0.1:5061'
                     Status: 'Registered'
             count: '1'
         ari-requests:
@@ -73,7 +73,7 @@
             conditions:
                 match:
                     Event: 'Registry'
-                    Username: 'sip:sipp at localhost:5061'
+                    Username: 'sip:sipp at 127.0.0.1:5061'
                     Status: 'Unregistered'
             count: '1'
         stop_test:

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

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



More information about the asterisk-commits mailing list