Skip to content

Commit

Permalink
Merge pull request #310 from bugsnag/remove-unused-mazerunner-steps
Browse files Browse the repository at this point in the history
Remove ios-specific steps which clashed with global mazerunner steps
  • Loading branch information
fractalwrench authored Aug 22, 2018
2 parents 579c9a6 + 81ef9c7 commit 3a68f27
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions features/steps/ios_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,6 @@
}
end

# TODO: move upstream into maze-runner
Then("request {int} is valid for the session tracking API") do |index|
steps %Q{
Then the "Bugsnag-API-Key" header is not null for request #{index}
And the "Content-Type" header equals "application/json" for request #{index}
And the "Bugsnag-Payload-Version" header equals "1.0" for request #{index}
And the "Bugsnag-Sent-At" header is a timestamp for request #{index}
And the payload field "app" is not null for request #{index}
And the payload field "device" is not null for request #{index}
And the payload field "notifier.name" is not null for request #{index}
And the payload field "notifier.url" is not null for request #{index}
And the payload field "notifier.version" is not null for request #{index}
And the payload has a valid sessions array for request #{index}
}
end

Then("request {int} is valid for the error reporting API") do |index|
steps %Q{
Then the "Bugsnag-API-Key" header is not null for request #{index}
And the "Content-Type" header equals "application/json" for request #{index}
And the "Bugsnag-Sent-At" header is a timestamp for request #{index}
And the payload field "notifier.name" is not null for request #{index}
And the payload field "notifier.url" is not null for request #{index}
And the payload field "notifier.version" is not null for request #{index}
And the payload field "events" is a non-empty array for request #{index}
And each element in payload field "events" has "severity" for request #{index}
And each element in payload field "events" has "severityReason.type" for request #{index}
And each element in payload field "events" has "unhandled" for request #{index}
And each element in payload field "events" has "exceptions" for request #{index}
}
end

Then("the payload field {string} of request {int} equals the payload field {string} of request {int}") do |field1, request_index1, field2, request_index2|
value1 = read_key_path(find_request(request_index1)[:body], field1)
value2 = read_key_path(find_request(request_index2)[:body], field2)
Expand Down

0 comments on commit 3a68f27

Please sign in to comment.