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

Fix upgrade v2.2.1 -> v3.4.0 forces replacement #304

Merged
merged 6 commits into from
Sep 2, 2022

Conversation

bendbennett
Copy link
Contributor

@bendbennett bendbennett commented Aug 31, 2022

References: #302

This should address #302 insofar as it fixes the issue when using the config supplied by blgm and the config supplied by alexpoto.

@bendbennett bendbennett requested a review from a team as a code owner August 31, 2022 20:15
@github-actions github-actions bot added size/L and removed size/XS labels Aug 31, 2022
Comment on lines 509 to 515
// TestAccResourcePassword_UpgradeFromVersion2_2_1 requires that you are running an amd64 Terraform binary
// if you are running this test locally on arm64 architecture otherwise you will see the following error:
//
// Error: Incompatible provider version
//
// Provider registry.terraform.io/hashicorp/random v2.2.1 does not have a
// package available for your current platform ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can codify this logic into the test via:

TestCase{
  PreCheck: func() {
    if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
      t.Skip("This test requires darwin/amd64 to download the old provider version. Setting TF_ACC_TERRAFORM_PATH to darwin/amd64 compatible Terraform binary can be used as a workaround.")
    }
  },
  // ... other fields
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Have incorporated.

Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🚀

@bendbennett bendbennett merged commit d4872da into main Sep 2, 2022
@bendbennett bendbennett deleted the bendbennett/issues-302 branch September 2, 2022 10:58
@blgm
Copy link

blgm commented Sep 3, 2022

Thank you @bendbennett and @bflad!

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants