Fix oAuth unit tests now that we use req.path rather than req.route.path
This commit is contained in:
parent
f27812535d
commit
a108a8d545
1
NEWS.md
1
NEWS.md
@ -1,6 +1,7 @@
|
||||
1.4.1
|
||||
-----
|
||||
* Fix windowing support for non-uppercased SELECT queries
|
||||
* Fix oAuth testcase
|
||||
|
||||
1.4.0
|
||||
-----
|
||||
|
@ -69,7 +69,7 @@ test('can return user for verified signature', function(done){
|
||||
var req = {query:{},
|
||||
headers:{authorization:real_oauth_header, host: 'vizzuality.testhost.lan' },
|
||||
method: 'GET',
|
||||
route: {path: '/api/v1/tables'}
|
||||
path: '/api/v1/tables'
|
||||
};
|
||||
|
||||
oAuth.verifyRequest(req, function(err, data){
|
||||
@ -83,7 +83,7 @@ test('returns null user for unverified signatures', function(done){
|
||||
var req = {query:{},
|
||||
headers:{authorization:real_oauth_header, host: 'vizzuality.testyhost.lan' },
|
||||
method: 'GET',
|
||||
route: {path: '/api/v1/tables'}
|
||||
path: '/api/v1/tables'
|
||||
};
|
||||
|
||||
oAuth.verifyRequest(req, function(err, data){
|
||||
@ -97,7 +97,7 @@ test('returns null user for no oauth', function(done){
|
||||
query:{},
|
||||
headers:{},
|
||||
method: 'GET',
|
||||
route: {path: '/api/v1/tables'}
|
||||
path: '/api/v1/tables'
|
||||
};
|
||||
|
||||
oAuth.verifyRequest(req,function(err,data){
|
||||
|
Loading…
Reference in New Issue
Block a user