Author: rombert
Date: Fri May  5 10:27:44 2017
New Revision: 1794004

URL: http://svn.apache.org/viewvc?rev=1794004&view=rev
Log:
SLING-6801 change remote to local json test

this change allows any yahoo API change or disruption to breaks the tests

Submitted-By: Nicolas Peltier

This closes #221

Modified:
    sling/trunk/contrib/extensions/sling-pipes/src/test/resources/json.json

Modified: 
sling/trunk/contrib/extensions/sling-pipes/src/test/resources/json.json
URL: 
http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/sling-pipes/src/test/resources/json.json?rev=1794004&r1=1794003&r2=1794004&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/sling-pipes/src/test/resources/json.json 
(original)
+++ sling/trunk/contrib/extensions/sling-pipes/src/test/resources/json.json Fri 
May  5 10:27:44 2017
@@ -22,17 +22,17 @@
             }
           }
         },
-        "yahoo": {
+        "weather": {
           "jcr:primaryType": "nt:unstructured",
           "sling:resourceType": "slingPipes/json",
-          "expr": 
"https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22${selector.city
 
}%2C%20${selector.country}%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"
+          "expr": "{'query':{'ro':{'city':'Bucharest','temp':'12°'}, 
'fr':{'city':'Paris','temp':'13°'}}}}"
         },
         "write": {
           "jcr:primaryType": "nt:unstructured",
           "sling:resourceType": "slingPipes/write",
           "path":"/content/json/windSpeed",
           "conf": {
-            
"${yahoo.get('query').get('results').get('channel').get('location').get('city')}":"${yahoo.get('query').get('results').get('channel').get('wind').get('speed')}"
+            
"${weather.get('query').get(selector.country).get('city')}":"${weather.get('query').get(selector.country).get('temp')}"
           }
         }
       }


Reply via email to