Skip to content

Added NPQAccessToken to gettrn journey #1266

Added NPQAccessToken to gettrn journey

Added NPQAccessToken to gettrn journey #1266

GitHub Actions / TeachingRecordSystem.AuthorizeAccess.Tests test results failed Dec 5, 2024 in 1s

203 passed, 2 failed and 0 skipped

Tests failed

❌ TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.Tests/TestResults/_fv-az915-689_2024-12-05_13_55_45.trx

205 tests were completed in 36s with 203 passed, 2 failed and 0 skipped.

Test suite Passed Failed Skipped Time
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.CheckAnswersTests 12✅ 14s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.ConnectTests 8✅ 11s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.FoundTests 4✅ 8s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.NationalInsuranceNumberTests 14✅ 13s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.NotFoundTests 7✅ 10s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.NotVerifiedTests 4✅ 8s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.AddressTests 15✅ 8s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.CheckAnswersTests 24✅ 9s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.DateOfBirthTests 8✅ 5s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.EmailInUseTests 2✅ 7s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.EmailTests 8✅ 10s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.IdentityTests 8✅ 6s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.IndexTests 2❌ 1s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.NameTests 7✅ 5s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.NationalInsuranceNumberTests 10✅ 5s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.NotEligibleTests 5✅ 2s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.NpqCheckTests 7✅ 4s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.PreviousNameTests 8✅ 5s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.SubmittedTests 2✅ 1s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.SupportRequestSubmittedTests 7✅ 9s
TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.TrnTests 16✅ 13s
TeachingRecordSystem.AuthorizeAccess.Tests.SignInJourneyHelperTests 27✅ 26s

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.CheckAnswersTests

✅ Get_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Get_NationalInsuranceNumberNotSpecified_RedirectsToNationalInsuranceNumberPage
✅ Get_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Get_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Get_TrnNotSpecified_RedirectsToTrnPage
✅ Get_ValidRequest_RendersExpectedContent
✅ Post_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Post_NationalInsuranceNumberNotSpecified_RedirectsToNationalInsuranceNumberPage
✅ Post_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Post_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Post_TrnNotSpecified_RedirectsToTrnPage
✅ Post_ValidRequest_CreatesSupportTicketAndRedirectsToSupportRequestedSubmitted

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.ConnectTests

✅ Get_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Get_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Get_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Get_ValidRequest_RendersExpectedContent
✅ Post_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Post_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Post_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Post_ValidRequest_RedirectsToStartOfMatchingJourney

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.FoundTests

✅ Get_NotFullyAuthenticated_RedirectsToStartOfMatchingJourney
✅ Get_ValidRequest_RendersExpectedContent
✅ Post_NotAuthenticated_RedirectsToStartOfMatchingJourney
✅ Post_ValidRequest_RedirectsToStateRedirectUri

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.NationalInsuranceNumberTests

✅ Get_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Get_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Get_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Get_ValidRequest_RendersExpectedContent(haveExistingValueInState: False)
✅ Get_ValidRequest_RendersExpectedContent(haveExistingValueInState: True)
✅ Post_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Post_EmptyNationalInsuranceNumber_RendersError
✅ Post_HaveNationalInsuranceNumberNotAnswered_RendersError
✅ Post_HaveNationalInsuranceNumberNotSpecified_UpdatesStateAndRedirectsToTrnPage
✅ Post_InvalidNationalInsuranceNumber_RendersError
✅ Post_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Post_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Post_ValidNationalInsuranceNumberAndLookupSucceeded_UpdatesStateUpdatesOneLoginUserCompletesAuthenticationAndRedirectsToFoundPage
✅ Post_ValidNationalInsuranceNumberButLookupFailed_UpdatesStateAndRedirectsToTrnPage

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.NotFoundTests

✅ Get_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Get_NationalInsuranceNumberNotSpecified_RedirectsToNationalInsuranceNumberPage
✅ Get_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Get_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Get_TrnNotSpecified_RedirectsToTrnPage
✅ Get_ValidRequest_RendersExpectedContent
✅ Post_ValidRequest_RedirectsToCheckAnswersPage

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.NotVerifiedTests

✅ Get_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Get_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Get_ValidRequest_ReturnsExpectedContent
✅ Get_VerifiedWithOneLogin_ReturnsBadRequest

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.AddressTests

