-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
146 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.bugsnag; | ||
|
||
interface BeforeSendSession { | ||
void beforeSendSession(SessionPayload payload); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Feature: Runtime versions are included in all requests | ||
|
||
### Errors | ||
|
||
Scenario: Runtime versions included in Plain Java error | ||
When I run "HandledExceptionScenario" with the defaults | ||
Then I should receive a request | ||
And the request is valid for the error reporting API | ||
And the payload field "events.0.device.runtimeVersions.javaType" ends with "Runtime Environment" | ||
And the payload field "events.0.device.runtimeVersions.javaVersion" matches the regex "(\d.)+" | ||
|
||
Scenario: Runtime versions included in Spring Framework error | ||
When I run plain Spring "HandledExceptionScenario" with the defaults | ||
Then I should receive a request | ||
And the request is valid for the error reporting API | ||
And the payload field "events.0.device.runtimeVersions.javaType" ends with "Runtime Environment" | ||
And the payload field "events.0.device.runtimeVersions.javaVersion" matches the regex "(\d.)+" | ||
And the payload field "events.0.device.runtimeVersions.springFramework" matches the regex "(\d.)+" | ||
|
||
Scenario: Runtime versions included in Spring Boot error | ||
When I run spring boot "HandledExceptionScenario" with the defaults | ||
Then I should receive a request | ||
And the request is valid for the error reporting API | ||
And the payload field "events.0.device.runtimeVersions.javaType" ends with "Runtime Environment" | ||
And the payload field "events.0.device.runtimeVersions.javaVersion" matches the regex "(\d.)+" | ||
And the payload field "events.0.device.runtimeVersions.springFramework" matches the regex "(\d.)+" | ||
And the payload field "events.0.device.runtimeVersions.springBoot" matches the regex "(\d.)+" | ||
|
||
### Sessions | ||
|
||
Scenario: Runtime versions included in Plain Java session | ||
When I run "ManualSessionScenario" with the defaults | ||
Then I should receive a request | ||
And the request is valid for the session tracking API | ||
And the payload field "device.runtimeVersions.javaType" ends with "Runtime Environment" | ||
And the payload field "device.runtimeVersions.javaVersion" matches the regex "(\d.)+" | ||
|
||
Scenario: Runtime versions included in Spring Framework session | ||
When I run plain Spring "ManualSessionScenario" with the defaults | ||
Then I should receive a request | ||
And the request is valid for the session tracking API | ||
And the payload field "device.runtimeVersions.javaType" ends with "Runtime Environment" | ||
And the payload field "device.runtimeVersions.javaVersion" matches the regex "(\d.)+" | ||
And the payload field "device.runtimeVersions.springFramework" matches the regex "(\d.)+" | ||
|
||
Scenario: Runtime versions included in Spring Boot session | ||
When I run spring boot "ManualSessionScenario" with the defaults | ||
Then I should receive a request | ||
And the request is valid for the session tracking API | ||
And the payload field "device.runtimeVersions.javaType" ends with "Runtime Environment" | ||
And the payload field "device.runtimeVersions.javaVersion" matches the regex "(\d.)+" | ||
And the payload field "device.runtimeVersions.springFramework" matches the regex "(\d.)+" | ||
And the payload field "device.runtimeVersions.springBoot" matches the regex "(\d.)+" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version=3.4.6 | ||
version=3.5.0 | ||
group=com.bugsnag | ||
|
||
# Default properties | ||
|