mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-21 18:56:57 -05:00
* [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
26 lines
362 B
HCL
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
|
|
]
|
|
}
|