-
Notifications
You must be signed in to change notification settings - Fork 908
Open
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Description
Expected Behavior
Acceptance tests should pass
Actual Behavior
Fails on the test creates and manages files on default branch if branch is omitted for both the individual and organization account.
It seems to be failing the test cleanup step because Github throws an error when it attempts to delete the default branch.
=== RUN TestAccGithubRepositoryFile/creates_and_manages_files_on_default_branch_if_branch_is_omitted/with_an_individual_account
testing_new.go:85: Error running post-test destroy, there may be dangling resources: exit status 1
Error: error deleting GitHub branch reference test-os-org/tf-acc-test-i03pq (refs/heads/test): DELETE https://api.github.com/repos/####/tf-acc-test-i03pq/git/refs/heads/test: 422 Cannot delete the default branch []
Terraform Version
Terraform v1.14.2
on darwin_arm64
Affected Resource(s)
- github_repository
Terraform Configuration Files
NoneSteps to Reproduce
Set env variables
go test -v ./... -run ^TestAccGithubRepositoryFile
Debug Output
Panic Output
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented