From a6c49a70482105a5ee1d975cc36c60d31329380d Mon Sep 17 00:00:00 2001 From: rddimon Date: Thu, 7 Mar 2024 17:48:15 +0200 Subject: [PATCH] Updated tests --- test/unit-tests/aws/cloud-formation-wrapper.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit-tests/aws/cloud-formation-wrapper.test.ts b/test/unit-tests/aws/cloud-formation-wrapper.test.ts index a42fc7cd..8afed875 100644 --- a/test/unit-tests/aws/cloud-formation-wrapper.test.ts +++ b/test/unit-tests/aws/cloud-formation-wrapper.test.ts @@ -107,6 +107,7 @@ describe("Cloud Formation wrapper checks", () => { } catch (err) { errored = true; expect(err.message).to.contains("Failed to find logicalResourceId"); + expect(err.message).to.contains("Make sure the stack exists and the API gateway event is added"); } expect(errored).to.equal(true); @@ -160,6 +161,7 @@ describe("Cloud Formation wrapper checks", () => { } catch (err) { errored = true; expect(err.message).to.contains("Failed to find logicalResourceId"); + expect(err.message).to.contains("Make sure the stack exists and the API gateway event is added"); } expect(errored).to.equal(true); @@ -185,6 +187,7 @@ describe("Cloud Formation wrapper checks", () => { } catch (err) { errored = true; expect(err.message).to.contains("Failed to find logicalResourceId"); + expect(err.message).to.contains("Make sure the stack exists and the API gateway event is added"); } expect(errored).to.equal(true); expect(consoleOutput[0]).to.contains("Unsupported apiGateway"); @@ -389,6 +392,7 @@ describe("Cloud Formation wrapper checks", () => { } catch (err) { errored = true; expect(err.message).to.contains("Failed to find logicalResourceId"); + expect(err.message).to.contains("Make sure the stack exists and the API gateway event is added"); } expect(errored).to.equal(true); expect(consoleOutput[0]).to.contains("[WARNING] Failed to find CloudFormation resources with an error");