TritonDataCenter / terraform-provider-triton

Terraform Joyent Triton provider
https://www.terraform.io/docs/providers/triton/
Mozilla Public License 2.0
15 stars 24 forks source link

resource/machine: Add support for Instance Deletion Protection #97

Closed stack72 closed 6 years ago

stack72 commented 6 years ago

This will help an instance be protected against deletion mistakenly

terraform-provider-triton [compute-delete-protection●●] % acctests triton TestAccTritonMachine_
=== RUN   TestAccTritonMachine_basic
--- PASS: TestAccTritonMachine_basic (125.39s)
=== RUN   TestAccTritonMachine_affinity
--- PASS: TestAccTritonMachine_affinity (112.94s)
=== RUN   TestAccTritonMachine_dns
--- PASS: TestAccTritonMachine_dns (258.15s)
=== RUN   TestAccTritonMachine_nic
--- PASS: TestAccTritonMachine_nic (240.04s)
=== RUN   TestAccTritonMachine_addNIC
--- PASS: TestAccTritonMachine_addNIC (299.18s)
=== RUN   TestAccTritonMachine_firewall
--- PASS: TestAccTritonMachine_firewall (111.92s)
=== RUN   TestAccTritonMachine_metadata
--- PASS: TestAccTritonMachine_metadata (165.13s)
=== RUN   TestAccTritonMachine_cns
--- PASS: TestAccTritonMachine_cns (217.36s)
=== RUN   TestAccTritonMachine_locality
--- PASS: TestAccTritonMachine_locality (421.54s)
=== RUN   TestAccTritonMachine_deletionProtection
--- PASS: TestAccTritonMachine_deletionProtection (100.70s)
PASS
ok      github.com/terraform-providers/terraform-provider-triton/triton 2052.355s
kwilczynski commented 6 years ago

Hi @stack72, looks good! Very nice addition!

Let's ship. :shipit: