-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dedicated telemetry config that is skipped in MKI
- Loading branch information
1 parent
c81afdb
commit 67a5954
Showing
8 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
x-pack/test_serverless/functional/test_suites/observability/config.telemetry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { resolve } from 'path'; | ||
import { createTestConfig } from '../../config.base'; | ||
|
||
export default createTestConfig({ | ||
serverlessProject: 'oblt', | ||
testFiles: [require.resolve('./index.telemetry.ts')], | ||
junit: { | ||
reportName: 'Serverless Observability Telemetry Functional Tests', | ||
}, | ||
suiteTags: { exclude: ['skipSvlOblt'] }, | ||
|
||
// include settings from project controller | ||
// https://github.com/elastic/project-controller/blob/main/internal/project/observability/config/elasticsearch.yml | ||
esServerArgs: ['xpack.ml.dfa.enabled=false'], | ||
kbnServerArgs: [ | ||
`--plugin-path=${resolve( | ||
__dirname, | ||
'../../../../../test/analytics/plugins/analytics_ftr_helpers' | ||
)}`, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...erless/functional/test_suites/observability/discover/context_awareness/telemetry/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import type { FtrProviderContext } from '../../../../../ftr_provider_context'; | ||
|
||
export default function ({ getService, getPageObjects, loadTestFile }: FtrProviderContext) { | ||
const esArchiver = getService('esArchiver'); | ||
const kibanaServer = getService('kibanaServer'); | ||
const PageObjects = getPageObjects(['timePicker', 'svlCommonPage']); | ||
const from = '2024-06-10T14:00:00.000Z'; | ||
const to = '2024-06-10T16:30:00.000Z'; | ||
|
||
describe('discover/observabilitySolution/context_awareness/telemetry', function () { | ||
before(async () => { | ||
await esArchiver.load('test/functional/fixtures/es_archiver/discover/context_awareness'); | ||
await kibanaServer.importExport.load( | ||
'test/functional/fixtures/kbn_archiver/discover/context_awareness' | ||
); | ||
await kibanaServer.uiSettings.update({ | ||
'timepicker:timeDefaults': `{ "from": "${from}", "to": "${to}"}`, | ||
}); | ||
}); | ||
|
||
after(async () => { | ||
await esArchiver.unload('test/functional/fixtures/es_archiver/discover/context_awareness'); | ||
await kibanaServer.importExport.unload( | ||
'test/functional/fixtures/kbn_archiver/discover/context_awareness' | ||
); | ||
await PageObjects.timePicker.resetDefaultAbsoluteRangeViaUiSettings(); | ||
}); | ||
|
||
loadTestFile(require.resolve('./_telemetry')); | ||
}); | ||
} |
16 changes: 16 additions & 0 deletions
16
x-pack/test_serverless/functional/test_suites/observability/index.telemetry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../../ftr_provider_context'; | ||
|
||
export default function ({ loadTestFile }: FtrProviderContext) { | ||
describe('serverless observability UI - telemetry', function () { | ||
this.tags(['skipMKI', 'esGate']); | ||
|
||
loadTestFile(require.resolve('./discover/context_awareness/telemetry')); | ||
}); | ||
} |