mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Adding a 'suites' property to the existing intern configuration caused an error to be thrown at the beginning of the functional test run. Even if the value of 'suites' was just an empty array. The existence of the property seemed to enabled execution of the config file in the selenium browser because it complained about not having the node require function. To fix this, I created a separate api test config file without the node require and removed the 'suites' property from intern.js.
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
define(function (require) {
|
|
var bdd = require('intern!bdd');
|
|
var serverConfig = require('intern/dojo/node!../../../serverConfig');
|
|
var ScenarioManager = require('intern/dojo/node!../../../fixtures/scenarioManager');
|
|
var request = require('intern/dojo/node!supertest-as-promised');
|
|
var url = require('intern/dojo/node!url');
|
|
var _ = require('intern/dojo/node!lodash');
|
|
var expect = require('intern/dojo/node!expect.js');
|
|
var post = require('./_post');
|
|
var get = require('./_get');
|
|
var put = require('./_put');
|
|
var del = require('./_del');
|
|
|
|
bdd.describe('index_patterns API', function () {
|
|
var scenarioManager = new ScenarioManager(url.format(serverConfig.servers.elasticsearch));
|
|
request = request(url.format(serverConfig.servers.kibana) + '/api');
|
|
|
|
bdd.before(function () {
|
|
return scenarioManager.load('emptyKibana');
|
|
});
|
|
|
|
bdd.after(function () {
|
|
return scenarioManager.unload('emptyKibana');
|
|
});
|
|
|
|
get(bdd, scenarioManager, request);
|
|
post(bdd, scenarioManager, request);
|
|
put(bdd, scenarioManager, request);
|
|
del(bdd, scenarioManager, request);
|
|
});
|
|
});
|