From 865d03a91926c1ec86709d64fea59013bb86d1a7 Mon Sep 17 00:00:00 2001 From: Gidi Meir Morris Date: Fri, 26 Jun 2020 09:12:48 +0100 Subject: [PATCH] fixed typo --- x-pack/plugins/alerts/server/saved_objects/migrations.ts | 2 +- .../spaces_only/tests/alerting/migrations.ts | 4 ++-- .../functional/es_archives/{alerting => alerts}/data.json | 0 .../functional/es_archives/{alerting => alerts}/mappings.json | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename x-pack/test/functional/es_archives/{alerting => alerts}/data.json (100%) rename x-pack/test/functional/es_archives/{alerting => alerts}/mappings.json (100%) diff --git a/x-pack/plugins/alerts/server/saved_objects/migrations.ts b/x-pack/plugins/alerts/server/saved_objects/migrations.ts index 92358dd5d8cb0..142102dd711c7 100644 --- a/x-pack/plugins/alerts/server/saved_objects/migrations.ts +++ b/x-pack/plugins/alerts/server/saved_objects/migrations.ts @@ -30,7 +30,7 @@ function changeAlertingConsumer( consumerMigration.set('alerting', 'alerts'); return encryptedSavedObjects.createMigration( - function shouldbeMigrated(doc): doc is SavedObjectUnsanitizedDoc { + function shouldBeMigrated(doc): doc is SavedObjectUnsanitizedDoc { return consumerMigration.has(doc.attributes.consumer); }, (doc: SavedObjectUnsanitizedDoc): SavedObjectUnsanitizedDoc => { diff --git a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/migrations.ts b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/migrations.ts index e024150e3d034..fc61f59d129d7 100644 --- a/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/migrations.ts +++ b/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/migrations.ts @@ -15,11 +15,11 @@ export default function createGetTests({ getService }: FtrProviderContext) { describe('migrations', () => { before(async () => { - await esArchiver.load('alerting'); + await esArchiver.load('alerts'); }); after(async () => { - await esArchiver.unload('alerting'); + await esArchiver.unload('alerts'); }); it('7.9.0 migrates the `alerting` consumer to be the `alerts`', async () => { diff --git a/x-pack/test/functional/es_archives/alerting/data.json b/x-pack/test/functional/es_archives/alerts/data.json similarity index 100% rename from x-pack/test/functional/es_archives/alerting/data.json rename to x-pack/test/functional/es_archives/alerts/data.json diff --git a/x-pack/test/functional/es_archives/alerting/mappings.json b/x-pack/test/functional/es_archives/alerts/mappings.json similarity index 100% rename from x-pack/test/functional/es_archives/alerting/mappings.json rename to x-pack/test/functional/es_archives/alerts/mappings.json