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

Fixes failing tests for make test run in build step #2110

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

vinay-gopalan
Copy link
Contributor

@vinay-gopalan vinay-gopalan commented Dec 13, 2023

This PR adds missing testutil.SkipTestAcc(t) to a few tests that were updated as a part of #1997. The build step was previously failing since these tests were not being skipped when running make test (these should be skipped and only run on make testacc). This fixes the build

@vinay-gopalan vinay-gopalan requested a review from a team December 13, 2023 11:24
@@ -32,7 +32,7 @@ const gcpJSONCredentials string = `
`

func TestGCPAuthBackend_basic(t *testing.T) {
testutil.SkipTestEnvSet(t, testutil.EnvVarSkipVaultNext)
Copy link
Contributor Author

@vinay-gopalan vinay-gopalan Dec 13, 2023

Choose a reason for hiding this comment

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

This test no longer needs this skip step since all features being tested have been released. Since I was already updating the code I went ahead and removed it

@github-actions github-actions bot added size/S and removed size/XS labels Dec 13, 2023
testutil.TestAccCheckAuthMountExists(resourceName,
&resAuth,
testProvider.Meta().(*provider.ProviderMeta).MustGetClient()),
githubAuthMountExistsHelperNS(resourceName, &resAuth),
Copy link
Contributor Author

@vinay-gopalan vinay-gopalan Dec 13, 2023

Choose a reason for hiding this comment

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

This test was not getting the correct namespaced client; a wrapper method that fetches the Vault client in the correct namespace has been added to mitigate this

@fairclothjm fairclothjm merged commit 541ce93 into main Dec 13, 2023
12 checks passed
@fairclothjm fairclothjm deleted the vinay/fix-build-and-changelog branch December 13, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants