Repository navigation
test(#756): pin Athena, Redshift Data, Scheduler and FSx projections and record them - #1358
Merged
Merged
Conversation
…and record them AthenaQuery, RedshiftDataStatement, SchedulerRecord and FSxFileSystem each declare an account and a Region, and neither reaches a response: Athena and Redshift Data answer maps built member by member, and Scheduler and FSx answer schedRecordToWire and fsxToWire. Four new tests walk every routed operation, reading each record's members back first; Scheduler and FSx spell the account account_id, which a fold does not reach, so their walks name it. The Redshift Data test also pins CreatedAt and UpdatedAt as numbers. They already render that way, so #1305's Redshift Data row is stale. Shared request and read-back helpers join emulator/wire_members_test.go. check-wire-bookkeeping goes from 273 projected across 114 records to 281 across 118, and from 37 still reachable to 29. #756 stays open.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Oct 3, 2026
scttfrdmn
added a commit
that referenced
this pull request
Oct 3, 2026
…tion, with CreateTimestamp as epoch seconds (#1362) DescribeDeliveryStream answered FirehoseDeliveryStream whole: AccountId and Region, which API_DeliveryStreamDescription does not publish (#756), and Tags, which it does not publish either. It also answered CreateTimestamp as an RFC3339 string, which an awsJson1_1 SDK cannot decode (#1305). The new emulator/firehose_wire.go answers the five published members the record models, with the date as EpochSeconds. The stored record is unchanged. emulator/firehose_wire_test.go walks all six routed operations and pins CreateTimestamp as a number; firehose_plugin_test.go decodes the published shape rather than the record. check-wire-bookkeeping's #1305 note now records all three services as fixed. ACM was fixed by #1354, and Redshift Data already rendered numbers, as #1358's test pins. check-wire-bookkeeping goes from 290 projected across 124 records to 292 across 125, and from 20 still reachable to 18. Fixes #1305 #756 stays open.
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 first of six PRs in #756's tail. It covers four citation-only records and makes no
production code changes.
AthenaQueryRedshiftDataStatementSchedulerRecordschedRecordToWireFSxFileSystemfsxToWireEach test reads the record's account and Region back from state before asserting their absence.
Scheduler and FSx spell the account
account_id, which a case fold does not reach, so their walksname that spelling too.
A #1305 finding
The Redshift Data test also pins
CreatedAtandUpdatedAtas numbers. They already renderthrough
stmt.CreatedAt.Unix(), so #1305's Redshift Data row describes behavior that no longerexists. I will comment on #1305 once this merges, which leaves Firehose as its only open row. (They
are integer seconds where the page samples fractional ones. That still decodes, and is noted rather
than changed.)
Shared helpers
emulator/wire_members_test.gogainswireSetup,wireJSONTarget,wireREST,wireRequireHeldandwireRunJSON, so these four tests are each a few dozen lines rather than four copies of the sameplumbing.
Negative control (run, then restored; all four plugins verified diff-free)
I patched each service's JSON responder to inject a bookkeeping member into every body, using a
different spelling per service:
AccountID,Region,account_idandregion. That failed 9/9Athena, 3/3 Redshift Data, 3/3 FSx and 4/5 Scheduler subtests. The fifth Scheduler
operation answers without going through
schedulerJSONResponse, so the injection could not reach it.Its walk still runs and guards it.
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.