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

Upgrade Kibana to Elasticsearch 7.0 #29184

Merged
merged 42 commits into from
Jan 30, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
193b862
Make CI use the latest elasticsearch snapshot (#28854)
chrisdavies Jan 16, 2019
79c3207
Merge branch 'upgrade/elasticsearch-7-0' of github.com:elastic/kibana…
chrisdavies Jan 23, 2019
af73df6
Upgrade es archives to support ES7.0 (#29179)
chrisdavies Jan 23, 2019
0becc07
[Monitoring] Get monitoring tests working with mapping changes (#29188)
chrisronline Jan 23, 2019
c4aa278
Fix uiSettings tests (#29258)
chrisdavies Jan 24, 2019
93d5b81
Drop support for deleting the Kibana index (#29268)
chrisdavies Jan 24, 2019
090e057
Upgrade/es 7 tests (#29270)
chrisdavies Jan 24, 2019
b54d5ba
Upgrade es 7 tests (#29273)
chrisdavies Jan 24, 2019
a9f7732
Merge master (#29274)
chrisdavies Jan 24, 2019
e5f1bb7
Merge branch 'master' into upgrade/elasticsearch-7-0
chrisdavies Jan 24, 2019
38eabbe
Upgrade es 7 tests (#29276)
chrisdavies Jan 24, 2019
b9bd19d
Fix server mappings tests
chrisdavies Jan 24, 2019
6ca9897
Fix management functional tests
chrisdavies Jan 24, 2019
c43cd3f
Fix api_integration es archives
chrisdavies Jan 24, 2019
9ee8499
Fix management functional tests
chrisdavies Jan 24, 2019
54cf657
Remove x-pack monitoring archive mappings
chrisdavies Jan 24, 2019
0eabf84
Merge branch 'master' of github.com:elastic/kibana into upgrade/elast…
chrisdavies Jan 24, 2019
2306d54
Fixing security functional tests for ES 7 (#29229)
kobelb Jan 25, 2019
9d4748b
Merge branch 'upgrade/elasticsearch-7-0' of github.com:elastic/kibana…
chrisdavies Jan 25, 2019
3c3ac01
Temporary workaround for esjs and es 7 incompatibility
chrisdavies Jan 25, 2019
7560f70
Merge branch 'master' of github.com:elastic/kibana into upgrade/elast…
chrisdavies Jan 25, 2019
208d963
Fix logstash elasticsearch 7 tests
chrisdavies Jan 25, 2019
81ff188
Fix flakey alert test
chrisdavies Jan 25, 2019
bd75b5e
Fix BWC reporting tests
chrisdavies Jan 25, 2019
fb29c95
[6.x] Add new `allow_restricted_indices` field to the expected roles …
kobelb Jan 25, 2019
bfab7ee
Merge branch 'master' of github.com:elastic/kibana into upgrade/elast…
chrisdavies Jan 25, 2019
275a094
Merge branch 'upgrade/elasticsearch-7-0' of github.com:elastic/kibana…
chrisdavies Jan 25, 2019
afe8ba1
Fix monitoring mappings_exists tests
chrisdavies Jan 25, 2019
dd0029e
Fix es_archiver pre-7.0 logic
chrisdavies Jan 25, 2019
0dfd132
Fix bwc 6_3 mappings
chrisdavies Jan 25, 2019
535b98b
Fix es_archiver test to handle include_type_name
chrisdavies Jan 25, 2019
a1f9dd9
[Monitoring] Change null to 0s (#29380)
chrisronline Jan 25, 2019
9916c8a
Merge branch 'master' of github.com:elastic/kibana into upgrade/elast…
chrisdavies Jan 28, 2019
b0f0a7b
Merge branch 'master' of github.com:elastic/kibana into upgrade/elast…
chrisdavies Jan 28, 2019
c24e018
Fix logstash test
chrisdavies Jan 28, 2019
91f8f2d
Merge branch 'upgrade/elasticsearch-7-0' of github.com:elastic/kibana…
chrisdavies Jan 28, 2019
48cde09
Merge master
chrisdavies Jan 28, 2019
b92edcc
Fix telemetry tests
chrisdavies Jan 28, 2019
0818b1a
Fix telemetry tests, maybe?
chrisdavies Jan 28, 2019
9c87b47
Remove console.log comment
chrisdavies Jan 29, 2019
7ee8efb
Merge master
chrisdavies Jan 30, 2019
85d05d1
Remove superfluous (and misleading) comment
chrisdavies Jan 30, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,82 +42,7 @@ export default function ({ getService }) {
describe('/api/telemetry/v1/clusters/_stats with monitoring disabled', () => {
before('', async () => {
await esSupertest.put('/_cluster/settings').send(disableCollection).expect(200);
});

it('should pull local stats and validate fields', async () => {
const timeRange = {
min: '2018-07-23T22:07:00Z',
max: '2018-07-23T22:13:00Z'
};

const { body } = await supertest
.post('/api/telemetry/v1/clusters/_stats')
.set('kbn-xsrf', 'xxx')
.send({ timeRange })
.expect(200);

const stats = body[0];
const actual = flatKeys(stats).sort();
const expected = [
'cluster_name',
'cluster_stats.cluster_uuid',
'cluster_stats.indices.completion',
'cluster_stats.indices.count',
'cluster_stats.indices.docs',
'cluster_stats.indices.fielddata',
'cluster_stats.indices.query_cache',
'cluster_stats.indices.segments',
'cluster_stats.indices.shards',
'cluster_stats.indices.store',
'cluster_stats.nodes.count',
'cluster_stats.nodes.discovery_types',
'cluster_stats.nodes.fs',
'cluster_stats.nodes.jvm',
'cluster_stats.nodes.network_types',
'cluster_stats.nodes.os',
'cluster_stats.nodes.plugins',
'cluster_stats.nodes.process',
'cluster_stats.nodes.versions',
'cluster_stats.status',
'cluster_stats.timestamp',
'cluster_uuid',
'collection',
'license.expiry_date',
'license.expiry_date_in_millis',
'license.issue_date',
'license.issue_date_in_millis',
'license.issued_to',
'license.issuer',
'license.max_nodes',
'license.start_date_in_millis',
'license.status',
'license.type',
'license.uid',
'stack_stats.kibana.count',
'stack_stats.kibana.dashboard',
'stack_stats.kibana.graph_workspace',
'stack_stats.kibana.index_pattern',
'stack_stats.kibana.indices',
'stack_stats.kibana.os',
'stack_stats.kibana.plugins',
'stack_stats.kibana.search',
'stack_stats.kibana.timelion_sheet',
'stack_stats.kibana.versions',
'stack_stats.kibana.visualization',
'stack_stats.xpack.graph',
'stack_stats.xpack.ilm',
'stack_stats.xpack.logstash',
'stack_stats.xpack.ml',
'stack_stats.xpack.monitoring',
'stack_stats.xpack.rollup',
'stack_stats.xpack.security',
'stack_stats.xpack.sql',
'stack_stats.xpack.watcher',
'timestamp',
'version'
];

expect(actual).to.eql(expected);
await new Promise(r => setTimeout(r, 1000));
});

it('should pull local stats and validate data types', async () => {
Expand All @@ -132,6 +57,8 @@ export default function ({ getService }) {
.send({ timeRange })
.expect(200);

// console.log(JSON.stringify(body, null, 2));
chrisdavies marked this conversation as resolved.
Show resolved Hide resolved

expect(body.length).to.be(1);
const stats = body[0];

Expand Down Expand Up @@ -168,6 +95,84 @@ export default function ({ getService }) {
expect(stats.stack_stats.xpack.monitoring).to.be.an('object');
expect(stats.stack_stats.xpack.rollup).to.be.an('object');
});

it('should pull local stats and validate fields', async () => {
const timeRange = {
min: '2018-07-23T22:07:00Z',
max: '2018-07-23T22:13:00Z'
};

const { body } = await supertest
.post('/api/telemetry/v1/clusters/_stats')
.set('kbn-xsrf', 'xxx')
.send({ timeRange })
.expect(200);

const stats = body[0];
const actual = flatKeys(stats);

const expected = [
"cluster_name",
"cluster_stats.cluster_uuid",
"cluster_stats.indices.completion",
"cluster_stats.indices.count",
"cluster_stats.indices.docs",
"cluster_stats.indices.fielddata",
"cluster_stats.indices.query_cache",
"cluster_stats.indices.segments",
"cluster_stats.indices.shards",
"cluster_stats.indices.store",
"cluster_stats.nodes.count",
"cluster_stats.nodes.discovery_types",
"cluster_stats.nodes.fs",
"cluster_stats.nodes.jvm",
"cluster_stats.nodes.network_types",
"cluster_stats.nodes.os",
"cluster_stats.nodes.plugins",
"cluster_stats.nodes.process",
"cluster_stats.nodes.versions",
"cluster_stats.status",
"cluster_stats.timestamp",
"cluster_uuid",
"collection",
"license.expiry_date",
"license.expiry_date_in_millis",
"license.issue_date",
"license.issue_date_in_millis",
"license.issued_to",
"license.issuer",
"license.max_nodes",
"license.start_date_in_millis",
"license.status",
"license.type",
"license.uid",
"stack_stats.kibana.count",
"stack_stats.kibana.dashboard",
"stack_stats.kibana.graph_workspace",
"stack_stats.kibana.index_pattern",
"stack_stats.kibana.indices",
"stack_stats.kibana.os",
"stack_stats.kibana.plugins",
"stack_stats.kibana.search",
"stack_stats.kibana.timelion_sheet",
"stack_stats.kibana.versions",
"stack_stats.kibana.visualization",
"stack_stats.xpack.graph",
"stack_stats.xpack.ilm",
"stack_stats.xpack.logstash",
"stack_stats.xpack.ml",
"stack_stats.xpack.monitoring",
"stack_stats.xpack.rollup",
"stack_stats.xpack.security",
"stack_stats.xpack.sql",
"stack_stats.xpack.watcher",
"timestamp",
"version"
];

expect(actual).to.eql(expected);
});

});
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"type": "index",
"value": {
"index": ".monitoring-kibana-6-2018.07.23",
"settings": {
"index": {
"codec": "best_compression",
"number_of_shards": "1",
"auto_expand_replicas": "0-1",
"format": "6",
"number_of_replicas": "0"
}
},
"aliases": {}
}
}

{
"type": "index",
"value": {
"index": ".monitoring-es-6-2018.07.23",
"settings": {
"index": {
"codec": "best_compression",
"number_of_shards": "1",
"auto_expand_replicas": "0-1",
"format": "6",
"number_of_replicas": "0"
}
},
"aliases": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"type": "index",
"value": {
"index": ".monitoring-logstash-6-2017.08.15",
"settings": {
"index": {
"codec": "best_compression",
"number_of_shards": "1",
"format": "6",
"number_of_replicas": "1"
}
}
}
}

{
"type": "index",
"value": {
"index": ".monitoring-alerts-6",
"settings": {
"index": {
"codec": "best_compression",
"number_of_shards": "1",
"format": "6",
"number_of_replicas": "1"
}
}
}
}

{
"type": "index",
"value": {
"index": ".monitoring-es-6-2017.08.15",
"settings": {
"index": {
"codec": "best_compression",
"number_of_shards": "1",
"format": "6",
"number_of_replicas": "1"
}
}
}
}

{
"type": "index",
"value": {
"index": ".monitoring-kibana-6-2017.08.15",
"settings": {
"index": {
"codec": "best_compression",
"number_of_shards": "1",
"format": "6",
"number_of_replicas": "1"
}
}
}
}