✅ Get_HasNationalInsuranceNumberMissingFromState_RedirectsToNationalInsuranceNumber
✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_ValidRequestWithPopulatedDataInJourneyState_PopulatesModelFromJourneyState
✅ Post_AddressLinesTooManyCharacters_ReturnsError(overflowAddressLineType: AddressLine1, errorMessage: "Address line 1 must be 200 characters or less")
✅ Post_AddressLinesTooManyCharacters_ReturnsError(overflowAddressLineType: AddressLine2, errorMessage: "Address line 2 must be 200 characters or less")
✅ Post_AddressLinesTooManyCharacters_ReturnsError(overflowAddressLineType: Country, errorMessage: "Country must be 200 characters or less")
✅ Post_AddressLinesTooManyCharacters_ReturnsError(overflowAddressLineType: PostalCode, errorMessage: "Postal code must be 50 characters or less")
✅ Post_AddressLinesTooManyCharacters_ReturnsError(overflowAddressLineType: TownOrCity, errorMessage: "Town or city must be 200 characters or less")
✅ Post_EmptyMandatoryAddressLine_ReturnsError(emptyAddressLineType: AddressLine1, errorMessage: "Enter address line 1")
✅ Post_EmptyMandatoryAddressLine_ReturnsError(emptyAddressLineType: Country, errorMessage: "Enter country")
✅ Post_EmptyMandatoryAddressLine_ReturnsError(emptyAddressLineType: PostalCode, errorMessage: "Enter postal code")
✅ Post_EmptyMandatoryAddressLine_ReturnsError(emptyAddressLineType: TownOrCity, errorMessage: "Enter town or city")
✅ Post_HasNationalInsuranceNumberMissingFromState_RedirectsToNationalInsuranceNumber
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_ValidRequest_UpdatesStateAndRedirectsToNextPage

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.CheckAnswersTests

✅ Get_HasDateOfBirthMissingFromState_RedirectsToDateOfBirth
✅ Get_HasEmailMissingFromState_RedirectsToEmail
✅ Get_HasEvidenceFileIdMissingFromState_RedirectsToIdentity
✅ Get_HasHasNationalInsuranceNumberMissingFromState_RedirectsToNationalInsuranceNumber
✅ Get_HasHasPreviousNameMissingFromState_RedirectsToPreviousName
✅ Get_HasNameMissingFromState_RedirectsToName
✅ Get_HasNationalInsuranceNumberFalseAndAddressLine1MissingFromState_RedirectsToAddress
✅ Get_HasNationalInsuranceNumberTrueAndNationalInsuranceNumberMissingFromState_RedirectsToNationalInsuranceNumber
✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_HasPreviousNameMissingFromState_RedirectsToPreviousName
✅ Get_ValidRequest_PopulatesModelFromJourneyState(hasNationalInsuranceNumber: False)
✅ Get_ValidRequest_PopulatesModelFromJourneyState(hasNationalInsuranceNumber: True)
✅ Post_HasDateOfBirthMissingFromState_RedirectsToDateOfBirth
✅ Post_HasEmailMissingFromState_RedirectsToEmail
✅ Post_HasEvidenceFileIdMissingFromState_RedirectsToIdentity
✅ Post_HasHasNationalInsuranceNumberMissingFromState_RedirectsToNationalInsuranceNumber
✅ Post_HasHasPreviousNameMissingFromState_RedirectsToPreviousName
✅ Post_HasNameMissingFromState_RedirectsToName
✅ Post_HasNationalInsuranceNumberFalseAndAddressLine1MissingFromState_RedirectsToAddress
✅ Post_HasNationalInsuranceNumberTrueAndNationalInsuranceNumberMissingFromState_RedirectsToNationalInsuranceNumber
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_HasPreviousNameMissingFromState_RedirectsToPreviousName
✅ Post_ValidRequest_UpdatesStateAndAndRedirectsToSubmitted(hasNationalInsuranceNumber: False)
✅ Post_ValidRequest_UpdatesStateAndAndRedirectsToSubmitted(hasNationalInsuranceNumber: True)

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.DateOfBirthTests

✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_HasPreviousNameMissingFromState_RedirectsToPreviousName
✅ Get_ValidRequestWithPopulatedDataInJourneyState_PopulatesModelFromJourneyState
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_HasPreviousNameMissingFromState_RedirectsToPreviousName
✅ Post_ValidRequest_UpdatesStateAndRedirectsToNextPage
✅ Post_WhenDateOfBirthIsInTheFuture_ReturnsError
✅ Post_WhenNoDateOfBirthIsEntered_ReturnsError

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.EmailInUseTests

✅ Get_WithEmailAddress_RendersExpectedContent
✅ Get_WithoutEmailAddress_RedirectsToEmail

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.EmailTests

✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_ValidRequest_RendersExpectedContent
✅ Get_ValidRequestWithPopulatedDataInJourneyState_PopulatesModelFromJourneyState
✅ Post_EmptyEmailAddressEntered_ReturnsError
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_InvalidFormatEmailAddress_ReturnsError
✅ Post_RequestForEmailWithOpenTasks_RedirectsToEmailInUse
✅ Post_ValidRequestWithValidData_RedirectsToNamePage

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.IdentityTests

✅ Get_DateOfBirthMissingFromState_RedirectsToDateOfBirth
✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_ValidRequestWithPopulatedDataInJourneyState_PopulatesModelFromJourneyState
✅ Post_DateOfBirthMissingFromState_RedirectsToDateOfBirth
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_ValidRequest_UpdatesStateAndRedirectsToNextPage
✅ Post_WhenEvidenceFileIsInvalidType_ReturnsError
✅ Post_WhenNoEvidenceFileIsSelected_ReturnsError

❌ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.IndexTests

❌ Get_MissingAccessToken_ReturnsBadRequest
	System.NullReferenceException : Object reference not set to an instance of an object.
❌ Get_ValidRequest_RendersExpectedContent
	System.NullReferenceException : Object reference not set to an instance of an object.

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.NameTests

✅ Get_EmailMissingFromState_RedirectsToEmail
✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_ValidRequestWithPopulatedDataInJourneyState_PopulatesModelFromJourneyState
✅ Post_EmailMissingFromState_RedirectsToEmail
✅ Post_EmptyNameEntered_ReturnsError
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_ValidRequest_UpdatesStateAndRedirectsToNextPage

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.NationalInsuranceNumberTests

✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_ProofOfIdentityMissingFromState_RedirectsToIdentity
✅ Get_ValidRequestWithPopulatedDataInJourneyState_PopulatesModelFromJourneyState
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_ProofOfIdentityMissingFromState_RedirectsToIdentity
✅ Post_ValidRequest_UpdatesStateAndRedirectsToNextPage(hasNationalInsuranceNumber: False)
✅ Post_ValidRequest_UpdatesStateAndRedirectsToNextPage(hasNationalInsuranceNumber: True)
✅ Post_WhenHasNationalInsuranceNumberHasNoSelection_ReturnsError
✅ Post_WhenHasNationalInsuranceNumberIsTrueAndNationalInsuranceNumberIsEmpty_ReturnsError
✅ Post_WhenHasNationalInsuranceNumberIsTrueAndNationalInsuranceNumberIsInvalid_ReturnsError

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.NotEligibleTests

✅ Get_HasIsPlanningToTakeAnNpqMissingFromState_RedirectsToNpqCheck
✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_ValidRequest_RendersExpectedContent
✅ Post_HasIsPlanningToTakeAnNpqMissingFromState_RedirectsToNpqCheck
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.NpqCheckTests

✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_ValidRequest_RendersExpectedContent
✅ Get_ValidRequestWithPopulatedDataInJourneyState_PopulatesModelFromJourneyState
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_ValidRequest_UpdatesJourneyStateAndRedirects(isPlanningToTakeAnNpq: "false")
✅ Post_ValidRequest_UpdatesJourneyStateAndRedirects(isPlanningToTakeAnNpq: "true")
✅ Post_WhenIsPlanningToTakeAnNpqHasNoSelection_ReturnsError

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.PreviousNameTests

✅ Get_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Get_NameMissingFromState_RedirectsToName
✅ Get_ValidRequestWithPopulatedDataInJourneyState_PopulatesModelFromJourneyState
✅ Post_HasPendingTrnRequestSetTrue_RedirectsToSubmitted
✅ Post_NameMissingFromState_RedirectsToName
✅ Post_ValidRequest_UpdatesStateAndRedirectsToNextPage
✅ Post_WhenHasPreviousNameHasNoSelection_ReturnsError
✅ Post_WhenHasPreviousNameIsTrueAndPreviousNameIsEmpty_ReturnsError

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.SubmittedTests

✅ Get_HasPendingTrnRequestMissingFromState_RedirectsToCheckAnswers
✅ Get_ValidRequest_ReturnsOK

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.SupportRequestSubmittedTests

✅ Get_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Get_NationalInsuranceNumberNotSpecified_RedirectsToNationalInsuranceNumberPage
✅ Get_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Get_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Get_SupportTicketNotCreated_RedirectsToCheckAnswersPage
✅ Get_TrnNotSpecified_RedirectsToTrnPage
✅ Get_ValidRequest_ReturnsExpectedContent

✅ TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.TrnTests

✅ Get_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Get_NationalInsuranceNumberNotSpecified_RedirectsToNationalInsuranceNumberPage
✅ Get_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Get_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Get_ValidRequest_RendersExpectedContent(haveExistingValueInState: False)
✅ Get_ValidRequest_RendersExpectedContent(haveExistingValueInState: True)
✅ Post_AlreadyAuthenticated_RedirectsToStateRedirectUri
✅ Post_EmptyTrn_RendersError
✅ Post_HaveTrnNotAnswered_RendersError
✅ Post_InvalidTrn_RendersError
✅ Post_NationalInsuranceNumberNotSpecified_RedirectsToNationalInsuranceNumberPage
✅ Post_NotAuthenticatedWithOneLogin_ReturnsBadRequest
✅ Post_NoTrnSpecified_UpdatesStateAndRedirectsToNotFoundPage
✅ Post_NotVerifiedWithOneLogin_ReturnsBadRequest
✅ Post_ValidTrnAndLookupSucceeded_UpdatesStateUpdatesOneLoginUserCompletesAuthenticationAndRedirectsToFoundPage
✅ Post_ValidTrnButLookupFailed_UpdatesStateAndRedirectsToNotFoundPage

✅ TeachingRecordSystem.AuthorizeAccess.Tests.SignInJourneyHelperTests

✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationFailed_RedirectsToErrorPage
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceeded_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededAndIdentityUserTrnMatchesVerifiedLastNameAndDateOfBirth_CompletesJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededAndIdentityUserWithTrnAssociatedBySupportMatchesVerifiedLastNameAndDateOfBirth_CompletesJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededAndIdentityUserWithTrnAssociatedByTrnTokenMatchesVerifiedLastNameAndDateOfBirth_CompletesJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededAndTrnTokenMatchesVerifiedLastNameAndDateOfBirth_CompletesJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededButIdentityUserHasTrnVerificationLevelLow_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededButRecordFromIdentityUserTrnDoesNotMatchDateOfBirth_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededButRecordFromIdentityUserTrnDoesNotMatchLastName_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededButRecordFromTrnTokenDoesNotMatchDateOfBirth_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededButRecordFromTrnTokenDoesNotMatchLastName_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededButTrnTokenDoesNotExist_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededButTrnTokenHasAlreadyBeenUsed_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationAndVerification_VerificationSucceededButTrnTokenHasExpired_RedirectsToStartOfMatchingJourney
✅ OnOneLoginCallback_AuthenticationOnly_NewUserWithPendingTrnRequestMatchedOnEmail_RequestsIdentityVerification
✅ OnOneLoginCallback_AuthenticationOnly_NewUserWithPendingTrnRequestMatchedOnOneLoginUserSubject_RequestsIdentityVerification
✅ OnOneLoginCallback_AuthenticationOnly_NewUserWithResolvedTrnRequestMatchedOnEmail_SetsUserVerifiedAssignsTrnAndCompletesJourney
✅ OnOneLoginCallback_AuthenticationOnly_NewUserWithResolvedTrnRequestMatchedOnOneLoginUserSubject_SetsUserVerifiedAssignsTrnAndCompletesJourney
✅ OnOneLoginCallback_AuthenticationOnly_NewUserWithTrnRequestMatchedOnEmailWithoutIdentityVerified_RequestsIdentityVerification
✅ OnOneLoginCallback_AuthenticationOnly_NewUserWithTrnRequestMatchedOnOneLoginUserSubjectWithoutIdentityVerified_RequestsIdentityVerification
✅ OnOneLoginCallback_AuthenticationOnly_UserAlreadyExistsAndTeachingRecordKnown_CompletesJourney
✅ OnOneLoginCallback_AuthenticationOnly_UserAlreadyExistsButTeachingNotRecordKnown_RequestsIdentityVerification
✅ OnOneLoginCallback_AuthenticationOnly_UserAlreadyExistsWithSubjectOnlyAndTeachingRecordKnown_AssignsEmailAndSignInFieldsAndCompletesJourney
✅ OnOneLoginCallback_AuthenticationOnly_UserDoesNotExist_RequestsIdentityVerification
✅ TryMatchToTeachingRecord_Matches_ReturnsTrueAndUpdatesOneLoginUserAssignsAuthenticationTicket
✅ TryMatchToTeachingRecord_MatchesWithoutTrn_ReturnsFalseAndDoesNotSetAuthenticationTicket
✅ TryMatchToTeachingRecord_MatchesZeroResults_ReturnsFalseAndDoesNotSetAuthenticationTicket

