Skip to content

Commit b98f10e

Browse files
committed
Fix tests
1 parent 32eaddb commit b98f10e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Identity/test/Identity.Test/SignInManagerTest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public async Task PasswordSignInReturnsLockedOutWhenLockedOut()
7373
KeyValuePair.Create<string, object>("aspnetcore.identity.user_type", "Microsoft.AspNetCore.Identity.Test.PocoUser"),
7474
KeyValuePair.Create<string, object>("aspnetcore.authentication.scheme", "Identity.Application"),
7575
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.type", "password"),
76-
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.is_persistent", false),
76+
KeyValuePair.Create<string, object>("aspnetcore.authentication.is_persistent", false),
7777
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.result", "locked_out"),
7878
]));
7979
Assert.Empty(signInUserPrincipal.GetMeasurementSnapshot());
@@ -397,15 +397,15 @@ public async Task ExternalSignInRequiresVerificationIfNotBypassed(bool bypass)
397397
KeyValuePair.Create<string, object>("aspnetcore.identity.user_type", "Microsoft.AspNetCore.Identity.Test.PocoUser"),
398398
KeyValuePair.Create<string, object>("aspnetcore.authentication.scheme", "Identity.Application"),
399399
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.type", "external"),
400-
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.is_persistent", false),
400+
KeyValuePair.Create<string, object>("aspnetcore.authentication.is_persistent", false),
401401
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.result", "success"),
402402
]));
403403
Assert.Collection(signInUserPrincipal.GetMeasurementSnapshot(),
404404
m => MetricsHelpers.AssertContainsTags(m.Tags,
405405
[
406406
KeyValuePair.Create<string, object>("aspnetcore.identity.user_type", "Microsoft.AspNetCore.Identity.Test.PocoUser"),
407407
KeyValuePair.Create<string, object>("aspnetcore.authentication.scheme", "Identity.Application"),
408-
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.is_persistent", false),
408+
KeyValuePair.Create<string, object>("aspnetcore.authentication.is_persistent", false),
409409
]));
410410
}
411411
else
@@ -416,7 +416,7 @@ public async Task ExternalSignInRequiresVerificationIfNotBypassed(bool bypass)
416416
KeyValuePair.Create<string, object>("aspnetcore.identity.user_type", "Microsoft.AspNetCore.Identity.Test.PocoUser"),
417417
KeyValuePair.Create<string, object>("aspnetcore.authentication.scheme", "Identity.Application"),
418418
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.type", "external"),
419-
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.is_persistent", false),
419+
KeyValuePair.Create<string, object>("aspnetcore.authentication.is_persistent", false),
420420
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.result", "requires_two_factor"),
421421
]));
422422
Assert.Empty(signInUserPrincipal.GetMeasurementSnapshot());
@@ -474,15 +474,15 @@ public async Task CanPasskeySignIn()
474474
KeyValuePair.Create<string, object>("aspnetcore.identity.user_type", "Microsoft.AspNetCore.Identity.Test.PocoUser"),
475475
KeyValuePair.Create<string, object>("aspnetcore.authentication.scheme", "Identity.Application"),
476476
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.type", "passkey"),
477-
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.is_persistent", false),
477+
KeyValuePair.Create<string, object>("aspnetcore.authentication.is_persistent", false),
478478
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.result", "success"),
479479
]));
480480
Assert.Collection(signInUserPrincipal.GetMeasurementSnapshot(),
481481
m => MetricsHelpers.AssertContainsTags(m.Tags,
482482
[
483483
KeyValuePair.Create<string, object>("aspnetcore.identity.user_type", "Microsoft.AspNetCore.Identity.Test.PocoUser"),
484484
KeyValuePair.Create<string, object>("aspnetcore.authentication.scheme", "Identity.Application"),
485-
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.is_persistent", false),
485+
KeyValuePair.Create<string, object>("aspnetcore.authentication.is_persistent", false),
486486
]));
487487
}
488488

@@ -859,7 +859,7 @@ public async Task CanResignIn(bool isPersistent, bool externalLogin)
859859
[
860860
KeyValuePair.Create<string, object>("aspnetcore.identity.user_type", "Microsoft.AspNetCore.Identity.Test.PocoUser"),
861861
KeyValuePair.Create<string, object>("aspnetcore.authentication.scheme", "Identity.Application"),
862-
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.is_persistent", isPersistent),
862+
KeyValuePair.Create<string, object>("aspnetcore.authentication.is_persistent", isPersistent),
863863
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.result", "success"),
864864
]));
865865
}
@@ -1234,7 +1234,7 @@ public async Task PasswordSignInFailsWithWrongPassword()
12341234
[
12351235
KeyValuePair.Create<string, object>("aspnetcore.identity.user_type", "Microsoft.AspNetCore.Identity.Test.PocoUser"),
12361236
KeyValuePair.Create<string, object>("aspnetcore.authentication.scheme", "Identity.Application"),
1237-
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.is_persistent", false),
1237+
KeyValuePair.Create<string, object>("aspnetcore.authentication.is_persistent", false),
12381238
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.result", "failure"),
12391239
KeyValuePair.Create<string, object>("aspnetcore.identity.sign_in.type", "password"),
12401240
]));

0 commit comments

Comments
 (0)