Skip to content

Add NINO to User admin page #3214

Add NINO to User admin page

Add NINO to User admin page #3214

GitHub Actions / Unit test results failed Jan 9, 2024 in 0s

Unit test results ❌

Tests failed

❌ dotnet-authserver/tests/TeacherIdentity.AuthServer.Tests/TestResults/_fv-az1433-659_2024-01-09_17_22_58.trx

1461 tests were completed in 23s with 1460 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
TeacherIdentity.AuthServer.Tests.AuthenticationStateTests 15✅ 102ms
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.DateOfBirth.ConfirmTests 5✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.DateOfBirth.DateOfBirthTests 9✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.Email.ConfirmTests 10✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.Email.EmailTests 12✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.Email.ResendTests 11✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.IndexTests 14✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.Name.ConfirmTests 8✅ 123ms
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.Name.NameTests 10✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialDateOfBirth.ConfirmTests 8✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialDateOfBirth.DetailsTests 10✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialDateOfBirth.EvidenceTests 11✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialDateOfBirth.OfficialDateOfBirthTests 4✅ 3s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialName.ConfirmTests 10✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialName.DetailsTests 13✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialName.EvidenceTests 15✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialName.OfficialNameTests 3✅ 3s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.OfficialName.PreferredNameTests 8✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.Phone.ConfirmTests 10✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.Phone.PhoneTests 9✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.Phone.ResendTests 8✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.PreferredName.ConfirmTests 4✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.Account.PreferredName.PreferredNameTests 7✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.AddClientTests 7✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.AddStaffUserTests 7✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.AddUserImportTests 10✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.AddWebHookTests 6✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.AssignTrn.ConfirmTests 21✅ 349ms
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.AssignTrn.IndexTests 18✅ 8s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.AssignTrn.RemoveTests 11✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.ClientsTests 3✅ 3s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.EditClientTests 8✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.EditStaffUserTests 9✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.EditUserEmailTests 14✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.EditUserMobileNumberTests 13✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.EditUserNameTests 21✅ 8s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.EditWebHookTests 14✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.ElevateUserTrnVerificationTests 6✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.GenerateTrnTokenTests 8✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.MergeUser.ChooseTrnTests 11✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.MergeUser.ConfirmTests 11✅ 8s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.MergeUser.SelectUserTests 10✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.StaffTests 3✅ 2s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.UserImportsTests 3✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.UserImportTests 5✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.UsersTests 42✅ 2s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.UserTests 11✅ 1❌ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.WebHooksTests 3✅ 3s
TeacherIdentity.AuthServer.Tests.EndpointTests.Api.SetJourneyTrnLookupStateTests 14✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Api.V1.TrnTokens.CreateTrnTokenTests 6✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.Api.V1.Users.GetAllUsersTests 13✅ 241ms
TeacherIdentity.AuthServer.Tests.EndpointTests.Api.V1.Users.GetUserDetailTests 8✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.Api.V1.Users.SetTeacherTrnTests 14✅ 8s
TeacherIdentity.AuthServer.Tests.EndpointTests.Api.V1.Users.UpdateUserTests 11✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.Oidc.AuthorizeTests 25✅ 292ms
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.CompleteTests 19✅ 8s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Elevate.CheckAnswersTests 11✅ 149ms
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.EmailConfirmationTests 27✅ 438ms
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.EmailTests 20✅ 8s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.LandingTests 5✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.AccountExistsTests 15✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.CheckAnswersTests 19✅ 330ms
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.DateOfBirthPageTests 19✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.EmailConfirmationTests 20✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.EmailExistsTests 7✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.EmailTests 16✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.ExistingAccountEmailConfirmationTests 20✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.ExistingAccountPhoneConfirmationTests 22✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.ExistingAccountPhoneTests 14✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.HasNiNumberPageTests 20✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.HasQtsPageTests 22✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.HasTrnPageTests 20✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.InstitutionEmailTests 17✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.IttProviderTests 18✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.NameTests 18✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.NiNumberPageTests 19✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.PhoneConfirmationTests 21✅ 8s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.PhoneExistsTests 7✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.PhoneTests 17✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.PreferredNamePageTests 15✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.ResendEmailConfirmationTests 19✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.ResendExistingAccountEmailTests 13✅ 4s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.ResendExistingAccountPhoneTests 15✅ 5s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.ResendPhoneConfirmationTests 17✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.Register.TrnPageTests 20✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.ResendEmailConfirmationTests 25✅ 8s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.ResendTrnOwnerEmailConfirmationTests 10✅ 6s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.TrnInUseChooseEmailTests 21✅ 7s
TeacherIdentity.AuthServer.Tests.EndpointTests.SignIn.TrnInUseTests 24✅ 8s
TeacherIdentity.AuthServer.Tests.HelperTests.NationalInsuranceNumberHelperTests 8✅ 2ms
TeacherIdentity.AuthServer.Tests.Jobs.PopulatePreferredNameJobTests 3✅ 47ms
TeacherIdentity.AuthServer.Tests.Jobs.RefreshEstablishmentDomainsJobTests 3✅ 3s
TeacherIdentity.AuthServer.Tests.Jobs.SyncNamesWithDqtJobTests 2✅ 41ms
TeacherIdentity.AuthServer.Tests.JourneyTests.TrnLookupHelperTests 21✅ 211ms
TeacherIdentity.AuthServer.Tests.ModelTests.ApplicationTests 10✅ 5ms
TeacherIdentity.AuthServer.Tests.ModelTests.EmailAddressTests 94✅ 18ms
TeacherIdentity.AuthServer.Tests.ModelTests.MobileNumberTests 28✅ 13ms
TeacherIdentity.AuthServer.Tests.Services.PublishEventsBackgroundServiceTests 3✅ 59ms
TeacherIdentity.AuthServer.Tests.Services.RedactorTests 9✅ 5ms
TeacherIdentity.AuthServer.Tests.Services.UserImportProcessorTests 25✅ 419ms
TeacherIdentity.AuthServer.Tests.Services.UserVerificationServiceTests 14✅ 7s
TeacherIdentity.AuthServer.Tests.UserClaimHelperTests 21✅ 8s
TeacherIdentity.AuthServer.Tests.UserRequirementsExtensionsTests 10✅ 67ms
TeacherIdentity.AuthServer.Tests.WebHooks.WebHooksEndToEndTests 37✅ 801ms

