From b4210772e20e76d5937aea06c32797048c1f1ba2 Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Tue, 3 Mar 2026 15:34:18 -0500 Subject: [PATCH] test(webhook): unknown outbound returns 200 --- test/property/test_webhook_handler.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/property/test_webhook_handler.rb b/test/property/test_webhook_handler.rb index 61a4275262182f494dee2a88fdd2f3056d4b137c..ac650a9d2aa88c31848c71581c96b06780566e70 100644 --- a/test/property/test_webhook_handler.rb +++ b/test/property/test_webhook_handler.rb @@ -122,4 +122,21 @@ class WebhookPropertyTest < Minitest::Test } end em :test_outbound_unregistered_returns_403 + + def test_unknown_outbound_returns_200 + property_of { + Webhook + .new(REDIS) + .type { "unknown" } + .direction { "out" } + .generate + }.check { |metadata, example| + result = invoke_webhook(example) + assert_equal [200, {}, "OK"], result + assert_empty written + entries = REDIS.stream_entries("messages").sync + assert_empty entries + } + end + em :test_unknown_outbound_returns_200 end