integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
891 stars 736 forks source link

Fix 5.43 upgrade signoff #2222

Open bzarboni1 opened 6 months ago

bzarboni1 commented 6 months ago

Resolves #I2077


Before the change?

After the change?

Pull request checklist

Does this introduce a breaking change?

Please see our docs on breaking changes to help!


kfcampbell commented 5 months ago

Thanks for the contribution! The newly-added test is failing for me:

--- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired (11.15s)
    --- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired/changes_the_web_commit_signoff_required_attribute_for_a_repository (5.67s)
        --- SKIP: TestAccGithubRepositoryWebCommitSignoffRequired/changes_the_web_commit_signoff_required_attribute_for_a_repository/with_an_anonymous_account (0.00s)
        --- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired/changes_the_web_commit_signoff_required_attribute_for_a_repository/with_an_individual_account (5.67s)
        --- SKIP: TestAccGithubRepositoryWebCommitSignoffRequired/changes_the_web_commit_signoff_required_attribute_for_a_repository/with_an_organization_account (0.00s)
    --- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired/changes_a_non_web_commit_signoff_required_attribute_for_a_repository (5.49s)
        --- SKIP: TestAccGithubRepositoryWebCommitSignoffRequired/changes_a_non_web_commit_signoff_required_attribute_for_a_repository/with_an_anonymous_account (0.00s)
        --- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired/changes_a_non_web_commit_signoff_required_attribute_for_a_repository/with_an_individual_account (5.49s)
        --- SKIP: TestAccGithubRepositoryWebCommitSignoffRequired/changes_a_non_web_commit_signoff_required_attribute_for_a_repository/with_an_organization_account (0.00s)
FAIL

with the following error:

    resource_github_repository_test.go:1648: Step 1/2 error: After applying this test step, the plan was not empty.
        stdout:

        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          ~ update in-place

        Terraform will perform the following actions:

          # github_repository.test will be updated in-place
          ~ resource "github_repository" "test" {
                id                          = "tf-acc-4apm1"
                name                        = "tf-acc-4apm1"
              - vulnerability_alerts        = true -> null
                # (32 unchanged attributes hidden)

                # (1 unchanged block hidden)
            }

        Plan: 0 to add, 1 to change, 0 to destroy.

Is this something you can reproduce?

bzarboni1 commented 5 months ago

Thanks for the contribution! The newly-added test is failing for me:

--- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired (11.15s)
    --- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired/changes_the_web_commit_signoff_required_attribute_for_a_repository (5.67s)
        --- SKIP: TestAccGithubRepositoryWebCommitSignoffRequired/changes_the_web_commit_signoff_required_attribute_for_a_repository/with_an_anonymous_account (0.00s)
        --- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired/changes_the_web_commit_signoff_required_attribute_for_a_repository/with_an_individual_account (5.67s)
        --- SKIP: TestAccGithubRepositoryWebCommitSignoffRequired/changes_the_web_commit_signoff_required_attribute_for_a_repository/with_an_organization_account (0.00s)
    --- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired/changes_a_non_web_commit_signoff_required_attribute_for_a_repository (5.49s)
        --- SKIP: TestAccGithubRepositoryWebCommitSignoffRequired/changes_a_non_web_commit_signoff_required_attribute_for_a_repository/with_an_anonymous_account (0.00s)
        --- FAIL: TestAccGithubRepositoryWebCommitSignoffRequired/changes_a_non_web_commit_signoff_required_attribute_for_a_repository/with_an_individual_account (5.49s)
        --- SKIP: TestAccGithubRepositoryWebCommitSignoffRequired/changes_a_non_web_commit_signoff_required_attribute_for_a_repository/with_an_organization_account (0.00s)
FAIL

with the following error:

    resource_github_repository_test.go:1648: Step 1/2 error: After applying this test step, the plan was not empty.
        stdout:

        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          ~ update in-place

        Terraform will perform the following actions:

          # github_repository.test will be updated in-place
          ~ resource "github_repository" "test" {
                id                          = "tf-acc-4apm1"
                name                        = "tf-acc-4apm1"
              - vulnerability_alerts        = true -> null
                # (32 unchanged attributes hidden)

                # (1 unchanged block hidden)
            }

        Plan: 0 to add, 1 to change, 0 to destroy.

Is this something you can reproduce?

Apologies for the late reply. I've tried it here on my end, and had a colleague try as well. The test are successful for us.

bzarboni1 commented 4 months ago

Bump