❌ TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.UserTests

✅ Get_AuthenticatedUserDoesNotHavePermission_ReturnsForbidden
✅ Get_UnauthenticatedUser_RedirectsToSignIn
✅ Get_UserDoesNotExist_ReturnsNotFound
✅ Get_UserIsStaffUsers_RedirectsToEditStaffUserPage
✅ Get_ValidRequestForTrnVerificationLevel_RendersExpectedContent(trnVerificationLevel: Low, verificationLevelString: "Low")
✅ Get_ValidRequestForTrnVerificationLevel_RendersExpectedContent(trnVerificationLevel: Medium, verificationLevelString: "Medium")
✅ Get_ValidRequestForUserWithMergedUsers_RendersExpectedContent
✅ Get_ValidRequestForUserWithoutTRN_DoesNotRenderTrnVerificationLevelSummaryRow
✅ Get_ValidRequestForUserWithoutTrn_RendersExpectedContent
❌ Get_ValidRequestForUserWithTrn_RendersExpectedContent
	Assert.Equal() Failure: Strings differ
	           ↓ (pos 0)
	Expected: "GP841876D"
	Actual:   ""
✅ Get_ValidRequestForUserWithTrnAndNoProhibition_DoesNotRenderWarning
✅ Get_ValidRequestForUserWithTrnAndProhibitions_RendersWarning

Annotations

Check failure on line 123 in dotnet-authserver/tests/TeacherIdentity.AuthServer.Tests/EndpointTests/Admin/UserTests.cs

See this annotation in the file changed.

@github-actions github-actions / Unit test results

TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.UserTests ► Get_ValidRequestForUserWithTrn_RendersExpectedContent

Failed test found in:
  dotnet-authserver/tests/TeacherIdentity.AuthServer.Tests/TestResults/_fv-az1433-659_2024-01-09_17_22_58.trx
Error:
  Assert.Equal() Failure: Strings differ
             ↓ (pos 0)
  Expected: "GP841876D"
  Actual:   ""
Raw output
Assert.Equal() Failure: Strings differ
           ↓ (pos 0)
Expected: "GP841876D"
Actual:   ""
   at TeacherIdentity.AuthServer.Tests.EndpointTests.Admin.UserTests.Get_ValidRequestForUserWithTrn_RendersExpectedContent() in /home/runner/work/get-an-identity/get-an-identity/dotnet-authserver/tests/TeacherIdentity.AuthServer.Tests/EndpointTests/Admin/UserTests.cs:line 123