diff options
Diffstat (limited to 'server/tests/utils/pods.js')
-rw-r--r-- | server/tests/utils/pods.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/tests/utils/pods.js b/server/tests/utils/pods.js index a8551a49d..25b97edec 100644 --- a/server/tests/utils/pods.js +++ b/server/tests/utils/pods.js | |||
@@ -30,25 +30,25 @@ function makeFriends (url, accessToken, expectedStatus, end) { | |||
30 | // Which pod makes friends with which pod | 30 | // Which pod makes friends with which pod |
31 | const friendsMatrix = { | 31 | const friendsMatrix = { |
32 | 'http://localhost:9001': [ | 32 | 'http://localhost:9001': [ |
33 | 'http://localhost:9002' | 33 | 'localhost:9002' |
34 | ], | 34 | ], |
35 | 'http://localhost:9002': [ | 35 | 'http://localhost:9002': [ |
36 | 'http://localhost:9003' | 36 | 'localhost:9003' |
37 | ], | 37 | ], |
38 | 'http://localhost:9003': [ | 38 | 'http://localhost:9003': [ |
39 | 'http://localhost:9001' | 39 | 'localhost:9001' |
40 | ], | 40 | ], |
41 | 'http://localhost:9004': [ | 41 | 'http://localhost:9004': [ |
42 | 'http://localhost:9002' | 42 | 'localhost:9002' |
43 | ], | 43 | ], |
44 | 'http://localhost:9005': [ | 44 | 'http://localhost:9005': [ |
45 | 'http://localhost:9001', | 45 | 'localhost:9001', |
46 | 'http://localhost:9004' | 46 | 'localhost:9004' |
47 | ], | 47 | ], |
48 | 'http://localhost:9006': [ | 48 | 'http://localhost:9006': [ |
49 | 'http://localhost:9001', | 49 | 'localhost:9001', |
50 | 'http://localhost:9002', | 50 | 'localhost:9002', |
51 | 'http://localhost:9003' | 51 | 'localhost:9003' |
52 | ] | 52 | ] |
53 | } | 53 | } |
54 | const path = '/api/v1/pods/makefriends' | 54 | const path = '/api/v1/pods/makefriends' |
@@ -58,7 +58,7 @@ function makeFriends (url, accessToken, expectedStatus, end) { | |||
58 | .post(path) | 58 | .post(path) |
59 | .set('Accept', 'application/json') | 59 | .set('Accept', 'application/json') |
60 | .set('Authorization', 'Bearer ' + accessToken) | 60 | .set('Authorization', 'Bearer ' + accessToken) |
61 | .send({ 'urls': friendsMatrix[url] }) | 61 | .send({ 'hosts': friendsMatrix[url] }) |
62 | .expect(expectedStatus) | 62 | .expect(expectedStatus) |
63 | .end(function (err, res) { | 63 | .end(function (err, res) { |
64 | if (err) throw err | 64 | if (err) throw err |