Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
bdd.describe('visualize app', function () {
var common;
var remote;
var headerPage;
var settingsPage;
var scenarioManager = new ScenarioManager(url.format(config.servers.elasticsearch));
this.timeout = config.timeouts.default;
// on setup, we create an settingsPage instance
// that we will use for all the tests
bdd.before(function () {
common = new Common(this.remote);
remote = this.remote;
headerPage = new HeaderPage(this.remote);
settingsPage = new SettingsPage(this.remote);
});
bdd.before(function () {
var self = this;
remote.setWindowSize(1200,800);
// load a set of makelogs data
common.debug('loadIfEmpty logstashFunctional ' + self.timeout);
return scenarioManager.loadIfEmpty('logstashFunctional');
}
func(parsed);
return format(_.pick(parsed, 'protocol', 'hostname', 'port', 'pathname', 'query', 'hash', 'auth'));
}
function Common(remote) {
this.remote = remote;
if (remote.get.wrapper !== injectTimestampQuery) {
this.remote.get = _.wrap(this.remote.get, injectTimestampQuery);
remote.get.wrapper = injectTimestampQuery;
this.remote.getCurrentUrl = _.wrap(this.remote.getCurrentUrl, removeTimestampQuery);
}
}
var defaultTimeout = config.timeouts.default;
Common.prototype = {
constructor: Common,
getHostPort: function getHostPort() {
return getUrl.baseUrl(config.servers.kibana);
},
navigateToApp: function (appName, testStatusPage) {
var self = this;
// navUrl includes user:password@ for use with Shield
// appUrl excludes user:password@ to match what getCurrentUrl returns
var navUrl = getUrl(config.servers.kibana, config.apps[appName]);
var appUrl = getUrl.noAuth(config.servers.kibana, config.apps[appName]);
self.debug('navigating to ' + appName + ' url: ' + navUrl);