Skip to content

Commit

Permalink
Updating summary and adding a test
Browse files Browse the repository at this point in the history
  • Loading branch information
sergJozee authored and nils-a committed May 23, 2024
1 parent 18ca1c8 commit bac5e0f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Cake.Terraform.Tests/TerraformApplyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit bac5e0f

Please sign in to comment.