From 63d0447b2503967ef5545e44813eaaeac9624072 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Wed, 2 Sep 2015 15:07:07 -0400 Subject: [PATCH] Update ciao tests for /v1 --- test/ciao/index.coffee | 2 +- test/ciao/place/msuccess.coffee | 2 +- test/ciao/place/success.coffee | 2 +- test/ciao/reverse/success.coffee | 4 ++-- test/ciao/search/success.coffee | 4 ++-- test/ciao/suggest/nearby_nobias.coffee | 4 ++-- test/ciao/suggest/success.coffee | 4 ++-- test/ciao/suggest/success_nearby.coffee | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/ciao/index.coffee b/test/ciao/index.coffee index 0a460aa6..b495c747 100644 --- a/test/ciao/index.coffee +++ b/test/ciao/index.coffee @@ -1,6 +1,6 @@ #> api root -path: '/' +path: '/v1/' #? endpoint available response.statusCode.should.equal 200 diff --git a/test/ciao/place/msuccess.coffee b/test/ciao/place/msuccess.coffee index 5c69eab1..8f1b0056 100644 --- a/test/ciao/place/msuccess.coffee +++ b/test/ciao/place/msuccess.coffee @@ -1,6 +1,6 @@ #> valid place query -path: '/place?id=geoname:4221195&id=geoname:4193595' +path: '/v1/place?id=geoname:4221195&id=geoname:4193595' #? 200 ok response.statusCode.should.equal 200 diff --git a/test/ciao/place/success.coffee b/test/ciao/place/success.coffee index d4fdea2b..323046a0 100644 --- a/test/ciao/place/success.coffee +++ b/test/ciao/place/success.coffee @@ -1,6 +1,6 @@ #> valid place query -path: '/place?id=geoname:4221195' +path: '/v1/place?id=geoname:4221195' #? 200 ok response.statusCode.should.equal 200 diff --git a/test/ciao/reverse/success.coffee b/test/ciao/reverse/success.coffee index 3f936fbd..78c73832 100644 --- a/test/ciao/reverse/success.coffee +++ b/test/ciao/reverse/success.coffee @@ -1,5 +1,5 @@ #> valid reverse query -path: '/reverse?lat=29.49136&lon=-82.50622' +path: '/v1/reverse?lat=29.49136&lon=-82.50622' #? 200 ok response.statusCode.should.equal 200 @@ -12,4 +12,4 @@ json.date.should.be.within now-5000, now+5000 #? valid geojson json.type.should.equal 'FeatureCollection' -json.features.should.be.instanceof Array \ No newline at end of file +json.features.should.be.instanceof Array diff --git a/test/ciao/search/success.coffee b/test/ciao/search/success.coffee index 79ab9bbc..c1ceba9e 100644 --- a/test/ciao/search/success.coffee +++ b/test/ciao/search/success.coffee @@ -1,5 +1,5 @@ #> valid search query -path: '/search?input=lake&lat=29.49136&lon=-82.50622' +path: '/v1/search?input=lake&lat=29.49136&lon=-82.50622' #? 200 ok response.statusCode.should.equal 200 @@ -12,4 +12,4 @@ json.date.should.be.within now-5000, now+5000 #? valid geojson json.type.should.equal 'FeatureCollection' -json.features.should.be.instanceof Array \ No newline at end of file +json.features.should.be.instanceof Array diff --git a/test/ciao/suggest/nearby_nobias.coffee b/test/ciao/suggest/nearby_nobias.coffee index df0b7930..6c7347d2 100644 --- a/test/ciao/suggest/nearby_nobias.coffee +++ b/test/ciao/suggest/nearby_nobias.coffee @@ -1,6 +1,6 @@ #> suggest without geo bias -path: '/suggest/nearby?input=a' +path: '/v1/suggest/nearby?input=a' #? 400 bad request -response.statusCode.should.equal 400 \ No newline at end of file +response.statusCode.should.equal 400 diff --git a/test/ciao/suggest/success.coffee b/test/ciao/suggest/success.coffee index e54e6424..71cd13a7 100644 --- a/test/ciao/suggest/success.coffee +++ b/test/ciao/suggest/success.coffee @@ -1,6 +1,6 @@ #> valid suggest query -path: '/suggest?input=a&lat=0&lon=0' +path: '/v1/suggest?input=a&lat=0&lon=0' #? 200 ok response.statusCode.should.equal 200 @@ -13,4 +13,4 @@ json.date.should.be.within now-5000, now+5000 #? valid geojson json.type.should.equal 'FeatureCollection' -json.features.should.be.instanceof Array \ No newline at end of file +json.features.should.be.instanceof Array diff --git a/test/ciao/suggest/success_nearby.coffee b/test/ciao/suggest/success_nearby.coffee index ca958720..128b880e 100644 --- a/test/ciao/suggest/success_nearby.coffee +++ b/test/ciao/suggest/success_nearby.coffee @@ -1,6 +1,6 @@ #> valid suggest query -path: '/suggest/nearby?input=a&lat=29.49136&lon=-82.50622' +path: '/v1/suggest/nearby?input=a&lat=29.49136&lon=-82.50622' #? 200 ok response.statusCode.should.equal 200 @@ -13,4 +13,4 @@ json.date.should.be.within now-5000, now+5000 #? valid geojson json.type.should.equal 'FeatureCollection' -json.features.should.be.instanceof Array \ No newline at end of file +json.features.should.be.instanceof Array