jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/402416 )

Change subject: Update tests to allow for testing arbitrary RESTBase 
installations
......................................................................


Update tests to allow for testing arbitrary RESTBase installations

Updates a couple of tests so that they don't test for WMF production
REST API URLs.  Useful for testing a local RESTBase.

Change-Id: I89139a1115475dfb16870e84745e93796c3bc31b
---
M test/features/featured/pagecontent.js
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  BearND: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/test/features/featured/pagecontent.js 
b/test/features/featured/pagecontent.js
index 2c342c2..17c3fc7 100644
--- a/test/features/featured/pagecontent.js
+++ b/test/features/featured/pagecontent.js
@@ -30,7 +30,7 @@
         return preq.get({ uri: 
`${server.config.uri}en.wikipedia.org/v1/page/featured/2016/04/15` })
             .then((res) => {
                 assert.status(res, 200);
-                assert.equal(res.body.$merge, 
'https://en.wikipedia.org/api/rest_v1/page/summary/Cosmic_Stories_and_Stirring_Science_Stories');
+                assert.contains(res.body.$merge[0], 
'v1/page/summary/Cosmic_Stories_and_Stirring_Science_Stories');
             });
     });
 
@@ -38,7 +38,7 @@
         return preq.get({ uri: 
`${server.config.uri}en.wikipedia.org/v1/page/featured/2016/04/29` })
             .then((res) => {
                 assert.status(res, 200);
-                assert.equal(res.body.$merge, 
'https://en.wikipedia.org/api/rest_v1/page/summary/Lightning_(Final_Fantasy)');
+                assert.contains(res.body.$merge[0], 
'v1/page/summary/Lightning_(Final_Fantasy)');
             });
     });
 

-- 
To view, visit https://gerrit.wikimedia.org/r/402416
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I89139a1115475dfb16870e84745e93796c3bc31b
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Ppchelko <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to