Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helper/resource: Add terraform plan output to TRACE logging #1058

Merged
merged 3 commits into from Sep 14, 2022

Commits on Sep 14, 2022

  1. helper/resource: Add terraform plan output to TRACE logging

    Reference: #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
    ...
    ```
    bflad committed Sep 14, 2022
    Copy the full SHA
    ed796de View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG for #1058

    bflad committed Sep 14, 2022
    Copy the full SHA
    4890e53 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    a1793b3 View commit details
    Browse the repository at this point in the history