required_providers { testing = { source = "hashicorp/testing" version = "0.1.0" } } provider "testing" "default" {} variable "fail_plan" { type = bool default = false } variable "fail_apply" { type = bool default = false } component "self" { source = "./" providers = { testing = provider.testing.default } inputs = { id = "failed" input = "resource" fail_plan = var.fail_plan fail_apply = var.fail_apply } }