diff options
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) { |