Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cawllec committed Sep 6, 2024
1 parent 80c05bf commit a7cb5ed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
validator.validate_header('Bugsnag-Api-Key') { |value| value.eql?($api_key) }
validator.validate_header('Content-Type') { |value| value.eql?('application/json') }
validator.validate_header('Bugsnag-Payload-Version') { |value| value.eql?('4') }
# validator.validate_header('Bugsnag-Sent-At') do |value|
# begin
# Date.iso8601(date)
# rescue Date::Error
# validator.success = false
# validator.errors << "bugsnag-sent-at header was expected to be an IOS 8601 date, but was '#{date}'"
# end
# end
validator.validate_header('Bugsnag-Sent-At') do |date|
begin
Date.iso8601(date)
rescue Date::Error
validator.success = false
validator.errors << "bugsnag-sent-at header was expected to be an IOS 8601 date, but was '#{date}'"
end
end

# notifier_name = Maze::Helper.read_key_path(validator.body, 'notifier.name')
# if notifier_name.nil? || !notifier_name.eql?('Bugsnag Go')
Expand Down

0 comments on commit a7cb5ed

Please sign in to comment.