Annotations

Check failure on line 19 in TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Pages/RequestTrn/Index.cshtml.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.Tests test results

TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.IndexTests ► Get_MissingAccessToken_ReturnsBadRequest

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.Tests/TestResults/_fv-az915-689_2024-12-05_13_55_45.trx
Error:
  System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
System.NullReferenceException : Object reference not set to an instance of an object.
   at TeachingRecordSystem.AuthorizeAccess.Pages.RequestTrn.IndexModel.OnGet() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Pages/RequestTrn/Index.cshtml.cs:line 19
   at lambda_method1710(Closure, Object, Object[])
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.ActionResultHandlerMethod.Execute(Object receiver, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at TeachingRecordSystem.AuthorizeAccess.Infrastructure.Middleware.AddAnalyticsDataMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Infrastructure/Middleware/AddAnalyticsDataMiddleware.cs:line 18
   at Joonasw.AspNetCore.SecurityHeaders.Csp.CspMiddleware.Invoke(HttpContext context)
   at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
   at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
   at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
   at TeachingRecordSystem.UiCommon.FormFlow.State.CommitStateChangesMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.UiCommon/FormFlow/State/CommitStateChangesMiddleware.cs:line 11
   at TeachingRecordSystem.UiCommon.FormFlow.State.CommitStateChangesMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.UiCommon/FormFlow/State/CommitStateChangesMiddleware.cs:line 17
   at TeachingRecordSystem.AuthorizeAccess.Infrastructure.FormFlow.FormFlowSessionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Infrastructure/FormFlow/FormFlowSessionMiddleware.cs:line 31
   at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.IndexTests.Get_MissingAccessToken_ReturnsBadRequest() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.Tests/PageTests/RequestTrn/IndexTests.cs:line 34

Check failure on line 19 in TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Pages/RequestTrn/Index.cshtml.cs

See this annotation in the file changed.

@github-actions github-actions / TeachingRecordSystem.AuthorizeAccess.Tests test results

TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.IndexTests ► Get_ValidRequest_RendersExpectedContent

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.Tests/TestResults/_fv-az915-689_2024-12-05_13_55_45.trx
Error:
  System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
System.NullReferenceException : Object reference not set to an instance of an object.
   at TeachingRecordSystem.AuthorizeAccess.Pages.RequestTrn.IndexModel.OnGet() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Pages/RequestTrn/Index.cshtml.cs:line 19
   at lambda_method1710(Closure, Object, Object[])
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.ActionResultHandlerMethod.Execute(Object receiver, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at TeachingRecordSystem.AuthorizeAccess.Infrastructure.Middleware.AddAnalyticsDataMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Infrastructure/Middleware/AddAnalyticsDataMiddleware.cs:line 18
   at Joonasw.AspNetCore.SecurityHeaders.Csp.CspMiddleware.Invoke(HttpContext context)
   at Prometheus.HttpMetrics.HttpRequestDurationMiddleware.Invoke(HttpContext context)
   at Prometheus.HttpMetrics.HttpRequestCountMiddleware.Invoke(HttpContext context)
   at Prometheus.HttpMetrics.HttpInProgressMiddleware.Invoke(HttpContext context)
   at TeachingRecordSystem.UiCommon.FormFlow.State.CommitStateChangesMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.UiCommon/FormFlow/State/CommitStateChangesMiddleware.cs:line 11
   at TeachingRecordSystem.UiCommon.FormFlow.State.CommitStateChangesMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.UiCommon/FormFlow/State/CommitStateChangesMiddleware.cs:line 17
   at TeachingRecordSystem.AuthorizeAccess.Infrastructure.FormFlow.FormFlowSessionMiddleware.InvokeAsync(HttpContext context) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.AuthorizeAccess/Infrastructure/FormFlow/FormFlowSessionMiddleware.cs:line 31
   at Microsoft.AspNetCore.TestHost.HttpContextBuilder.<>c__DisplayClass23_0.<<SendAsync>g__RunRequestAsync|0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.TestHost.ClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Mvc.Testing.Handlers.CookieContainerHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at TeachingRecordSystem.AuthorizeAccess.Tests.PageTests.RequestTrn.IndexTests.Get_ValidRequest_RendersExpectedContent() in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.AuthorizeAccess.Tests/PageTests/RequestTrn/IndexTests.cs:line 18