Skip to content

Commit

Permalink
test: decode the body?
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Oct 16, 2024
1 parent 0d3b487 commit e235c32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@

assert_requested(:post, 'http://localhost:4318/v1/metrics') do |req|
puts 'req.body'
puts Zlib.gunzip(req.body)
puts Opentelemetry::Proto::Collector::Metrics::V1::ExportMetricsServiceRequest.decode(Zlib.gunzip(req.body))

req.body == Zlib.gzip(encoded_etsr) # is asserting that the body of the HTTP request is equal to the result of gzipping the encoded_etsr.
end
Expand Down

0 comments on commit e235c32

Please sign in to comment.