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

github_repository: Make non-updatable fields ForceNew #135

Merged
merged 1 commit into from
Aug 15, 2018

Conversation

radeksimko
Copy link
Contributor

Before patch

TF_ACC=1 go test ./github -v -run=TestAccGithubRepository_autoInitForceNew -timeout 120m
=== RUN   TestAccGithubRepository_autoInitForceNew
--- FAIL: TestAccGithubRepository_autoInitForceNew (3.69s)
	testing.go:518: Step 1 error: Error applying: 1 error(s) occurred:

		* github_branch_protection.repo_name_master: 1 error(s) occurred:

		* github_branch_protection.repo_name_master: PUT https://api.github.com/repos/terraformtesting/tf-acc-test-9t6u4hp8pe/branches/master/protection: 404 Branch not found []
FAIL
FAIL	github.com/terraform-providers/terraform-provider-github/github	3.723s

After patch

TF_ACC=1 go test ./github -v -run=TestAccGithubRepository_ -timeout 120m
=== RUN   TestAccGithubRepository_basic
--- PASS: TestAccGithubRepository_basic (4.00s)
=== RUN   TestAccGithubRepository_archive
--- PASS: TestAccGithubRepository_archive (2.48s)
=== RUN   TestAccGithubRepository_archiveUpdate
--- PASS: TestAccGithubRepository_archiveUpdate (5.34s)
=== RUN   TestAccGithubRepository_importBasic
--- PASS: TestAccGithubRepository_importBasic (2.33s)
=== RUN   TestAccGithubRepository_defaultBranch
--- PASS: TestAccGithubRepository_defaultBranch (5.72s)
=== RUN   TestAccGithubRepository_templates
--- PASS: TestAccGithubRepository_templates (3.22s)
=== RUN   TestAccGithubRepository_topics
--- PASS: TestAccGithubRepository_topics (7.68s)
=== RUN   TestAccGithubRepository_autoInitForceNew
--- PASS: TestAccGithubRepository_autoInitForceNew (6.44s)
PASS
ok  	github.com/terraform-providers/terraform-provider-github/github	37.250s

@radeksimko radeksimko added the Type: Bug Something isn't working as documented label Aug 15, 2018
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.

LGTM 👍

@radeksimko radeksimko merged commit e139c21 into master Aug 15, 2018
@radeksimko radeksimko deleted the b-forcenew-auto-init branch August 15, 2018 16:44
jordane added a commit to jordane/terraform-provider-github that referenced this pull request Feb 7, 2019
After PR integrations#135, auto_init, license_template, and gitignore_template now all
have ForceNew set to true, which means they *will* affect the resource after
initial creation. See also PR integrations#148, integrations#155, integrations#164

Signed-off-by: Jordan Evans <jevans@linuxfoundation.org>
kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
…ew-auto-init

github_repository: Make non-updatable fields ForceNew
kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
After PR integrations#135, auto_init, license_template, and gitignore_template now all
have ForceNew set to true, which means they *will* affect the resource after
initial creation. See also PR integrations#148, integrations#155, integrations#164

Signed-off-by: Jordan Evans <jevans@linuxfoundation.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants