Commit log
b6058eb
Add multiple numbers, file input, --all to resend-inbounds
Click to expand commit body
Accept repeatable --number flags and --file for bulk number lists. Add
--all to resend to every customer, gated behind interactive confirmation
(type y/yes) or --force. Abort in non-TTY without --force.
Widen the event filter to match both 'in' and 'thru' messages, since
both are inbound from the customer's perspective.
Validate that --all is mutually exclusive with --number/--file, and that
at least one targeting option is always provided.
Amolith
created
1 month ago
3d18a98
fix: filter_map broke on prod
Phillip Davis
created
1 month ago
7404d81
fix: `.then` and early-return stream events
Click to expand commit body
- previous code used `.then` on a non-promise, which doesn't work on
ruby 2.7
- also, early-return case failed to consider resend events, fixed that
Phillip Davis
created
1 month ago
b20d069
document control code stripping
Phillip Davis
created
1 month ago
39e82dc
test(port-out-pin): invalid format returns error
Phillip Davis
created
2 months ago
086cf8e
test(port-out-pin): mismatched pins returns error
Phillip Davis
created
2 months ago
603fca5
test(port-out-pin): complete nil pin returns error
Phillip Davis
created
2 months ago
d1649c1
test(port-out-pin): complete success sets pin
Phillip Davis
created
2 months ago
cc3b889
test(port-out-pin): execute rejects unregistered
Phillip Davis
created
2 months ago
4eb32f4
test(port-out-pin): execute returns form
Phillip Davis
created
2 months ago
916eab9
test(disco-items): unregistered user gets error
Phillip Davis
created
2 months ago
809763b
test(disco-items): ineligible tn shows no commands
Phillip Davis
created
2 months ago
dc1564b
test(disco-items): eligible tn shows port-out cmd
Phillip Davis
created
2 months ago
03fc2fa
test(disco-info): non-get produces no output
Phillip Davis
created
2 months ago
ae8dbbb
test(disco-info): gateway returns gateway identity
Phillip Davis
created
2 months ago
5a5ba62
test(disco-info): user node returns user caps
Phillip Davis
created
2 months ago
7dbe844
refactor: process_stanza -> test_helper
Phillip Davis
created
2 months ago
4b389bb
refactor: xmpp_error_{text,name} -> test_helper
Phillip Davis
created
2 months ago
c1d4d3a
refactor: move `invoke_webhook` to test_helper
Phillip Davis
created
2 months ago
aa2d836
test(webhook): nil text with media, empty body
Phillip Davis
created
2 months ago
91096d5
test(webhook): empty to returns 400
Phillip Davis
created
2 months ago
4ee797e
test(webhook): non-array to returns 400
Phillip Davis
created
2 months ago
a437bc2
test(webhook): missing message/type returns 400
Phillip Davis
created
2 months ago
b40e75e
test(webhook): non-POST method produces no output
Phillip Davis
created
2 months ago
5de9ba4
test(webhook): non-root URI produces no output
Phillip Davis
created
2 months ago
f61d47d
test(webhook): empty params produces no output
Phillip Davis
created
2 months ago
1ab0958
test(webhook): unknown type sends notification
Phillip Davis
created
2 months ago
a8c44ff
test(webhook): empty text no media returns 400
Phillip Davis
created
2 months ago
cd4762e
test(webhook): resend emits stream event
Phillip Davis
created
2 months ago
7cfd167
test(webhook): received emits stream event
Phillip Davis
created
2 months ago
73a8a95
test(webhook): failed emits correct stream event
Phillip Davis
created
2 months ago
2d25c26
test(webhook): delivered stream event
Phillip Davis
created
2 months ago
76eadf1
test(webhook): unknown dir failed returns 400
Phillip Davis
created
2 months ago
4b00d69
test(webhook): unknown dir non-failed returns 400
Phillip Davis
created
2 months ago
b421077
test(webhook): unknown outbound returns 200
Phillip Davis
created
2 months ago
95a2e54
test(webhook): outbound unregistered returns 403
Phillip Davis
created
2 months ago
7b11bf0
test(webhook): failure sends one error
Phillip Davis
created
2 months ago
8c4a9ba
test(webhook): multi-to outbound no receipts
Phillip Davis
created
2 months ago
d2f3b02
test(webhook): delivery sends one receipt
Phillip Davis
created
2 months ago
36cd02e
refactor: move common setup code to test_helper
Phillip Davis
created
2 months ago
d13029c
test: groundwork for property tests
Click to expand commit body
- some extra generators for domain-specific data like NANPA-compliant
phone numbers, Bandwidth media URLs, and JIDs (could be better, but
nobody's perfect)
- Rake test tasks split into `unit` and `property` (existing `test`
target runs both and is still the default)
- `property` target picks a random seed, then uses that seed to set
`--seed=` (for minitest) and `srand` (for rantly). downside: you can
only seed a whole test, you can rerun just one property with the same
generated input. sad.
- `rake property` will, by default, collect failing seeds into
`test/stubs`
Phillip Davis
created
2 months ago
5803d8e
fix: REALLY set ARGV[0] in all tests
Click to expand commit body
turns out you need to set it in both test_helper and in em
- sgx_bwmsgsv2 references ARGV[0], so must set it before
requiring
- but each test runs in its own fiber, and fibers don't share ARGV
Phillip Davis
created
2 months ago
a1960e5
fix: require 'delegate'
Click to expand commit body
fails, at least under ruby 3, without this
Phillip Davis
created
2 months ago
93eae50
test(webhook): nil text with no media returns 400
Phillip Davis
created
2 months ago
112b8da
fix(webhook): reject empty body with no media
Click to expand commit body
When text is empty/nil and there is no media, return 400 instead of
falling through to message construction with nil text.
Phillip Davis
created
2 months ago
1ebdee3
test(webhook): single recipient with media stanza
Phillip Davis
created
2 months ago
13a2150
test(webhook): group stanza has addresses element
Phillip Davis
created
2 months ago
195e838
fix(webhook): reject empty recipients with 400
Click to expand commit body
When jparams['to'] is an empty array, return 400 instead of
falling through to message construction.
Phillip Davis
created
2 months ago
7315bef
test(webhook): single recipient text stanza shape
Phillip Davis
created
2 months ago
d8115f1
test(webhook): unregistered JID writes no stanza
Click to expand commit body
When the webhook references a phone number with no Redis JID mapping,
the handler returns 403 and writes no XMPP stanza.
Phillip Davis
created
2 months ago
Page 1 of 7