From bac5e0f05d94f37150e6b0887528fcc40c9a357b Mon Sep 17 00:00:00 2001 From: Sergio Jozee Date: Thu, 12 Jan 2023 12:59:29 +0100 Subject: [PATCH] Updating summary and adding a test --- src/Cake.Terraform.Tests/TerraformApplyTests.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Cake.Terraform.Tests/TerraformApplyTests.cs b/src/Cake.Terraform.Tests/TerraformApplyTests.cs index ee5eb49..2107459 100644 --- a/src/Cake.Terraform.Tests/TerraformApplyTests.cs +++ b/src/Cake.Terraform.Tests/TerraformApplyTests.cs @@ -142,6 +142,22 @@ public void Should_Append_Auto_Approve_When_AutoApprove_Is_True() Assert.Contains("-auto-approve", result.Args); } + [Fact] + public void Should_Append_Destroy_When_AutoApprove_Is_True() + { + var fixture = new Fixture + { + Settings = new TerraformApplySettings + { + Destroy = true + } + }; + + var result = fixture.Run(); + + Assert.Contains("-destroy", result.Args); + } + [Fact] public void Should_set_plan_path() {