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

Only set oauth_token_id and github_app_installation_id if configured #835

Merged
merged 3 commits into from
Mar 31, 2023

Conversation

moensch
Copy link
Contributor

@moensch moensch commented Mar 29, 2023

fixes #834

Description

Address #834 - only set oauth_token_id and github_app_installation_id if configured. Before this change, they'd be set to an empty string.

  • changelog updated
  • No documentation change needed

Testing plan

  1. Make a new tfe_workspace with vcs_repo.oauth_token_id explicitly set to null
  2. Run terraform apply in trace mode
  3. Observe apply operation fail
  4. Observe JSON POST request containing "oauth-token-id": "",, instead of the expected "oauth-token-id": null,

External links

  • Related PR where this feature was first introduced: 808

Output from acceptance tests

Please run applicable acceptance tests locally and include the output here. See testing.md to learn how to run acceptance tests.

If you are an external contributor, your contribution(s) will first be reviewed before running them against the project's CI pipeline.

$ TESTARGS="-run TestAccTFEWorkspace" make testacc

...

@hashicorp-cla
Copy link

hashicorp-cla commented Mar 29, 2023

CLA assistant check
All committers have signed the CLA.

fixes hashicorp#834

Signed-off-by: Samuel Suter <ssuter@twilio.com>
@moensch moensch force-pushed the optional-vcs-params-to-null branch from ff5f23a to 94578ae Compare March 29, 2023 05:37
@moensch moensch marked this pull request as ready for review March 29, 2023 05:41
@moensch moensch requested a review from a team as a code owner March 29, 2023 05:41
Copy link
Contributor

@Uk1288 Uk1288 left a comment

Choose a reason for hiding this comment

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

LGTM, left a minor comment below.

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: UKEME BASSEY <ukeme.bassey@hashicorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

oauth-token-id is sent as empty string when set to null
3 participants