File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 44 hooks :
55 - id : terraform_docs
66 - id : terraform_fmt
7+ args :
8+ - --args=-recursive
79 - id : terraform_validate
810 args :
911 - --hook-config=--retry-once-with-cleanup=true
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ run "create_vault_with_custom_rules" {
44 plan_name = " example-plan"
55
66 predefined_rules = [" daily-snapshot" , " yearly-snapshot" ]
7- custom_rules = [
7+ custom_rules = [
88 # Daily Snapshot but change the schedule to run at 12:00 UTC
99 {
1010 name = " daily-snapshot"
@@ -13,7 +13,7 @@ run "create_vault_with_custom_rules" {
1313
1414 # Yearly Snapshot but delete after 3 years instead
1515 {
16- name = " yearly-snapshot"
16+ name = " yearly-snapshot"
1717 lifecycle = {
1818 delete_after = 1095
1919 }
@@ -37,12 +37,12 @@ run "create_vault_with_custom_rules" {
3737 }
3838
3939 assert {
40- condition = one ([for rule in aws_backup_plan . main . rule : rule if rule . rule_name == " daily-snapshot" ]). schedule == " cron(0 12 ? * * *)"
40+ condition = one ([for rule in aws_backup_plan . main . rule : rule if rule . rule_name == " daily-snapshot" ]). schedule == " cron(0 12 ? * * *)"
4141 error_message = " Expected daily-snapshot rule to have new schedule."
4242 }
4343
4444 assert {
45- condition = one (one ([for rule in aws_backup_plan . main . rule : rule if rule . rule_name == " yearly-snapshot" ]). lifecycle ). delete_after == 1095
45+ condition = one (one ([for rule in aws_backup_plan . main . rule : rule if rule . rule_name == " yearly-snapshot" ]). lifecycle ). delete_after == 1095
4646 error_message = " Expected yearly-snapshot rule to have new lifecycle."
4747 }
4848}
You can’t perform that action at this time.
0 commit comments