Repository navigation
test(#756): pin SSM's projection and record it - #1353
Merged
Merged
Conversation
SSMParameter declares AccountID, Region and ever_tagged, and none reaches a response: the parameter reads answer items built member by member, and the writes answer maps of published members. emulator/ssm_wire_test.go drives every operation that answers a parameter, tagging it and reading ever_tagged back before walking any response. check-wire-bookkeeping goes from 258 projected across 107 records to 261 across 108, and from 52 still reachable to 49. #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 sixth of ten PRs in #756's 3-line block, and the last of the citation-only ones. ACM,
Budgets, CloudTrail and SSO follow as fixes.
SSM is already projected
SSMParameterdeclaresAccountIDandRegion, plusEverTaggedasever_tagged,omitempty. None ofthem reaches a body:
What the new test asserts
emulator/ssm_wire_test.gouses the sharedwireAssertNoMemberJSONto drive every operation thatanswers a parameter:
GetParameterHistory.
SSM's command operations (
SendCommand,GetCommandInvocation,DescribeInstanceInformation) renderno parameter and are not this record's.
It reads
AccountID/Regionback, then tags the parameter and readsever_tagged: trueback beforewalking any response (#938, #1304).
Negative controls (each run, then restored;
ssm_plugin.goverified diff-free)Regioninjected intoGetParameter'sParameterfails exactlyGetParameter.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.