Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #1

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
530a4d0
Vis LESS to SASS (cont.) (#23199)
cchaos Sep 19, 2018
d308b07
Tweak migrations integraiton tests to have a stable sort (#23265)
chrisdavies Sep 19, 2018
c54d0e5
Fix: plugin api route with security enabled (#23334)
w33ble Sep 19, 2018
f1f157d
[migrations/tests] sort results before assertion (#23347)
Sep 20, 2018
567ee41
[ML] Moves custom URL editor Add button and form to top of flyout (#2…
peteharverson Sep 20, 2018
b732017
Graph LESS to SASS (#23348)
cchaos Sep 20, 2018
63d0824
Developer documentation for integrating with the telemetry service (#…
tsullivan Sep 20, 2018
aac10b0
Fix a bug where ES sends a string and migrations expect a boolean (#2…
chrisdavies Sep 20, 2018
6e3cf4c
chore: use cheerio in i18n.html.getDirectiveMessages (#23342)
w33ble Sep 20, 2018
58b4002
[core/utils] add shareWeakReplay() operator (#23333)
Sep 20, 2018
7d00de5
Chore: fix canvas test runner (#23336)
w33ble Sep 20, 2018
c2cb0d3
Convert Discover open top nav to EUI flyout (#22971)
nreese Sep 20, 2018
991e805
Migrate save top nav in Discover and Visualize to EUI (#23190)
nreese Sep 20, 2018
0e5fd32
Moves styleSheetPath to uiExports (#23007)
tylersmalley Sep 21, 2018
7991a38
Timelion less to sass (#23339)
cchaos Sep 21, 2018
8065308
Use concrete assertions, not exists (#23271)
stacey-gammon Sep 21, 2018
eb1cfaf
Add jenkins:report task for test failures (#22682)
joshdover Sep 21, 2018
e8bebed
Create re-usable IndexPatternSelect component (#23335)
nreese Sep 21, 2018
ec49c36
[ML] Fixing various issues when cloning a job using a wizard (#23368)
jgowdyelastic Sep 21, 2018
8a76a99
Normalize path for comparison on Windows (#23404)
tylersmalley Sep 24, 2018
55d5500
[ML] Fixes Anomaly Explorer resize listener. (#23427)
walterra Sep 24, 2018
c5d475f
[ML] Fix Limit Dropdown, simplify state management of Anomaly Explore…
walterra Sep 24, 2018
594d447
user email validation (#23346)
rashmivkulkarni Sep 24, 2018
f2bb7db
[Monitoring] APM Monitoring UI (#22975)
chrisronline Sep 24, 2018
5d9d724
Add option to functional test server to run elasticsearch from instal…
liza-mae Sep 24, 2018
1b763d8
display hits and total hits for courier inspector requests (#23434)
nreese Sep 24, 2018
d8b4d4b
[ML] Fixing missing field when cloning a distinct count job (#23439)
jgowdyelastic Sep 24, 2018
e477ca3
Cleanup from PR 22608, remove esInstallDir (#23450)
liza-mae Sep 24, 2018
b4e0230
removes unused less styles for ace editor (#23425)
Sep 24, 2018
110c987
Update versions of @babel/parser and @babel/types (#23268)
maryia-lapata Sep 25, 2018
4081fbc
test author email is linked
alvarezmelissa87 Sep 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ module.exports = {
'import/no-extraneous-dependencies': [
'error',
{
packageDir: resolve(__dirname, 'x-pack/package.json'),
packageDir: './x-pack/',
},
],
},
Expand All @@ -417,7 +417,7 @@ module.exports = {
{
devDependencies: true,
peerDependencies: true,
packageDir: resolve(__dirname, 'x-pack/package.json'),
packageDir: './x-pack/',
},
],
},
Expand All @@ -429,7 +429,7 @@ module.exports = {
'import/no-extraneous-dependencies': [
'error',
{
packageDir: resolve(__dirname, 'x-pack/package.json'),
packageDir: './x-pack/',
},
],
'import/no-unresolved': [
Expand Down
22 changes: 0 additions & 22 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,25 +185,3 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

---
This product uses "radioactive button" styles that were published on
https://zurb.com/playground/radioactive-buttons under an "MIT" License.

Copyright (c) ZURB
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,16 @@
"yauzl": "2.7.0"
},
"devDependencies": {
"@babel/parser": "7.0.0-beta.52",
"@babel/types": "7.0.0-beta.31",
"@babel/parser": "^7.1.0",
"@babel/types": "^7.0.0",
"@elastic/eslint-config-kibana": "link:packages/eslint-config-kibana",
"@elastic/eslint-plugin-kibana-custom": "link:packages/eslint-plugin-kibana-custom",
"@kbn/es": "link:packages/kbn-es",
"@kbn/eslint-import-resolver-kibana": "link:packages/kbn-eslint-import-resolver-kibana",
"@kbn/eslint-plugin-license-header": "link:packages/kbn-eslint-plugin-license-header",
"@kbn/plugin-generator": "link:packages/kbn-plugin-generator",
"@kbn/test": "link:packages/kbn-test",
"@octokit/rest": "^15.10.0",
"@types/angular": "^1.6.45",
"@types/babel-core": "^6.25.5",
"@types/bluebird": "^3.1.1",
Expand Down Expand Up @@ -248,7 +249,7 @@
"@types/type-detect": "^4.0.1",
"@types/uuid": "^3.4.4",
"angular-mocks": "1.4.7",
"babel-eslint": "8.1.2",
"babel-eslint": "^9.0.0",
"babel-jest": "^23.4.2",
"backport": "4.4.1",
"chai": "3.5.0",
Expand All @@ -261,7 +262,7 @@
"enzyme": "3.2.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-to-json": "3.3.1",
"eslint": "4.14.0",
"eslint": "^5.6.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-babel": "4.1.2",
"eslint-plugin-import": "2.8.0",
Expand Down Expand Up @@ -294,7 +295,6 @@
"jest-cli": "^23.5.0",
"jest-raw-loader": "^1.0.1",
"jimp": "0.2.28",
"jsdom": "9.9.1",
"json5": "^1.0.1",
"karma": "1.7.0",
"karma-chrome-launcher": "2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-kibana/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
],

env: {
'jest/globals': true,
'jest': true,
},

rules: {
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-kibana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"homepage": "https://github.com/elastic/eslint-config-kibana#readme",
"peerDependencies": {
"babel-eslint": "^8.0.0",
"eslint": "^4.1.0",
"babel-eslint": "^9.0.0",
"eslint": "^5.6.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jest": "^21.22.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/kbn-eslint-plugin-license-header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"license": "Apache-2.0",
"peerDependencies": {
"eslint": ">=4.0.0",
"babel-eslint": "^8.2.1"
"eslint": "^5.6.0",
"babel-eslint": "^9.0.0"
},
"dependencies": {
"dedent": "^0.7.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/kbn-plugin-generator/sao_template/template/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ export default function (kibana) {
title: '<%= startCase(name) %>',
description: '<%= description %>',
main: 'plugins/<%= snakeCase(name) %>/app',
<%_ if (generateScss) { -%>
styleSheetPath: require('path').resolve(__dirname, 'public/app.scss'),
<%_ } -%>
},
<%_ } -%>
<%_ if (generateHack) { -%>
hacks: [
'plugins/<%= snakeCase(name) %>/hack'
]
<%_ } -%>
<%_ if (generateScss) { -%>
styleSheetPaths: require('path').resolve(__dirname, 'public/app.scss'),
<%_ } -%>
},

config(Joi) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"@elastic/eslint-config-kibana": "link:../../kibana/packages/eslint-config-kibana",
"@elastic/eslint-import-resolver-kibana": "link:../../kibana/packages/kbn-eslint-import-resolver-kibana",
"@kbn/plugin-helpers": "link:../../kibana/packages/kbn-plugin-helpers",
"babel-eslint": "^8.0.2",
"eslint": "^4.11.0",
"babel-eslint": "^9.0.0",
"eslint": "^5.6.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-import": "^2.3.0",
"eslint-plugin-jest": "^21.22.0",
Expand Down
16 changes: 12 additions & 4 deletions packages/kbn-test/src/es/es_test_cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { esTestConfig } from './es_test_config';
import { rmrfSync } from './rmrf_sync';
import { KIBANA_ROOT } from '../';
import elasticsearch from 'elasticsearch';
const path = require('path');

export function createEsTestCluster(options = {}) {
const {
Expand Down Expand Up @@ -61,10 +62,17 @@ export function createEsTestCluster(options = {}) {
}

async start(esArgs = []) {
const { installPath } =
esFrom === 'source'
? await cluster.installSource(config)
: await cluster.installSnapshot(config);
let installPath;

if (esFrom === 'source') {
installPath = (await cluster.installSource(config)).installPath;
} else if (esFrom === 'snapshot') {
installPath = (await cluster.installSnapshot(config)).installPath;
} else if (path.isAbsolute(esFrom)) {
installPath = esFrom;
} else {
throw new Error(`unknown option esFrom "${esFrom}"`);
}

await cluster.start(installPath, {
esArgs: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Usage:
node scripts/functional_tests_server [options] [-- --<other args>]

Options:
--help Display this menu and exit.
--config <file> Pass in a config
--esFrom <snapshot|source> Build Elasticsearch from source or run from snapshot. Default: snapshot
--kibana-install-dir <dir> Run Kibana from existing install directory instead of from source.
--verbose Log everything.
--debug Run in debug mode.
--quiet Only log errors.
--silent Log nothing."
--help Display this menu and exit.
--config <file> Pass in a config
--esFrom <snapshot|source|path> Build Elasticsearch from source, snapshot or path to existing install dir. Default: snapshot
--kibana-install-dir <dir> Run Kibana from existing install directory instead of from source.
--verbose Log everything.
--debug Run in debug mode.
--quiet Only log errors.
--silent Log nothing."
`;

exports[`process options for start servers CLI accepts debug option 1`] = `
Expand All @@ -26,6 +26,7 @@ Object {
],
"createLogger": [Function],
"debug": true,
"esFrom": "snapshot",
"extraKbnOpts": undefined,
}
`;
Expand All @@ -36,6 +37,7 @@ Object {
"foo",
],
"createLogger": [Function],
"esFrom": "snapshot",
"extraKbnOpts": undefined,
}
`;
Expand All @@ -49,6 +51,7 @@ Object {
"foo",
],
"createLogger": [Function],
"esFrom": "snapshot",
"extraKbnOpts": Object {
"server.foo": "bar",
},
Expand All @@ -61,6 +64,7 @@ Object {
"foo",
],
"createLogger": [Function],
"esFrom": "snapshot",
"extraKbnOpts": undefined,
"quiet": true,
}
Expand All @@ -72,6 +76,7 @@ Object {
"foo",
],
"createLogger": [Function],
"esFrom": "snapshot",
"extraKbnOpts": undefined,
"silent": true,
}
Expand All @@ -94,6 +99,7 @@ Object {
"foo",
],
"createLogger": [Function],
"esFrom": "snapshot",
"extraKbnOpts": undefined,
"installDir": "foo",
}
Expand All @@ -105,6 +111,7 @@ Object {
"foo",
],
"createLogger": [Function],
"esFrom": "snapshot",
"extraKbnOpts": undefined,
"verbose": true,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,4 @@ exports[`start servers CLI options rejects invalid options even if valid options
functional_tests_server: invalid option [grep]
...stack trace...
"
`;

exports[`start servers CLI options rejects non-enum value for esFrom 1`] = `
"
functional_tests_server: invalid argument [butter] to option [esFrom]
...stack trace...
"
`;
`;
11 changes: 7 additions & 4 deletions packages/kbn-test/src/functional_tests/cli/start_servers/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ const options = {
desc: 'Pass in a config',
},
esFrom: {
arg: '<snapshot|source>',
choices: ['snapshot', 'source'],
desc: 'Build Elasticsearch from source or run from snapshot.',
arg: '<snapshot|source|path>',
desc: 'Build Elasticsearch from source, snapshot or path to existing install dir.',
default: 'snapshot',
},
'kibana-install-dir': {
Expand All @@ -54,7 +53,7 @@ export function displayHelp() {
};
})
.map(option => {
return `--${option.usage.padEnd(28)} ${option.desc} ${option.default}`;
return `--${option.usage.padEnd(30)} ${option.desc} ${option.default}`;
})
.join(`\n `);

Expand All @@ -80,6 +79,10 @@ export function processOptions(userOptions, defaultConfigPath) {
throw new Error(`functional_tests_server: config is required`);
}

if (!userOptions.esFrom) {
userOptions.esFrom = 'snapshot';
}

if (userOptions['kibana-install-dir']) {
userOptions.installDir = userOptions['kibana-install-dir'];
delete userOptions['kibana-install-dir'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ describe('process options for start servers CLI', () => {
expect(options).toMatchSnapshot();
});

it('rejects non-enum value for esFrom', () => {
expect(() => {
processOptions({ esFrom: 'butter' }, ['foo']);
}).toThrow('functional_tests_server: invalid argument [butter] to option [esFrom]');
});

it('accepts debug option', () => {
const options = processOptions({ debug: true }, ['foo']);
expect(options).toMatchSnapshot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,6 @@ describe('start servers CLI', () => {
expect(exitMock).not.toHaveBeenCalled();
});

it('rejects non-enum value for esFrom', async () => {
global.process.argv.push('--esFrom', 'butter');

await startServersCli('foo');

expect(exitMock).toHaveBeenCalledWith(1);
checkMockConsoleLogSnapshot(logMock);
});

it('accepts debug option', async () => {
global.process.argv.push('--debug');

Expand Down
1 change: 1 addition & 0 deletions src/core/public/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
*/

export { modifyUrl } from './modify_url';
export { shareWeakReplay } from './share_weak_replay';
Loading