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

resource/aws_codebuild_project: Deprecate source and secondary_sources auth blocks #17465

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Feb 4, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Reference: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_SourceAuth.html
Closes #13450

Currently, the following consistent test failure occurs in AWSCodeBuildProject acceptance testing:

--- FAIL: TestAccAWSCodeBuildProject_Source_Auth (11.50s)
    testing.go:683: Step 1 error: errors during apply:

        Error: Error creating CodeBuild project: InvalidInputException: No Access token found, please visit AWS CodeBuild console to connect to GitHub

The API documentation now very explicitly states this underlying API type is deprecated. Here we mark the block and underlying attributes as deprecated suggesting the aws_codebuild_source_credential resource and removing the problematic test rather than temporarily introducing a skipping mechanism.

@bflad bflad added the technical-debt Addresses areas of the codebase that need refactoring or redesign. label Feb 4, 2021
@bflad bflad requested a review from a team as a code owner February 4, 2021 17:57
@ghost ghost added size/M Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/codebuild Issues and PRs that pertain to the codebuild service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 4, 2021
bflad added a commit that referenced this pull request Feb 4, 2021
@bflad bflad added this to the Roadmap milestone Feb 5, 2021
@anGie44 anGie44 self-assigned this Mar 17, 2021
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

Looks great 🚀! (once merge conflict is addressed)

…s auth blocks

Reference: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_SourceAuth.html
Reference: #13450

Currently, the following consistent test failure occurs in AWSCodeBuildProject acceptance testing:

```
--- FAIL: TestAccAWSCodeBuildProject_Source_Auth (11.50s)
    testing.go:683: Step 1 error: errors during apply:

        Error: Error creating CodeBuild project: InvalidInputException: No Access token found, please visit AWS CodeBuild console to connect to GitHub
```

The API documentation now very explicitly states this underlying API type is deprecated. Here we mark the block and underlying attributes as deprecated suggesting the `aws_codebuild_source_credential` resource and removing the problematic test rather than temporarily introducing a skipping mechanism.
@bflad bflad force-pushed the t-aws_codebuild_project-envvar branch from 731fdd1 to cbdc721 Compare March 17, 2021 17:33
@bflad bflad merged commit eb9bf5f into main Mar 17, 2021
@bflad bflad deleted the t-aws_codebuild_project-envvar branch March 17, 2021 18:12
github-actions bot pushed a commit that referenced this pull request Mar 17, 2021
@ghost
Copy link

ghost commented Apr 17, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 17, 2021
@breathingdust breathingdust modified the milestones: Roadmap, v3.32 Nov 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/codebuild Issues and PRs that pertain to the codebuild service. size/M Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

service/codebuild: Address TestAccAWSCodeBuildProject failure
3 participants