From ab8da92578b2589785cfc9c9ded3efb323ec4cac Mon Sep 17 00:00:00 2001
From: Roman Hotsiy <gotsijroman@gmail.com>
Date: Sun, 17 Jan 2016 00:35:29 +0200
Subject: [PATCH] Remove few APIs from e2e tests

---
 tests/e2e/redoc.spec.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/e2e/redoc.spec.js b/tests/e2e/redoc.spec.js
index 24861182..ed8c4e72 100644
--- a/tests/e2e/redoc.spec.js
+++ b/tests/e2e/redoc.spec.js
@@ -41,6 +41,13 @@ describe('APIs.guru specs test', ()=> {
 
   // global.apisGuruList was loaded in onPrepare method of protractor config
   let apisGuruList = global.apisGuruList;
+
+  // Remove certain APIs that are known to cause problems
+  delete apisGuruList['motaword.com']; // invalid (see https://github.com/BigstickCarpet/swagger-parser/issues/26)
+  delete apisGuruList['learnifier.com']; // allof object and no type
+  delete apisGuruList['googleapis.com:mirror']; // bad urls in images
+  delete apisGuruList['googleapis.com:discovery']; // non-string references
+
   for (let apiName of Object.keys(apisGuruList)) {
     let apiInfo = apisGuruList[apiName].versions[apisGuruList[apiName].preferred];
     let url = apiInfo.swaggerUrl;