mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
terraform: test for querying count resources
This commit is contained in:
parent
3b3f92cd9b
commit
4454d534fc
@ -93,6 +93,19 @@ func TestStateFilterFilter(t *testing.T) {
|
||||
},
|
||||
},
|
||||
|
||||
"no count index": {
|
||||
"complete.tfstate",
|
||||
[]string{"module.consul.aws_instance.consul-green"},
|
||||
[]string{
|
||||
"*terraform.ResourceState: module.consul.aws_instance.consul-green[0]",
|
||||
"*terraform.InstanceState: module.consul.aws_instance.consul-green[0]",
|
||||
"*terraform.ResourceState: module.consul.aws_instance.consul-green[1]",
|
||||
"*terraform.InstanceState: module.consul.aws_instance.consul-green[1]",
|
||||
"*terraform.ResourceState: module.consul.aws_instance.consul-green[2]",
|
||||
"*terraform.InstanceState: module.consul.aws_instance.consul-green[2]",
|
||||
},
|
||||
},
|
||||
|
||||
"nested modules": {
|
||||
"nested-modules.tfstate",
|
||||
[]string{"module.outer"},
|
||||
|
Loading…
Reference in New Issue
Block a user