From d4212b9c784c3045069e8f408380f25d1b1c1035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 5 May 2017 11:57:56 +0300 Subject: [PATCH] MXS-1220: Add request option test Currently only the `pretty=true` option is supported but it is also tested. --- server/core/test/rest-api/test/options.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 server/core/test/rest-api/test/options.js diff --git a/server/core/test/rest-api/test/options.js b/server/core/test/rest-api/test/options.js new file mode 100644 index 000000000..9ad56eae1 --- /dev/null +++ b/server/core/test/rest-api/test/options.js @@ -0,0 +1,12 @@ +require("../utils.js")() + +describe("Request Options", function() { + before(startMaxScale) + + it("pretty=true", function() { + return request.get(base_url + "/services/?pretty=true") + .should.eventually.satisfy(validate) + }) + + after(stopMaxScale) +});