Skip to content

Commit

Permalink
adapt integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-git committed Nov 19, 2024
1 parent ad5d775 commit 14f86c6
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,9 @@ public AspNetCore5AutoUserEventsAnonModeSecurityEnabled(AspNetCoreTestFixture fi
}
}

public class AspNetCore5AutoUserEventsExtendedModeSecurityDisabled : AspNetCore5AutoUserEvents
public class AspNetCore5AutoUserEventsExtendedModeSecurityDisabled(AspNetCoreTestFixture fixture, ITestOutputHelper outputHelper)
: AspNetCore5AutoUserEvents(fixture, outputHelper, false, "extended")
{
public AspNetCore5AutoUserEventsExtendedModeSecurityDisabled(AspNetCoreTestFixture fixture, ITestOutputHelper outputHelper)
: base(fixture, outputHelper, false, "extended")
{
}
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Type: web,
Tags: {
appsec.events.users.login.success.track: true,
appsec.events.users.login.success.usr.login: TestUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -29,6 +30,8 @@
span.kind: server,
usr.id: Guid_2,
_dd.appsec.events.users.login.success.auto.mode: identification,
_dd.appsec.usr.id: Guid_2,
_dd.appsec.usr.login: TestUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Type: web,
Tags: {
appsec.events.users.login.success.track: true,
appsec.events.users.login.success.usr.login: TestUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -29,6 +30,8 @@
span.kind: server,
usr.id: Guid_2,
_dd.appsec.events.users.login.success.auto.mode: identification,
_dd.appsec.usr.id: Guid_2,
_dd.appsec.usr.login: TestUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
appsec.events.users.login.failure.track: true,
appsec.events.users.login.failure.usr.exists: true,
appsec.events.users.login.failure.usr.id: anon_7bcd1c9fc4f6e4c2460e0ad38d6ad0d9,
appsec.events.users.login.failure.usr.login: anon_eb97d409396a3e5392936dad92b909da,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -30,6 +31,8 @@
runtime-id: Guid_1,
span.kind: server,
_dd.appsec.events.users.login.failure.auto.mode: anonymization,
_dd.appsec.usr.id: anon_7bcd1c9fc4f6e4c2460e0ad38d6ad0d9,
_dd.appsec.usr.login: anon_eb97d409396a3e5392936dad92b909da,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Tags: {
appsec.events.users.login.failure.track: true,
appsec.events.users.login.failure.usr.exists: false,
appsec.events.users.login.failure.usr.id: anon_c34de12d00b78a9977da847b7e55202e,
appsec.events.users.login.failure.usr.login: anon_c34de12d00b78a9977da847b7e55202e,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -30,6 +30,7 @@
runtime-id: Guid_1,
span.kind: server,
_dd.appsec.events.users.login.failure.auto.mode: anonymization,
_dd.appsec.usr.login: anon_c34de12d00b78a9977da847b7e55202e,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Type: web,
Tags: {
appsec.events.users.login.success.track: true,
appsec.events.users.login.success.usr.login: anon_eb97d409396a3e5392936dad92b909da,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -29,6 +30,8 @@
span.kind: server,
usr.id: anon_7bcd1c9fc4f6e4c2460e0ad38d6ad0d9,
_dd.appsec.events.users.login.success.auto.mode: anonymization,
_dd.appsec.usr.id: anon_7bcd1c9fc4f6e4c2460e0ad38d6ad0d9,
_dd.appsec.usr.login: anon_eb97d409396a3e5392936dad92b909da,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
appsec.events.users.login.failure.track: true,
appsec.events.users.login.failure.usr.exists: true,
appsec.events.users.login.failure.usr.id: Guid_1,
appsec.events.users.login.failure.usr.login: TestUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -30,6 +31,8 @@
runtime-id: Guid_2,
span.kind: server,
_dd.appsec.events.users.login.failure.auto.mode: identification,
_dd.appsec.usr.id: Guid_1,
_dd.appsec.usr.login: TestUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Tags: {
appsec.events.users.login.failure.track: true,
appsec.events.users.login.failure.usr.exists: false,
appsec.events.users.login.failure.usr.id: NoSuchUser,
appsec.events.users.login.failure.usr.login: NoSuchUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -30,6 +30,7 @@
runtime-id: Guid_1,
span.kind: server,
_dd.appsec.events.users.login.failure.auto.mode: identification,
_dd.appsec.usr.login: NoSuchUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Type: web,
Tags: {
appsec.events.users.login.success.track: true,
appsec.events.users.login.success.usr.login: TestUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -29,6 +30,8 @@
span.kind: server,
usr.id: Guid_2,
_dd.appsec.events.users.login.success.auto.mode: identification,
_dd.appsec.usr.id: Guid_2,
_dd.appsec.usr.login: TestUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
appsec.events.users.login.failure.track: true,
appsec.events.users.login.failure.usr.exists: true,
appsec.events.users.login.failure.usr.id: Guid_1,
appsec.events.users.login.failure.usr.login: TestUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -30,6 +31,8 @@
runtime-id: Guid_2,
span.kind: server,
_dd.appsec.events.users.login.failure.auto.mode: identification,
_dd.appsec.usr.id: Guid_1,
_dd.appsec.usr.login: TestUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Tags: {
appsec.events.users.login.failure.track: true,
appsec.events.users.login.failure.usr.exists: false,
appsec.events.users.login.failure.usr.id: NoSuchUser,
appsec.events.users.login.failure.usr.login: NoSuchUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -30,6 +30,7 @@
runtime-id: Guid_1,
span.kind: server,
_dd.appsec.events.users.login.failure.auto.mode: identification,
_dd.appsec.usr.login: NoSuchUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Type: web,
Tags: {
appsec.events.users.login.success.track: true,
appsec.events.users.login.success.usr.login: TestUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -29,6 +30,8 @@
span.kind: server,
usr.id: Guid_2,
_dd.appsec.events.users.login.success.auto.mode: identification,
_dd.appsec.usr.id: Guid_2,
_dd.appsec.usr.login: TestUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
appsec.events.users.login.failure.track: true,
appsec.events.users.login.failure.usr.exists: true,
appsec.events.users.login.failure.usr.id: Guid_1,
appsec.events.users.login.failure.usr.login: TestUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -30,6 +31,8 @@
runtime-id: Guid_2,
span.kind: server,
_dd.appsec.events.users.login.failure.auto.mode: identification,
_dd.appsec.usr.id: Guid_1,
_dd.appsec.usr.login: TestUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Tags: {
appsec.events.users.login.failure.track: true,
appsec.events.users.login.failure.usr.exists: false,
appsec.events.users.login.failure.usr.id: NoSuchUser,
appsec.events.users.login.failure.usr.login: NoSuchUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -30,6 +30,7 @@
runtime-id: Guid_1,
span.kind: server,
_dd.appsec.events.users.login.failure.auto.mode: identification,
_dd.appsec.usr.login: NoSuchUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Type: web,
Tags: {
appsec.events.users.login.success.track: true,
appsec.events.users.login.success.usr.login: TestUser,
aspnet_core.endpoint: Samples.Security.AspNetCore5.Controllers.AccountController.Index (Samples.Security.AspNetCore5),
aspnet_core.route: {controller=home}/{action=index}/{id?},
component: aspnet_core,
Expand All @@ -29,6 +30,8 @@
span.kind: server,
usr.id: Guid_2,
_dd.appsec.events.users.login.success.auto.mode: identification,
_dd.appsec.usr.id: Guid_2,
_dd.appsec.usr.login: TestUser,
_dd.runtime_family: dotnet
},
Metrics: {
Expand Down

0 comments on commit 14f86c6

Please sign in to comment.