Skip to content

Commit

Permalink
[APM] Fixes incorrect index config names (#114901) (#114904) (#114948)
Browse files Browse the repository at this point in the history
# Conflicts:
#	x-pack/test/functional/es_archives/cases/migrations/7.16.0_space/mappings.json
#	x-pack/test/functional/es_archives/security_solution/timelines/7.15.0_space/mappings.json
  • Loading branch information
ogupte authored Oct 14, 2021
1 parent ec70ce6 commit eee9b07
Show file tree
Hide file tree
Showing 32 changed files with 170 additions and 170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ kibana_vars=(
xpack.alerts.invalidateApiKeysTask.interval
xpack.alerts.invalidateApiKeysTask.removalDelay
xpack.apm.enabled
xpack.apm.indices.errors
xpack.apm.indices.metrics
xpack.apm.indices.error
xpack.apm.indices.metric
xpack.apm.indices.onboarding
xpack.apm.indices.sourcemaps
xpack.apm.indices.spans
xpack.apm.indices.transactions
xpack.apm.indices.sourcemap
xpack.apm.indices.span
xpack.apm.indices.transaction
xpack.apm.maxServiceEnvironments
xpack.apm.searchAggregatedTransactions
xpack.apm.serviceMapEnabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ describe('No data screen', () => {
url: apmIndicesSaveURL,
method: 'POST',
body: {
sourcemaps: 'foo-*',
errors: 'foo-*',
sourcemap: 'foo-*',
error: 'foo-*',
onboarding: 'foo-*',
spans: 'foo-*',
transactions: 'foo-*',
metrics: 'foo-*',
span: 'foo-*',
transaction: 'foo-*',
metric: 'foo-*',
},
headers: {
'kbn-xsrf': true,
Expand All @@ -49,12 +49,12 @@ describe('No data screen', () => {
url: apmIndicesSaveURL,
method: 'POST',
body: {
sourcemaps: '',
errors: '',
sourcemap: '',
error: '',
onboarding: '',
spans: '',
transactions: '',
metrics: '',
span: '',
transaction: '',
metric: '',
},
headers: { 'kbn-xsrf': true },
auth: { user: 'apm_power_user', pass: 'changeme' },
Expand Down
20 changes: 10 additions & 10 deletions x-pack/plugins/apm/public/utils/testHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ interface MockSetup {
config: APMConfig;
uiFilters: UxUIFilters;
indices: {
sourcemaps: string;
errors: string;
sourcemap: string;
error: string;
onboarding: string;
spans: string;
transactions: string;
metrics: string;
span: string;
transaction: string;
metric: string;
apmAgentConfigurationIndex: string;
apmCustomLinkIndex: string;
};
Expand Down Expand Up @@ -176,12 +176,12 @@ export async function inspectSearchParams(
) as APMConfig,
uiFilters: {},
indices: {
sourcemaps: 'myIndex',
errors: 'myIndex',
sourcemap: 'myIndex',
error: 'myIndex',
onboarding: 'myIndex',
spans: 'myIndex',
transactions: 'myIndex',
metrics: 'myIndex',
span: 'myIndex',
transaction: 'myIndex',
metric: 'myIndex',
apmAgentConfigurationIndex: 'myIndex',
apmCustomLinkIndex: 'myIndex',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,22 +190,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,22 +216,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,22 +214,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,22 +206,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
10 changes: 5 additions & 5 deletions x-pack/test/functional/es_archives/actions/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,22 +202,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
10 changes: 5 additions & 5 deletions x-pack/test/functional/es_archives/alerts_legacy/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,22 +198,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
10 changes: 5 additions & 5 deletions x-pack/test/functional/es_archives/canvas/reports/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,22 +229,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,22 +254,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,22 +260,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,22 +261,22 @@
},
"apm-indices": {
"properties": {
"errors": {
"error": {
"type": "keyword"
},
"metrics": {
"metric": {
"type": "keyword"
},
"onboarding": {
"type": "keyword"
},
"sourcemaps": {
"sourcemap": {
"type": "keyword"
},
"spans": {
"span": {
"type": "keyword"
},
"transactions": {
"transaction": {
"type": "keyword"
}
}
Expand Down
Loading

0 comments on commit eee9b07

Please sign in to comment.