Skip to content

Commit

Permalink
Ignore sdk version in verify tests (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Sep 2, 2022
1 parent 4094c5a commit 988a9a3
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down Expand Up @@ -36,8 +35,7 @@
Header: {
event_id: Guid_2,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
3 changes: 1 addition & 2 deletions test/Sentry.NLog.Tests/IntegrationTests.Simple.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
12 changes: 4 additions & 8 deletions test/Sentry.Serilog.Tests/IntegrationTests.Simple.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down Expand Up @@ -43,8 +42,7 @@
Header: {
event_id: Guid_2,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down Expand Up @@ -89,8 +87,7 @@
Header: {
event_id: Guid_3,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down Expand Up @@ -139,8 +136,7 @@
Header: {
event_id: Guid_4,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
1 change: 1 addition & 0 deletions test/Sentry.Testing/VerifyExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public static SettingsTask IgnoreStandardSentryMembers(this SettingsTask setting
_.Converters.Add(new SpansConverter());
_.Converters.Add(new ContextsConverter());
})
.IgnoreMember("version")
.IgnoreMembersWithType<SdkVersion>()
.IgnoreMembersWithType<DateTimeOffset>()
.IgnoreMembersWithType<SpanId>()
Expand Down
3 changes: 1 addition & 2 deletions test/Sentry.Tests/EventProcessorTests.Discard.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
{
Header: {
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
3 changes: 1 addition & 2 deletions test/Sentry.Tests/EventProcessorTests.Simple.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down Expand Up @@ -38,8 +37,7 @@
{
Header: {
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Header: {
event_id: Guid_1,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down Expand Up @@ -39,8 +38,7 @@
Header: {
event_id: Guid_2,
sdk: {
name: sentry.dotnet,
version: 3.20.1
name: sentry.dotnet
}
},
Items: [
Expand Down

0 comments on commit 988a9a3

Please sign in to comment.