Files
opentf/internal/command/testdata/test/with_double_interrupt/main.tf
Liam Cervante 4862812c94 testing framework: introduce interrupts for stopping tests (#33477)
* [testing framework] prepare for beta phase of development

* [Testing Framework] Add module block to test run blocks

* [testing framework] allow tests to define and override providers

* testing framework: introduce interrupts for stopping tests

* remove panic handling, will do it properly later
2023-07-10 14:53:13 +01:00

26 lines
362 B
HCL

variable "interrupts" {
type = number
}
resource "test_resource" "primary" {
value = "primary"
}
resource "test_resource" "secondary" {
value = "secondary"
interrupt_count = var.interrupts
depends_on = [
test_resource.primary
]
}
resource "test_resource" "tertiary" {
value = "tertiary"
depends_on = [
test_resource.secondary
]
}