diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-27 11:55:31 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-27 11:55:31 +0100 |
commit | b09ce6455f8e2bf9dd741532e6ad09309880ff74 (patch) | |
tree | 7d2ec942e50b8f3347ed4287e07e2bc88619e585 /server/tests/api/check-params/pods.js | |
parent | 0d4fb7e6d482635cd725cd2f09cf981f82cbd92c (diff) | |
download | PeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.tar.gz PeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.tar.zst PeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.zip |
Server: error if we add a pod that already exists
Diffstat (limited to 'server/tests/api/check-params/pods.js')
-rw-r--r-- | server/tests/api/check-params/pods.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/tests/api/check-params/pods.js b/server/tests/api/check-params/pods.js index 2f85af644..8d52b69b1 100644 --- a/server/tests/api/check-params/pods.js +++ b/server/tests/api/check-params/pods.js | |||
@@ -189,6 +189,14 @@ describe('Test pods API validators', function () { | |||
189 | } | 189 | } |
190 | requestsUtils.makePostBodyRequest(server.url, path, null, data, done, 200) | 190 | requestsUtils.makePostBodyRequest(server.url, path, null, data, done, 200) |
191 | }) | 191 | }) |
192 | |||
193 | it('Should fail with a host that already exists', function (done) { | ||
194 | const data = { | ||
195 | host: 'coucou.com', | ||
196 | publicKey: 'mysuperpublickey' | ||
197 | } | ||
198 | requestsUtils.makePostBodyRequest(server.url, path, null, data, done, 409) | ||
199 | }) | ||
192 | }) | 200 | }) |
193 | 201 | ||
194 | after(function (done) { | 202 | after(function (done) { |