Skip to content

test(#756): pin SSM's projection and record it - #1353

Merged
scttfrdmn merged 1 commit into
mainfrom
test/756-ssm-wire-projections
Oct 3, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
test/756-ssm-wire-projections

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

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

SSMParameter declares AccountID and Region, plus EverTagged as ever_tagged,omitempty. None of
them reaches a body:

  • The parameter reads answer items built member by member.
  • The writes answer maps of published members.

What the new test asserts

emulator/ssm_wire_test.go uses the shared wireAssertNoMemberJSON to drive every operation that
answers a parameter
:

  • Write: PutParameter.
  • Reads: GetParameter, GetParameters, GetParametersByPath, DescribeParameters and
    GetParameterHistory.
  • Labels: LabelParameterVersion.
  • Tags: AddTagsToResource, ListTagsForResource and RemoveTagsFromResource.
  • Deletes: DeleteParameters and DeleteParameter.

SSM's command operations (SendCommand, GetCommandInvocation, DescribeInstanceInformation) render
no parameter and are not this record's.

It reads AccountID/Region back, then tags the parameter and reads ever_tagged: true back before
walking any response (#938, #1304).

Negative controls (each run, then restored; ssm_plugin.go verified diff-free)

  1. Region injected into GetParameter's Parameter fails exactly GetParameter.
  2. The tag write removed fails at the ever_tagged read-back.

The ratchet

before: 319 declared, 258 projected across 107 records, 9 internal across 6 records, 52 still reachable
after:  319 declared, 261 projected across 108 records, 9 internal across 6 records, 49 still reachable

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.

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

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 7cc21dc into main Oct 3, 2026
18 checks passed
@scttfrdmn
scttfrdmn deleted the test/756-ssm-wire-projections branch October 3, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant