Repository navigation
test(#756): pin Secrets Manager's projection and record it - #1352
Merged
Merged
Conversation
SecretState declares AccountID, Region and ever_tagged, and none reaches a response: DescribeSecret answers smDescribeSecretBody, which emits published members only, and every other operation answers a map of published members. emulator/secretsmanager_wire_test.go drives all twelve routed operations, tagging the secret and reading ever_tagged back before walking any response. check-wire-bookkeeping goes from 255 projected across 106 records to 258 across 107, and from 55 still reachable to 52. #756 stays open.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
4 tasks done
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.
This is the fifth of ten PRs in #756's 3-line block. It is citation only: no production code
changes.
Secrets Manager is already projected
SecretStatedeclaresAccountIDandRegion, plusEverTaggedasever_tagged,omitempty. None ofthem reaches a body:
DescribeSecretanswerssmDescribeSecretBody, which emits only the members the page publishes.What the new test asserts
emulator/secretsmanager_wire_test.godrives all twelve routed operations with the sharedwireAssertNoMemberJSON. It readsAccountID/Regionback, then tags the secret and readsever_tagged: trueback before walking any response (#938, #1304).RotateSecretis sent aClientRequestTokenand aRotationLambdaARN. An SDK fills in the tokenitself, and a secret with no rotation configured needs the function named. Substrate correctly
refuses a raw request without them.
Negative controls (each run, then restored;
secretsmanager_plugin.goverified diff-free)Regionadded tosmDescribeSecretBodyfails exactlyDescribeSecret.ever_taggedread-back.The ratchet
Verification
All of these pass:
make lint: 0 issues.make test: race,-count=1.docs-reference-check docs-versions version-check discarded-unmarshal-check wire-bookkeeping-check operation-catalog-check operation-docs-check.#756 stays open.