Closed smudge closed 2 years ago
Needs somebody from @Betterment/journaled-owners to claim domain review Needs somebody from @jmileham to claim platform review
Use the shovel operator to claim, e.g.:
@myname << domain && platform
(Ignored request for platform review from coreyja, ceslami, danf1024. See here for our list of platform experts.)
is it worth considering making the partial-match quality clearer by naming the matcher journal_event_matching
or something? Also, should we make it clear in the readme whether the singular (or plural) forms will fail to match if additional journal entries are logged? Should there be an option to make it work the other way if requested?
Needs somebody from @Betterment/journaled-owners to claim domain review Needs somebody from @jmileham to claim platform review
Use the shovel operator to claim, e.g.:
@myname << domain && platform
(Ignored request for platform review from coreyja, ceslami, danf1024. See here for our list of platform experts.)
Needs somebody from @Betterment/journaled-owners to claim domain review Needs somebody from @jmileham to claim platform review
Use the shovel operator to claim, e.g.:
@myname << domain && platform
(Ignored request for platform review from coreyja, ceslami, danf1024. See here for our list of platform experts.)
Needs somebody from @Betterment/journaled-owners to claim domain review Needs somebody from @jmileham to claim platform review
Use the shovel operator to claim, e.g.:
@myname << domain && platform
(Ignored request for platform review from coreyja, ceslami, danf1024. See here for our list of platform experts.)
This PR requires additional review because of new changes
Please get another domain review from @jmileham, or another reviewer with write access if unavailable.
This PR requires additional review because of new changes
Please get another domain review from @jmileham, or another reviewer with write access if unavailable.
Sorry for the churn! I've been throwing the matcher at a very large test suite, and I think I've covered all the corner cases now.
domainlgtm!
Summary
This introduces a new test helper. It allows you to check for one or more matching event being journaled:
This will only do exact matches on the specified fields (and will not match one way or the other against unspecified fields). Part of the reason I didn't do exact matching across all fields is that things like ID and git commit are generated on the fly, and I figured that what we really want is a way to concisely specify only the fields under test.
It also supports negative assertions (in two forms):
And it supports several chainable modifiers:
All of this can be chained together to test for multiple sets of events with multiple sets of options:
Other Information
As a bonus, this emits a new
ActiveSupport::Notification
that could be consumed to, say, emit aStatsD
event, etc. I added a callout in the README./domain @Betterment/journaled-owners /platform @jmileham @coreyja @ceslami @danf1024