From 5f9d1e8d008015324388cce011bd90180d40d5ab Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Mon, 30 Sep 2024 13:16:33 +0200 Subject: [PATCH] make sure force works --- bundle/deploy/terraform/state_push_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundle/deploy/terraform/state_push_test.go b/bundle/deploy/terraform/state_push_test.go index 6aba3ed9f..4cc52b7a7 100644 --- a/bundle/deploy/terraform/state_push_test.go +++ b/bundle/deploy/terraform/state_push_test.go @@ -79,4 +79,10 @@ func TestStatePushLargeState(t *testing.T) { writeLocalState(t, ctx, b, largeState) diags := bundle.Apply(ctx, b, m) assert.ErrorContains(t, diags.Error(), "Terraform state file size exceeds the maximum allowed size of 10485760 bytes. Please reduce the number of resources in your bundle, split your bundle into multiple or re-run the command with --force flag") + + // Force the write. + b = statePushTestBundle(t) + b.Config.Bundle.Force = true + diags = bundle.Apply(ctx, b, m) + assert.NoError(t, diags.Error()) }