* [codeshift] add proper ignore comments * [codeshift] apply require-to-import transform * [codeshift/fixup] remove duplicate imports * [eslint] upgrade config for react "unused" support * [codeshift] apply remove-unused-imports transform * [codeshift] apply remove-unused-basic-requires transform * [codeshift] apply remove-unused-function-arguments transform * [lintroller] fix argument list spacing * [codeshift] apply remove-unused-basic-bars transform * [codeshift/fixup] fixup unused basic var removals * manually apply remove-unused-assignments transform * [codeshift] reapply remove-unused-imports transform * [codeshift] reapply remove-unused-function-arguments transform * [eslint] autofix param spacing * manually fix remaining no-undef errors * use more descriptive file ignore pattern * add eslint-plugin-react peerDependency * replace values that looked unused in tests * remove // kibana-jscodeshift-no-babel comment * remove import statements from code required by api tests * Remove '// kibana-jscodeshift-ignore' comments * address review feedback * remove remnant of removed if condition
173 lines
3.9 KiB
JavaScript
173 lines
3.9 KiB
JavaScript
import serverConfig from '../../test/server_config';
|
|
module.exports = function (grunt) {
|
|
const resolve = require('path').resolve;
|
|
const directory = resolve(__dirname, '../../esvm');
|
|
const dataDir = resolve(directory, 'data_dir');
|
|
|
|
return {
|
|
options: {
|
|
branch: 'master',
|
|
fresh: !grunt.option('esvm-no-fresh'),
|
|
config: {
|
|
http: {
|
|
port: 9200
|
|
}
|
|
}
|
|
},
|
|
|
|
dev: {
|
|
options: {
|
|
directory: resolve(directory, 'dev'),
|
|
config: {
|
|
path: {
|
|
data: dataDir
|
|
},
|
|
cluster: {
|
|
name: 'esvm-dev'
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
tribe: {
|
|
options: {
|
|
directory: resolve(directory, 'tribe'),
|
|
config: {
|
|
path: {
|
|
data: dataDir
|
|
}
|
|
},
|
|
nodes: [{
|
|
cluster: { name: 'data-01' },
|
|
http: { port: 9201 },
|
|
node: { name: 'node-01', data: true, master: true, max_local_storage_nodes: 5 }
|
|
}, {
|
|
cluster: { name: 'data-02' },
|
|
http: { port: 9202 },
|
|
node: { name: 'node-02', data: true, master: true, max_local_storage_nodes: 5 }
|
|
}, {
|
|
cluster: { name: 'admin' },
|
|
http: { port: 9200 },
|
|
node: { name: 'node-03', data: true, master: true, max_local_storage_nodes: 5 }
|
|
}, {
|
|
cluster: { name: 'tribe' },
|
|
http: { port: 9203 },
|
|
node: { name: 'node-04', max_local_storage_nodes: 5 },
|
|
tribe: {
|
|
c1: {
|
|
cluster: {
|
|
name: 'data-01'
|
|
}
|
|
},
|
|
c2: {
|
|
cluster: {
|
|
name: 'data-02'
|
|
}
|
|
},
|
|
on_conflict: 'prefer_c1',
|
|
blocks: {
|
|
write: true
|
|
}
|
|
},
|
|
discovery: {
|
|
zen: {
|
|
ping: {
|
|
unicast: {
|
|
hosts: [ 'localhost:9201', 'localhost:9202' ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}]
|
|
},
|
|
},
|
|
|
|
test: {
|
|
options: {
|
|
directory: resolve(directory, 'test'),
|
|
purge: true,
|
|
config: {
|
|
http: {
|
|
port: serverConfig.servers.elasticsearch.port
|
|
},
|
|
cluster: {
|
|
name: 'esvm-test'
|
|
},
|
|
discovery: {
|
|
zen: {
|
|
ping: {
|
|
unicast: {
|
|
hosts: [ `localhost:${serverConfig.servers.elasticsearch.port}` ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
ui: {
|
|
options: {
|
|
directory: resolve(directory, 'test'),
|
|
purge: true,
|
|
config: {
|
|
http: {
|
|
port: serverConfig.servers.elasticsearch.port
|
|
},
|
|
cluster: {
|
|
name: 'esvm-ui'
|
|
},
|
|
discovery: {
|
|
zen: {
|
|
ping: {
|
|
unicast: {
|
|
hosts: [ `localhost:${serverConfig.servers.elasticsearch.port}` ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
withPlugins: {
|
|
options: {
|
|
version: '2.1.0',
|
|
directory: resolve(directory, 'withPlugins'),
|
|
plugins: [
|
|
'license',
|
|
'shield',
|
|
'marvel-agent',
|
|
'watcher'
|
|
],
|
|
shield: {
|
|
users: [
|
|
{
|
|
username: 'kibana',
|
|
password: 'notsecure',
|
|
roles: ['kibana4_server']
|
|
},
|
|
{
|
|
username: 'user',
|
|
password: 'notsecure',
|
|
roles: ['kibana4', 'marvel']
|
|
},
|
|
{
|
|
username: 'admin',
|
|
password: 'notsecure',
|
|
roles: ['admin']
|
|
}
|
|
]
|
|
},
|
|
config: {
|
|
marvel: {
|
|
agent: {
|
|
interval: '60s'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|