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

Fix failing TestHCPLinkConnected Test #19474

Merged
merged 5 commits into from
Mar 9, 2023
Merged

Conversation

marcboudreau
Copy link
Contributor

@marcboudreau marcboudreau commented Mar 7, 2023

This PR introduces a few minor corrections to avoid race conditions with the tests. It also corrects a syntax issue that led to most jobs from the CI GitHub Actions Workflow to be skipped.

In the end, the actual cause of the failing TestHCPLinkConnected test was that the HCP Link resource ended up in the unlinking state, so a new resource needed to be created and the associated secrets were updated.

@marcboudreau marcboudreau marked this pull request as draft March 7, 2023 17:22
…l from test that rely on env being modified.
@marcboudreau marcboudreau force-pushed the marcboudreau/fix-broken-test branch from dec3deb to d806629 Compare March 7, 2023 17:37
@marcboudreau marcboudreau marked this pull request as ready for review March 8, 2023 16:01
@marcboudreau marcboudreau requested a review from a team as a code owner March 8, 2023 16:01
Copy link
Contributor

@kubawi kubawi left a comment

Choose a reason for hiding this comment

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

LGTM

@marcboudreau marcboudreau merged commit e44bd4c into main Mar 9, 2023
@marcboudreau marcboudreau deleted the marcboudreau/fix-broken-test branch March 9, 2023 18:47
raymonstah pushed a commit that referenced this pull request Mar 17, 2023
* replace use of os.Unsetenv in test with t.Setenv and remove t.Parallel from test that rely on env being modified.

* experiment with using fromJSON function

* revert previous experiment

* including double quotes in the output value for the string ubuntu-latest

* use go run to launch gofumpt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants