From 808482bc30302e4d1c75ee4e9181e5630915ae97 Mon Sep 17 00:00:00 2001 From: Lee Drengenberg Date: Mon, 3 Jan 2022 17:17:48 -0600 Subject: [PATCH 1/4] change test to match current message when decryption fails --- .../apps/alerts/alerts_encryption_keys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js b/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js index c38d085755bba..f2fabc95d523f 100644 --- a/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js +++ b/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js @@ -44,7 +44,7 @@ export default ({ getPageObjects, getService }) => { await retry.try(async () => { const executionFailureResultCallout = await testSubjects.find('executionFailureResult'); expect(await executionFailureResultCallout.getVisibleText()).to.be( - 'Test failed to run\nThe following error was found:\nerror sending email\nDetails:\nMail command failed: 550 5.7.1 Relaying denied' + 'Test failed to run\nThe following error was found:\nCannot read properties of undefined (reading \'password\')' ); }); expect(true).to.be(true); From aa9d0bb6b9ba753ebea459f63915e219b79c927f Mon Sep 17 00:00:00 2001 From: Lee Drengenberg Date: Tue, 4 Jan 2022 10:15:20 -0600 Subject: [PATCH 2/4] fix lint error --- .../apps/alerts/alerts_encryption_keys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js b/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js index f2fabc95d523f..d25c29826deab 100644 --- a/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js +++ b/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js @@ -44,7 +44,7 @@ export default ({ getPageObjects, getService }) => { await retry.try(async () => { const executionFailureResultCallout = await testSubjects.find('executionFailureResult'); expect(await executionFailureResultCallout.getVisibleText()).to.be( - 'Test failed to run\nThe following error was found:\nCannot read properties of undefined (reading \'password\')' + "Test·failed·to·run\nThe·following·error·was·found:\nCannot·read·properties·of·undefined·(reading·'password')" ); }); expect(true).to.be(true); From 711d2331e0f7396469efe058887f3448404bf3bb Mon Sep 17 00:00:00 2001 From: Lee Drengenberg Date: Mon, 24 Jan 2022 15:37:23 -0600 Subject: [PATCH 3/4] update message for newest message --- .../apps/alerts/alerts_encryption_keys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js b/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js index d25c29826deab..ef8c20ccb81e5 100644 --- a/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js +++ b/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js @@ -44,7 +44,7 @@ export default ({ getPageObjects, getService }) => { await retry.try(async () => { const executionFailureResultCallout = await testSubjects.find('executionFailureResult'); expect(await executionFailureResultCallout.getVisibleText()).to.be( - "Test·failed·to·run\nThe·following·error·was·found:\nCannot·read·properties·of·undefined·(reading·'password')" + "Test failed to run\nThe following error was found:\nerror validating action type connector: secrets must be defined" ); }); expect(true).to.be(true); From bdede96c6b28ba92eb971933703e78c0b559ad06 Mon Sep 17 00:00:00 2001 From: Lee Drengenberg Date: Mon, 24 Jan 2022 16:24:18 -0600 Subject: [PATCH 4/4] lint --- .../apps/alerts/alerts_encryption_keys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js b/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js index ef8c20ccb81e5..fdc7fb3a3edcb 100644 --- a/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js +++ b/x-pack/test/stack_functional_integration/apps/alerts/alerts_encryption_keys.js @@ -44,7 +44,7 @@ export default ({ getPageObjects, getService }) => { await retry.try(async () => { const executionFailureResultCallout = await testSubjects.find('executionFailureResult'); expect(await executionFailureResultCallout.getVisibleText()).to.be( - "Test failed to run\nThe following error was found:\nerror validating action type connector: secrets must be defined" + 'Test failed to run\nThe following error was found:\nerror validating action type connector: secrets must be defined' ); }); expect(true).to.be(true);