-
Notifications
You must be signed in to change notification settings - Fork 549
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
Conversation
@@ -32,7 +32,7 @@ const gcpJSONCredentials string = ` | |||
` | |||
|
|||
func TestGCPAuthBackend_basic(t *testing.T) { | |||
testutil.SkipTestEnvSet(t, testutil.EnvVarSkipVaultNext) |
There was a problem hiding this comment.
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
testutil.TestAccCheckAuthMountExists(resourceName, | ||
&resAuth, | ||
testProvider.Meta().(*provider.ProviderMeta).MustGetClient()), | ||
githubAuthMountExistsHelperNS(resourceName, &resAuth), |
There was a problem hiding this comment.
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
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 runningmake test
(these should be skipped and only run onmake testacc
). This fixes the build