Skip to content

Commit

Permalink
fix: resolve test failures caused by new Sinatra behavior (#144)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?

- [Sinatra 4.1.0 introduced a host authorization option to Sinatra
apps](sinatra/sinatra#2053). That authorization
check was failing requests made in tests.

## Short description of the changes

-  Update the Honeycomb test server stub to allow anybody to talk to it.

Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
  • Loading branch information
robbkidd and TylerHelmuth authored Dec 2, 2024
1 parent 8834f8d commit cc826fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/stub_honeycomb_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class StubHoneycombServer < Sinatra::Base
set :json_encoder, :to_json
set :host_authorization, { permitted_hosts: [] }

before do
@batch = JSON.parse(request.body.read.to_s)
Expand Down

0 comments on commit cc826fb

Please sign in to comment.