Automating Tests for Terraform

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

Комментарии • 6

  • @ChristopherKMEtou
    @ChristopherKMEtou 6 месяцев назад +1

    This looks awesome. But being someone who build terraform modules regularly, I doubt this will replace the current unit and integration testing methods that consist in deploying resources and validate them to ensure a module does what it is intended for.

  • @veers8002
    @veers8002 Месяц назад

    Thanks for this informative video. I have a few queries about 'terraform test':
    Since it doesn't have a persistent state file, how does it maintain a temporary state to track resources?
    What happens if the test is interrupted? How does recovery from interrupted tests work, and how are orphaned resources handled?

    • @HashiCorp
      @HashiCorp  Месяц назад

      Thanks for your interest in `terraform test`, to scratch the surface on your questions:
      - `terraform test` stores state file(s) in memory during the period the test is running
      - an interrupted `terraform test` operation will behave in the same way a standard `terraform apply` does, where any resources created will need to be cleaned up
      - Any resources leftover from a `terraform test` operation will be listed as and the diagnostics will provide additional details
      Additional information can be found in the test documentation: developer.hashicorp.com/terraform/cli/commands/test#state-management and we're happy to have more in-depth conversations on our community forum: discuss.hashicorp.com/c/terraform-core/27

    • @veers8002
      @veers8002 Месяц назад +1

      @@HashiCorp Thanks a lot for the clarification 👌

  • @alexkhaerov
    @alexkhaerov 6 месяцев назад

    Looks promising, native test framework.

  • @ferdzcruz8590
    @ferdzcruz8590 4 месяца назад +1

    atta boy KZ!