Skip to content

Commit

Permalink
add a command package test that shows that we can still have provider…
Browse files Browse the repository at this point in the history
…s with dynamic configuration + required + interactive input merging

This test failed when buildProviderConfig still used configs.MergeBodies instead of hcl.MergeBodies
  • Loading branch information
mildwonkey committed Jun 22, 2021
1 parent 3bb8398 commit 64195ab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions internal/command/testdata/plan-provider-input/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
variable "users" {
default = {
one = "onepw"
two = "twopw"
}
}

provider "test" {
url = "example.com"

dynamic "auth" {
for_each = var.users
content {
user = auth.key
password = auth.value
}
}
}

resource "test_instance" "test" {}

0 comments on commit 64195ab

Please sign in to comment.