tests: Add iam_tags to expected responses#13150
Merged
Conversation
Update the AWS auth backend acceptance tests to account for the new `iam_tags` field that comes back on responses.
calvn
approved these changes
Nov 15, 2021
Contributor
calvn
left a comment
There was a problem hiding this comment.
Looks good. I wonder if we should take this opportunity to rename the test to TestAcceptanceBackend_* to make them more explicit?
Renamed TestBackend_* to TestAcceptanceBackend_* if the test requires AWS credentials. Otherwise left the name as TestBackend_* and set `AcceptanceTest: false`.
IAM roles and users have a 64 character limit, and adding Acceptance to the test names was putting some over the length limit, so modified generateUniqueName() to take a max length parameter and added functions for each type of name generation (user, role, group).
Member
Author
calvn
approved these changes
Nov 22, 2021
benashz
approved these changes
Nov 22, 2021
pull bot
pushed a commit
to NOUIY/vault
that referenced
this pull request
Mar 19, 2026
…ashicorp#13164) * Update vault-plugin-auth-kubernetes to v0.24.0 (hashicorp#13150) * tidy up --------- Co-authored-by: Ben Ash <32777270+benashz@users.noreply.github.com> Co-authored-by: Ben Ash <bash@hashicorp.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the AWS auth backend acceptance tests to account for the new
iam_tagsfield that comes back on responses.Also renames the tests that require AWS credentials to
TestAcceptanceBackend_*(which also required changing the unique name generation function since role names were going over the 64 character limit).I ran the unit tests like this (excluding extraneous logging):
And the acceptance tests on an m5.large instance like this (excluding logging):