Commit 0f41bb0
authored
helper/resource: Add
Reference: hashicorp/terraform-plugin-sdk#698
For example:
```console
$ TF_ACC=1 TF_LOG=TRACE go test -count=1 -run='TestTest_TestStep_ExternalProviders_DifferentVersions' -v ./helper/resource
...
2022-09-13T22:27:17.924-0400 [TRACE] sdk.helper_resource: Created plan with changes:
test_terraform_plan=
|
| Terraform used the selected providers to generate the following execution
| plan. Resource actions are indicated with the following symbols:
| + create
|
| Terraform will perform the following actions:
|
| # null_resource.test will be created
| + resource "null_resource" "test" {
| + id = (known after apply)
| }
|
| Plan: 1 to add, 0 to change, 0 to destroy.
test_name=TestTest_TestStep_ExternalProviders_DifferentVersions test_step_number=1 test_terraform_path=/opt/homebrew/bin/terraform test_working_directory=/var/folders/f3/2mhr8hkx72z9dllv0ry81zm40000gq/T/plugintest2492851432
...
2022-09-13T22:27:18.816-0400 [TRACE] sdk.helper_resource: Created plan with no changes: test_working_directory=/var/folders/f3/2mhr8hkx72z9dllv0ry81zm40000gq/T/plugintest2492851432 test_name=TestTest_TestStep_ExternalProviders_DifferentVersions test_step_number=2 test_terraform_path=/opt/homebrew/bin/terraform
...
```terraform plan output to TRACE logging (#1058)1 parent a096f3a commit 0f41bb0
File tree
3 files changed
+46
-4
lines changed- .changelog
- internal
- logging
- plugintest
3 files changed
+46
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
182 | 200 | | |
183 | 201 | | |
184 | 202 | | |
185 | 203 | | |
186 | 204 | | |
187 | 205 | | |
188 | 206 | | |
189 | | - | |
| 207 | + | |
190 | 208 | | |
191 | 209 | | |
192 | 210 | | |
193 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
194 | 230 | | |
195 | 231 | | |
196 | 232 | | |
| |||
0 commit comments