hashicorp / hashicorp/terraform-plugin-testing

`TestCheckOutput` and `TestMatchOutput` do not support collection types

Open
#162 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
68
Forks
22
Avg merge
2d 12h
Merged PRs (30d)
1

Description

### terraform-plugin-testing version

```
github.com/hashicorp/terraform-plugin-testing v1.4.0
```

### Expected Behavior

The output name should support the count and indexing syntax supported by the attribute check functions

### Actual Behavior

When using the count and indexing syntax on a `map` output, the following error is returned:

```
* Check 6/7 error: Not found: stack_outputs.%
* Check 7/7 error: Not found: stack_outputs.DataOut
```

When passing the top-level output name, the following error is returned:

```
* Check 6/6 error: Output 'stack_outputs': expected "try_this", got &terraform.OutputState{Sensitive:false, Type:"map", Value:map[string]interface {}{"DataOut":"pre-in1-post"}, mu:sync.Mutex{state:0, sema:0x0}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.