mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `9.0`: - [[Synthetics] Unskip getMonitors api test !! (#214075)](https://github.com/elastic/kibana/pull/214075) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2025-03-13T21:21:30Z","message":"[Synthetics] Unskip getMonitors api test !! (#214075)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/204069 !!\n\nUnskip getMonitors api test !!","sha":"071838129c911af061aa0cf707d16409b36015cf","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:version","v9.1.0"],"title":"[Synthetics] Unskip getMonitors api test !!","number":214075,"url":"https://github.com/elastic/kibana/pull/214075","mergeCommit":{"message":"[Synthetics] Unskip getMonitors api test !! (#214075)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/204069 !!\n\nUnskip getMonitors api test !!","sha":"071838129c911af061aa0cf707d16409b36015cf"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214075","number":214075,"mergeCommit":{"message":"[Synthetics] Unskip getMonitors api test !! (#214075)\n\n## Summary\n\nFixes https://github.com/elastic/kibana/issues/204069 !!\n\nUnskip getMonitors api test !!","sha":"071838129c911af061aa0cf707d16409b36015cf"}}]}] BACKPORT--> Co-authored-by: Shahzad <shahzad31comp@gmail.com>
This commit is contained in:
parent
2e4531093e
commit
51f7440469
1 changed files with 3 additions and 2 deletions
|
@ -25,8 +25,7 @@ import { PrivateLocationTestService } from '../../../services/synthetics_private
|
|||
import { getFixtureJson } from './helpers/get_fixture_json';
|
||||
|
||||
export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
|
||||
// Failing: See https://github.com/elastic/kibana/issues/204069
|
||||
describe.skip('getSyntheticsMonitors', function () {
|
||||
describe('getSyntheticsMonitors', function () {
|
||||
const supertest = getService('supertestWithoutAuth');
|
||||
const kibanaServer = getService('kibanaServer');
|
||||
const retry = getService('retry');
|
||||
|
@ -57,6 +56,7 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
|
|||
|
||||
before(async () => {
|
||||
await kibanaServer.savedObjects.cleanStandardList();
|
||||
await privateLocationTestService.installSyntheticsPackage();
|
||||
editorUser = await samlAuth.createM2mApiKeyWithRoleScope('editor');
|
||||
privateLocation = await privateLocationTestService.addTestPrivateLocation();
|
||||
await supertest
|
||||
|
@ -230,6 +230,7 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
|
|||
);
|
||||
|
||||
const allMonitors = [...monitors, ...monitors];
|
||||
|
||||
for (const mon of allMonitors) {
|
||||
await saveMonitor(
|
||||
{ ...mon, name: mon.name + Date.now(), locations: [spaceScopedPrivateLocation] },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue