Skip to content

Add tag helper to render empty content as a hyphen #1069

Add tag helper to render empty content as a hyphen

Add tag helper to render empty content as a hyphen #1069

GitHub Actions / DQT test results failed Sep 29, 2023 in 0s

DQT test results ❌

Tests failed

❌ TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az592-781_2023-09-29_10_47_07.trx

296 tests were completed in 1706s with 289 passed, 6 failed and 1 skipped.

Test suite Passed Failed Skipped Time
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.ClearTeacherIdentityInfoTests 2✅ 21s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.CreateTeacherTests 92✅ 1⚪ 261s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetCountryTests 2✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEarlyYearsStatusTests 1✅ 1❌ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEytsAwardeesForDateRangeTests 2✅ 378s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeQualificationByCodeTests 1✅ 1❌ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeSubjectByCodeTests 2✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionByTeacherTests 2✅ 1❌ 35s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionCompleteesForDateRangeTests 1✅ 380s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInitialTeacherTrainingByTeacherTests 3✅ 50s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInternationalQtsAwardeesForDateRangeTests 1❌ 1ms
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttProvidersTests 1✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttSubjectByCodeTests 1✅ 1❌ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetMatchingTeachersTests 11✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetOrganizationsByUkprnTests 2✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQtsAwardeesForDateRangeTests 2✅ 61s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationByIdTests 2✅ 29s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationsForTeacherTests 8✅ 411s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetSubjectByTitleTests 2✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherByHusIdTests 2✅ 33s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByInitialTeacherTrainingSlugIdTests 2✅ 27s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByTrnAndDobTests 2✅ 30s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherStatusTests 2✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherTests 4✅ 377s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetIttOutcomeForTeacherTests 33✅ 1❌ 563s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetNpqQualificationTests 28✅ 570s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetTsPersonIdTests 1✅ 24s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UnlockTeacherRecordTests 3✅ 41s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherIdentityInfoTests 1✅ 6s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherTests 29✅ 573s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.ApproveIncidentTests 1✅ 14s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CancelIncidentTests 1✅ 12s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateDateOfBirthChangeIncidentTests 1✅ 11s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateNameChangeIncidentTests 1✅ 12s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetActiveIncidentsTests 1✅ 16s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSanctionCodesTests 1✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSubjectsTests 1✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllTeacherStatusesTests 1✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactByTrnTests 2✅ 16s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactDetailByIdTests 2✅ 14s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByDateOfBirthTests 6✅ 481s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByLastNameAndDateOfBirthTests 1✅ 34s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByNameTests 6✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetDocumentByIdTests 2✅ 11s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetIncidentByTicketNumberTests 3✅ 38s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionDetailsByContactIdTests 2✅ 37s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionsByContactIdsTests 9✅ 437s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.RejectIncidentTests 1✅ 13s
TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingServiceTests 3✅ 15s

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.ClearTeacherIdentityInfoTests

✅ ContactExistsWithIdentityUserId_ClearsTsPersonId
✅ NoContactWithTsPersonId_Succeeds

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.CreateTeacherTests

✅ CreateInductionEntity(inductionRequired: False, recognitionRoute: NorthernIreland, expectedInductionStatus: Exempt, expectedInductionExemptionReason: SuccessfullycompletedinductioninNorthernIreland)
✅ CreateInductionEntity(inductionRequired: False, recognitionRoute: OverseasTrainedTeachers, expectedInductionStatus: Exempt, expectedInductionExemptionReason: OverseasTrainedTeacher)
✅ CreateInductionEntity(inductionRequired: False, recognitionRoute: Scotland, expectedInductionStatus: Exempt, expectedInductionExemptionReason: HasoriseligibleforfullregistrationinScotland)
✅ CreateInductionEntity(inductionRequired: True, recognitionRoute: NorthernIreland, expectedInductionStatus: RequiredtoComplete, expectedInductionExemptionReason: null)
✅ CreateInductionEntity(inductionRequired: True, recognitionRoute: OverseasTrainedTeachers, expectedInductionStatus: RequiredtoComplete, expectedInductionExemptionReason: null)
✅ CreateInductionEntity(inductionRequired: True, recognitionRoute: Scotland, expectedInductionStatus: RequiredtoComplete, expectedInductionExemptionReason: null)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: Apprenticeship, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: AssessmentOnlyRoute, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: Core, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: CoreFlexible, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: FutureTeachingScholars, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: GraduateTeacherProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: HEI, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: LicensedTeacherProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: OverseasTrainedTeacherProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: Providerled_postgrad, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: Providerled_undergrad, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: RegisteredTeacherProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: SchoolDirecttrainingprogramme_Salaried, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: SchoolDirecttrainingprogramme_Selffunded, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: SchoolDirecttrainingprogramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: TeachFirstProgramme_CC, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: TeachFirstProgramme, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: OverseasQualifiedTeacher, programmeType: UndergraduateOptIn, expectedResult: Approved)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: Apprenticeship, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: AssessmentOnlyRoute, expectedResult: UnderAssessment)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: Core, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: CoreFlexible, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTAssessmentOnly, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTGraduateEmploymentBased, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTGraduateEntry, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTSchoolDirect_EarlyYears, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: EYITTUndergraduate, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: FutureTeachingScholars, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: GraduateTeacherProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: HEI, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: HighpotentialITT, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: LicensedTeacherProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: OverseasTrainedTeacherProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: Providerled_postgrad, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: Providerled_undergrad, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: RegisteredTeacherProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: SchoolDirecttrainingprogramme_Salaried, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: SchoolDirecttrainingprogramme_Selffunded, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: SchoolDirecttrainingprogramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: TeachFirstProgramme_CC, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: TeachFirstProgramme, expectedResult: InTraining)
✅ CreateInitialTeacherTrainingEntity_maps_entity_from_command_correctly(createTeacherType: TraineeTeacher, programmeType: UndergraduateOptIn, expectedResult: InTraining)
✅ CreateQtsRegistrationEntity
✅ CreateQualificationEntity
✅ CreateTeacherEntity_maps_contact_record_correctly
✅ DeriveIttProviderNameForOverseasQualifiedTeacher(recognitionRoute: NorthernIreland, expectedIttProviderName: "UK establishment (Scotland/Northern Ireland)")
✅ DeriveIttProviderNameForOverseasQualifiedTeacher(recognitionRoute: OverseasTrainedTeachers, expectedIttProviderName: "Non-UK establishment")
✅ DeriveIttProviderNameForOverseasQualifiedTeacher(recognitionRoute: Scotland, expectedIttProviderName: "UK establishment (Scotland/Northern Ireland)")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: EuropeanEconomicArea, underNewOverseasRegulations: null, programmeType: null, expectedTeacherStatus: "223")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: NorthernIreland, underNewOverseasRegulations: null, programmeType: null, expectedTeacherStatus: "69")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: OverseasTrainedTeachers, underNewOverseasRegulations: False, programmeType: null, expectedTeacherStatus: "103")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: OverseasTrainedTeachers, underNewOverseasRegulations: True, programmeType: null, expectedTeacherStatus: "104")
✅ DeriveTeacherStatus(teacherType: OverseasQualifiedTeacher, recognitionRoute: Scotland, underNewOverseasRegulations: null, programmeType: null, expectedTeacherStatus: "68")
✅ DeriveTeacherStatus(teacherType: TraineeTeacher, recognitionRoute: null, underNewOverseasRegulations: null, programmeType: AssessmentOnlyRoute, expectedTeacherStatus: "212")
✅ DeriveTeacherStatus(teacherType: TraineeTeacher, recognitionRoute: null, underNewOverseasRegulations: null, programmeType: GraduateTeacherProgramme, expectedTeacherStatus: "211")
⚪ FindExistingTeacher_given_at_least_three_matching_fields_returns_matched_id
✅ Given_details_that_do_not_match_existing_records_allocates_trn_and_does_not_create_QTS_task
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: OverseasQualifiedTeacher, husId: null, hasActiveSanctions: False, hasQts: False, hasEyts: False, expectedDescriptionSupplement: "", expectedCategory: "ApplyForQts")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: False, hasQts: False, hasEyts: False, expectedDescriptionSupplement: "", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: False, hasQts: False, hasEyts: True, expectedDescriptionSupplement: "Matched record has EYTS date\n", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: False, hasQts: True, hasEyts: False, expectedDescriptionSupplement: "Matched record has QTS date\n", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: True, hasQts: False, hasEyts: False, expectedDescriptionSupplement: "Matched record has active sanctions\n", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: True, hasQts: False, hasEyts: True, expectedDescriptionSupplement: "Matched record has active sanctions & EYTS date\n", expectedCategory: "DMSImportTrn")
✅ Given_details_that_does_match_existing_record_does_not_allocate_trn_and_creates_QTS_task(teacherType: TraineeTeacher, husId: null, hasActiveSanctions: True, hasQts: True, hasEyts: False, expectedDescriptionSupplement: "Matched record has active sanctions & QTS date\n", expectedCategory: "DMSImportTrn")
✅ Given_husid_does_not_exist_request_succeeds_and_does_not_creates_review_task
✅ Given_husid_exists_request_succeeds_and_creates_review_task
✅ Given_invalid_HeQualificationValue_returns_failed
✅ Given_invalid_IttQualificationValue_returns_failed
✅ Given_itt_provider_ukprn_that_is_not_found_returns_failed
✅ Given_minimal_details_request_succeeds
✅ Given_name_containing_digits_creates_review_task(firstName: "Jo3e", middleName: "3X", lastName: "Bloggs", expectedDescription: "First name and middle name contain a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe", middleName: "X", lastName: "Bloggs3", expectedDescription: "Last name contains a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe", middleName: "X3", lastName: "Blog3gs", expectedDescription: "Middle name and last name contain a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe", middleName: "X3", lastName: "Bloggs", expectedDescription: "Middle name contains a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe3", middleName: "X", lastName: "Bloggs", expectedDescription: "First name contains a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe3", middleName: "X", lastName: "Bloggs3", expectedDescription: "First name and last name contain a digit")
✅ Given_name_containing_digits_creates_review_task(firstName: "Joe3", middleName: "X3", lastName: "Bloggs3", expectedDescription: "First name, middle name and last name contain a di"···)
✅ Given_OverseasQualifiedTeacher_teacher_creates_induction_entity
✅ Given_qualification_subject2_that_is_not_found_returns_failed
✅ Given_qualification_subject3_that_is_not_found_returns_failed
✅ Given_slugid_does_not_exist_request_succeeds_and_does_not_creates_review_task
✅ Given_specified_qualification_type_creates_qualification_with_type
✅ Given_teacher_slugid_exists_request_succeeds_and_creates_review_task
✅ Given_Trainee_teacher_does_not_create_induction_entity
✅ Given_valid_request_creates_required_entities(programmeType: AssessmentOnlyRoute)
✅ Given_valid_request_creates_required_entities(programmeType: EYITTAssessmentOnly)
✅ Given_valid_request_creates_required_entities(programmeType: LicensedTeacherProgramme)

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetCountryTests

✅ Given_invalid_country_code_returns_null
✅ Given_valid_country_code_returns_country

❌ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEarlyYearsStatusTests

❌ Given_invalid_value_returns_null
	Azure.RequestFailedException : There is already a lease present.
	RequestId:e513f638-e01e-0002-6ec2-f28877000000
	Time:2023-09-29T10:48:22.0306745Z
	Status: 409 (There is already a lease present.)
	ErrorCode: LeaseAlreadyPresent
	
	Content:
	<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
	RequestId:e513f638-e01e-0002-6ec2-f28877000000
	Time:2023-09-29T10:48:22.0306745Z</Message></Error>
	
	Headers:
	Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
	x-ms-request-id: e513f638-e01e-0002-6ec2-f28877000000
	x-ms-client-request-id: a7b87930-d222-458f-b944-6365a1071ee0
	x-ms-version: 2023-01-03
	x-ms-error-code: LeaseAlreadyPresent
	Date: Fri, 29 Sep 2023 10:48:21 GMT
	Content-Length: 221
	Content-Type: application/xml
	
✅ Given_valid_value_returns_entity

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEytsAwardeesForDateRangeTests

✅ GetEytsAwardeesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedQtsAwardees
✅ GetEytsAwardeesForDateRange_WhenCalledForFixedDataInBuildEnvironment_ReturnsExpectedQtsAwardees

❌ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeQualificationByCodeTests

✅ Given_invalid_qualification_name_returns_null
❌ Given_valid_qualification_name_returns_country
	Azure.RequestFailedException : There is already a lease present.
	RequestId:1ddccabd-701e-004d-10c3-f2f923000000
	Time:2023-09-29T10:54:29.2064730Z
	Status: 409 (There is already a lease present.)
	ErrorCode: LeaseAlreadyPresent
	
	Content:
	<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
	RequestId:1ddccabd-701e-004d-10c3-f2f923000000
	Time:2023-09-29T10:54:29.2064730Z</Message></Error>
	
	Headers:
	Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
	x-ms-request-id: 1ddccabd-701e-004d-10c3-f2f923000000
	x-ms-client-request-id: 864964a9-f81d-42cf-86db-6e33c0b4daaa
	x-ms-version: 2023-01-03
	x-ms-error-code: LeaseAlreadyPresent
	Date: Fri, 29 Sep 2023 10:54:28 GMT
	Content-Length: 221
	Content-Type: application/xml
	

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeSubjectByCodeTests

✅ Given_invalid_subject_name_returns_null
✅ Given_valid_subject_name_returns_country

❌ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionByTeacherTests

✅ Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(numberOfInductionPeriods: 0)
✅ Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(numberOfInductionPeriods: 1)
❌ Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(numberOfInductionPeriods: 2)
	Azure.RequestFailedException : There is already a lease present.
	RequestId:e5165dbf-e01e-0002-2fc2-f28877000000
	Time:2023-09-29T10:50:24.3014532Z
	Status: 409 (There is already a lease present.)
	ErrorCode: LeaseAlreadyPresent
	
	Content:
	<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
	RequestId:e5165dbf-e01e-0002-2fc2-f28877000000
	Time:2023-09-29T10:50:24.3014532Z</Message></Error>
	
	Headers:
	Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
	x-ms-request-id: e5165dbf-e01e-0002-2fc2-f28877000000
	x-ms-client-request-id: 22363933-174b-450d-89a9-7217b603f468
	x-ms-version: 2023-01-03
	x-ms-error-code: LeaseAlreadyPresent
	Date: Fri, 29 Sep 2023 10:50:23 GMT
	Content-Length: 221
	Content-Type: application/xml
	

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionCompleteesForDateRangeTests

✅ GetInductionCompleteesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedQtsAwardees

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInitialTeacherTrainingByTeacherTests

✅ Given_active_and_inactive_itt_records_are_returned_when_passing_includeInactive
✅ Given_inactive_itt_record_not_returned_by_default
✅ Given_IttDataExistsForTeacher_ReturnsExpectedColumnValues

❌ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInternationalQtsAwardeesForDateRangeTests

❌ GetInternationalQtsAwardeesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedInternationalQtsAwardees
	Azure.RequestFailedException : There is already a lease present.
	RequestId:89ea1148-801e-0066-38c3-f279ef000000
	Time:2023-09-29T10:58:34.2043180Z
	Status: 409 (There is already a lease present.)
	ErrorCode: LeaseAlreadyPresent
	
	Content:
	<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
	RequestId:89ea1148-801e-0066-38c3-f279ef000000
	Time:2023-09-29T10:58:34.2043180Z</Message></Error>
	
	Headers:
	Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
	x-ms-request-id: 89ea1148-801e-0066-38c3-f279ef000000
	x-ms-client-request-id: 64c4fe97-6fbf-48b1-8b02-311b643a04d4
	x-ms-version: 2023-01-03
	x-ms-error-code: LeaseAlreadyPresent
	Date: Fri, 29 Sep 2023 10:58:33 GMT
	Content-Length: 221
	Content-Type: application/xml
	

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttProvidersTests

✅ Returns_providers

❌ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttSubjectByCodeTests

❌ Given_invalid_subject_name_returns_null
	Azure.RequestFailedException : There is already a lease present.
	RequestId:1ddb2b1c-701e-004d-64c3-f2f923000000
	Time:2023-09-29T10:52:26.9700289Z
	Status: 409 (There is already a lease present.)
	ErrorCode: LeaseAlreadyPresent
	
	Content:
	<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
	RequestId:1ddb2b1c-701e-004d-64c3-f2f923000000
	Time:2023-09-29T10:52:26.9700289Z</Message></Error>
	
	Headers:
	Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
	x-ms-request-id: 1ddb2b1c-701e-004d-64c3-f2f923000000
	x-ms-client-request-id: 7b18f765-3d3a-47ac-bcfa-3a9c087a5b42
	x-ms-version: 2023-01-03
	x-ms-error-code: LeaseAlreadyPresent
	Date: Fri, 29 Sep 2023 10:52:26 GMT
	Content-Length: 221
	Content-Type: application/xml
	
✅ Given_valid_subject_name_returns_country

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetMatchingTeachersTests

✅ Given_matching_national_insurance_number_and_matching_birth_date_and_different_matching_TRN_return_teacher
✅ Given_matching_national_insurance_number_and_matching_birth_date_and_matching_TRN_return_teacher
✅ Given_matching_national_insurance_number_and_matching_birth_date_but_non_matching_TRN_return_teacher
✅ Given_matching_national_insurance_number_but_non_matching_TRN_and_non_matching_birth_date_return_empty
✅ Given_matching_TRN_and_matching_birth_date_but_non_matching_national_insurance_number_return_teacher
✅ Given_matching_TRN_and_matching_birth_date_return_unique_teacher
✅ Given_matching_TRN_and_matching_national_insurance_number_but_non_matching_birth_date_return_empty
✅ Given_matching_TRN_but_non_matching_national_insurance_number_and_non_matching_birth_date_return_empty
✅ Given_non_matching_birth_date_return_no_teachers
✅ Given_non_matching_TRN_and_non_matching_birth_date_return_no_teachers
✅ Given_non_matching_TRN_return_no_teachers

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetOrganizationsByUkprnTests

✅ Given_invalid_ukprn_returns_null
✅ Given_valid_ukprn_returns_account

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQtsAwardeesForDateRangeTests

✅ GetQtsAwardeesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedQtsAwardees
✅ GetQtsAwardeesForDateRange_WhenCalledForFixedDataInBuildEnvironment_ReturnsExpectedQtsAwardees

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationByIdTests

✅ Given_QualificationExistForId_ReturnsExpectedColumnValues(setContactColumnNames: False)
✅ Given_QualificationExistForId_ReturnsExpectedColumnValues(setContactColumnNames: True)

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationsForTeacherTests

✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: False, setHeSubjectColumnNames: False, setSpecialismColumnNames: False)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: False, setHeSubjectColumnNames: False, setSpecialismColumnNames: True)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: False, setHeSubjectColumnNames: True, setSpecialismColumnNames: False)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: False, setHeSubjectColumnNames: True, setSpecialismColumnNames: True)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: True, setHeSubjectColumnNames: False, setSpecialismColumnNames: False)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: True, setHeSubjectColumnNames: False, setSpecialismColumnNames: True)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: True, setHeSubjectColumnNames: True, setSpecialismColumnNames: False)
✅ Given_QualificationsExistForTeacher_ReturnsExpectedColumnValues(setHeQualificationColumnNames: True, setHeSubjectColumnNames: True, setSpecialismColumnNames: True)

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetSubjectByTitleTests

✅ UnmatchedDescription_ReturnsNull
✅ ValidDescription_ReturnsSubject

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherByHusIdTests

✅ Given_existing_teacher_matches_on_husid_return_teacher
✅ Given_teacher_for_husid_does_not_exist_return_empty_array

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByInitialTeacherTrainingSlugIdTests

✅ Given_multiple_itt_records_exist_with_slugid_return_associated_teachers
✅ Given_no_itt_records_exist_with_slugid_return_empty_collection

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByTrnAndDobTests

✅ Given_existing_teacher_matches_on_dob_and_trn_return_teacher
✅ Given_existing_teacher_matches_only_trn_return_empty_collection

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherStatusTests

✅ Given_invalid_value_returns_null
✅ Given_valid_value_returns_entity

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherTests

✅ Given_merged_teacher_and_resolveMerges_false_return_merged_record
✅ Given_merged_teacher_and_resolveMerges_true_return_master
✅ Given_teacher_that_does_not_exist_returns_null
✅ Given_teacher_that_exists_returns_teacher

❌ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetIttOutcomeForTeacherTests

✅ Given_earlyyears_teacher_is_withdrawn_earlyyearsstatusid_is_set_to_null
✅ Given_existing_eyts_update_with_different_assessment_date_returns_error
✅ Given_existing_eyts_update_with_same_assessment_date_returns_success
✅ Given_existing_qts_update_assessment_date_with_same_assessmentdate_succeeds
✅ Given_existing_qts_update_with_different_assessment_date_returns_error
✅ Given_existing_qts_update_with_same_assessment_date_returns_success
✅ Given_itt_does_not_exist_for_slugid_fallback_to_establishment_matching_return_success
✅ Given_itt_matches_on_slugid_but_not_establishmentid_return_error
✅ Given_itt_record_with_slugid_can_be_updated_using_slugid
❌ Given_teacher_creating_review_task_description_is_correct
	Azure.RequestFailedException : There is already a lease present.
	RequestId:1dde665c-701e-004d-03c3-f2f923000000
	Time:2023-09-29T10:56:31.4378911Z
	Status: 409 (There is already a lease present.)
	ErrorCode: LeaseAlreadyPresent
	
	Content:
	<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
	RequestId:1dde665c-701e-004d-03c3-f2f923000000
	Time:2023-09-29T10:56:31.4378911Z</Message></Error>
	
	Headers:
	Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
	x-ms-request-id: 1dde665c-701e-004d-03c3-f2f923000000
	x-ms-client-request-id: b4924791-48bc-4417-8155-182029435fea
	x-ms-version: 2023-01-03
	x-ms-error-code: LeaseAlreadyPresent
	Date: Fri, 29 Sep 2023 10:56:31 GMT
	Content-Length: 221
	Content-Type: application/xml
	
✅ Given_teacher_is_failed_cannot_set_result_to_pass
✅ Given_teacher_is_failed_cannot_set_result_to(newResult: Deferred, assessmentDate: null)
✅ Given_teacher_is_failed_cannot_set_result_to(newResult: DeferredforSkillsTests, assessmentDate: null)
✅ Given_teacher_is_failed_cannot_set_result_to(newResult: Withdrawn, assessmentDate: null)
✅ Given_teacher_is_failed_do_not_error_when_request_result_is_fail
✅ Given_teacher_with_active_sanctions_creates_review_task
✅ Given_teacher_without_active_sanctions_does_not_create_review_task
✅ Given_valid_request_with_non_withdrawn_result_for_early_years_does_not_clear_earlyyearsstatusid(ittResult: Deferred)
✅ Given_valid_request_with_non_withdrawn_result_for_early_years_does_not_clear_earlyyearsstatusid(ittResult: DeferredforSkillsTests)
✅ Given_valid_request_with_non_withdrawn_result_for_early_years_does_not_clear_earlyyearsstatusid(ittResult: Fail)
✅ Given_valid_request_with_non_withdrawn_result_for_teacher_does_not_clear_teacherstatusid(ittResult: Deferred)
✅ Given_valid_request_with_non_withdrawn_result_for_teacher_does_not_clear_teacherstatusid(ittResult: DeferredforSkillsTests)
✅ Given_valid_request_with_non_withdrawn_result_for_teacher_does_not_clear_teacherstatusid(ittResult: Fail)
✅ Given_valid_request_with_Pass_result_for_early_years_updates_qts_and_does_not_create_induction
✅ Given_valid_request_with_Pass_result_for_qts_updates_qts_and_creates_induction(assessmentOnly: False, iqtsProgrammeType: False, expectedTeacherStatus: "71")
✅ Given_valid_request_with_Pass_result_for_qts_updates_qts_and_creates_induction(assessmentOnly: False, iqtsProgrammeType: True, expectedTeacherStatus: "90")
✅ Given_valid_request_with_Pass_result_for_qts_updates_qts_and_creates_induction(assessmentOnly: True, iqtsProgrammeType: False, expectedTeacherStatus: "100")
✅ Given_withdrawn_itt_record_cannot_change_result
✅ SelectIttRecord_given_multiple_matching_itt_records_returns_MultipleMatchingIttRecords(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }, dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }])
✅ SelectIttRecord_given_no_itt_records_returns_NoMatchingIttRecord(records: [])
✅ SelectIttRecord_given_no_itt_records_returns_NoMatchingIttRecord(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }, dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }])
✅ SelectIttRecord_given_no_itt_records_returns_NoMatchingIttRecord(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }])
✅ SelectIttRecord_given_single_matching_itt_record_returns_that_record(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }], expectedResult: dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· })
✅ SelectIttRecord_given_single_matching_itt_record_returns_that_record(records: [dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· }], expectedResult: dfeta_initialteachertraining { Attributes = [···], dfeta_account_dfeta_initialteachertraining = null, dfeta_AgeRangeFrom = null, dfeta_AgeRangeTo = null, dfeta_CohortYear = null, ··· })

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetNpqQualificationTests

✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQEL)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQEYL)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQH)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQLBC)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQLL)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQLT)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQLTD)
✅ Given_creating_new_npq_qualification_for_teacher_with_activesanctions_creates_reviewtask(type: NPQSL)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQEL)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQEYL)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQH)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQLBC)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQLL)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQLT)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQLTD)
✅ Given_existing_api_and_none_api_created_npq_qualification_update_only_apicreated_npq_returns_success(type: NPQSL)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQEYL)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQH)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQLT)
✅ Given_existing_api_created_npq_qualification_clearing_completiondate_returns_success(type: NPQSL)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQEL)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQEYL)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQH)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQLBC)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQLL)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQLT)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQLTD)
✅ Given_updating_existing_api_created_qualification_with_more_than_one_matching_qualificationtype_returns_error(type: NPQSL)

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetTsPersonIdTests

✅ Given_valid_id_updates_tspersonid

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UnlockTeacherRecordTests

✅ Given_a_valid_id_sets_loginfailedcounter_to_0_and_returns_true(initialLoginFailedCounter: 5)
✅ Given_a_valid_id_sets_loginfailedcounter_to_0_and_returns_true(initialLoginFailedCounter: null)
✅ Given_an_id_that_does_not_exist_returns_false

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherIdentityInfoTests

✅ Given_UpdatingExistingTeacher_SetsFieldValuesAsExpected

✅ TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherTests

✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: Apprenticeship)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: AssessmentOnlyRoute)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: Core)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: CoreFlexible)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: FutureTeachingScholars)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: GraduateTeacherProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: HEI)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: LicensedTeacherProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: OverseasTrainedTeacherProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: Providerled_postgrad)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: Providerled_undergrad)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: RegisteredTeacherProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: SchoolDirecttrainingprogramme_Salaried)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: SchoolDirecttrainingprogramme_Selffunded)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: SchoolDirecttrainingprogramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: TeachFirstProgramme_CC)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: TeachFirstProgramme)
✅ Given_earlyyears_itt_cannot_change_eyts_programmetype_to_qts(programmeType: UndergraduateOptIn)
✅ Given_intraining_eyts_itt_record_cannot_change_result_to(ittResult: Deferred)
✅ Given_intraining_eyts_itt_record_cannot_change_result_to(ittResult: InTraining)
✅ Given_intraining_eyts_itt_record_cannot_passing_result_returns_error(ittResult: Fail)
✅ Given_intraining_eyts_itt_record_cannot_passing_result_returns_error(ittResult: Pass)
✅ Given_intraining_eyts_itt_record_cannot_passing_result_returns_error(ittResult: Withdrawn)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTAssessmentOnly)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTGraduateEmploymentBased)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTGraduateEntry)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTSchoolDirect_EarlyYears)
✅ Given_qts_itt_cannot_change_qts_programmetype_to_eyts_programmetype(programmeType: EYITTUndergraduate)
✅ Given_withdrawn_qts_with_none_empty_teacherstatus_fail

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.ApproveIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CancelIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateDateOfBirthChangeIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateNameChangeIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetActiveIncidentsTests

✅ ReturnsActiveIncidentsOnly

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSanctionCodesTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSubjectsTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllTeacherStatusesTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactByTrnTests

✅ WhenCalled_WithTrnForExistingContact_ReturnsContactDetail
✅ WhenCalled_WithTrnForNonExistentContact_ReturnsNull

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactDetailByIdTests

✅ WhenCalled_WithContactIdForExistingContact_ReturnsContactDetail
✅ WhenCalled_WithContactIdForNonExistentContact_ReturnsNull

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByDateOfBirthTests

✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = False, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_1(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = LastNameDescending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = False, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_3(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = FirstNameDescending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = False, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_5(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = DateOfBirthDescending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = True, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_0(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = LastNameAscending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = True, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_2(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = FirstNameAscending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = True, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_4(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = DateOfBirthAscending })

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByLastNameAndDateOfBirthTests

✅ ReturnsMatchingContactsFromCrm

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByNameTests

✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = False, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_1(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = LastNameDescending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = False, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_3(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = FirstNameDescending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = False, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_5(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = DateOfBirthDescending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = True, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_0(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = LastNameAscending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = True, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_2(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = FirstNameAscending })
✅ ReturnsMatchingContactsFromCrmInExpectedSortOrder(testScenarioData: ContactSearchSortScenarioData { IsAscending = True, Selector = Func`2 { Method = System.String <GetContactSearchSortScenarioData>b__5_4(TeachingRecordSystem.Core.Dqt.Models.Contact), Target = <>c { ··· } }, SortBy = DateOfBirthAscending })

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetDocumentByIdTests

✅ WhenCalled_WithDocumentIdForExistingDocument_ReturnsDocument
✅ WhenCalled_WithDocumentIdForNonExistentDocument_ReturnsNull

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetIncidentByTicketNumberTests

✅ WhenCalled_ForIncidentWithMultipleDocument_ReturnsSingleIncidentAndMultipleDocuments
✅ WhenCalled_ForIncidentWithSingleDocument_ReturnsSingleIncidentAndSingleDocument
✅ WhenCalled_WithTicketNumberForNonExistentIncident_ReturnsNull

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionDetailsByContactIdTests

✅ WhenCalled_ForContactWithoutSanctions_ReturnsEmptyArray
✅ WhenCalled_ForContactWithSanctions_ReturnsSanctionsAsExpected

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionsByContactIdsTests

✅ EndedSanctionIsReturnedAsExpected(ended: False, activeOnly: False, expectSanctionReturned: True)
✅ EndedSanctionIsReturnedAsExpected(ended: False, activeOnly: True, expectSanctionReturned: True)
✅ EndedSanctionIsReturnedAsExpected(ended: True, activeOnly: False, expectSanctionReturned: True)
✅ EndedSanctionIsReturnedAsExpected(ended: True, activeOnly: True, expectSanctionReturned: False)
✅ ReturnsSanctionsForEachContactIdSpecified
✅ SpentSanctionIsReturnedAsExpected(spent: False, activeOnly: False, expectSanctionReturned: True)
✅ SpentSanctionIsReturnedAsExpected(spent: False, activeOnly: True, expectSanctionReturned: True)
✅ SpentSanctionIsReturnedAsExpected(spent: True, activeOnly: False, expectSanctionReturned: True)
✅ SpentSanctionIsReturnedAsExpected(spent: True, activeOnly: True, expectSanctionReturned: False)

✅ TeachingRecordSystem.Core.Dqt.Tests.QueryTests.RejectIncidentTests

✅ QueryExecutesSuccessfully

✅ TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingServiceTests

✅ ProcessChangesForEntityType_DeletesRemovedRecordFromDatabase
✅ ProcessChangesForEntityType_WritesNewRecordToDatabase
✅ ProcessChangesForEntityType_WritesUpdatedRecordToDatabase

Annotations

Check failure on line 147 in TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEarlyYearsStatusTests ► Given_invalid_value_returns_null

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az592-781_2023-09-29_10_47_07.trx
Error:
  Azure.RequestFailedException : There is already a lease present.
  RequestId:e513f638-e01e-0002-6ec2-f28877000000
  Time:2023-09-29T10:48:22.0306745Z
  Status: 409 (There is already a lease present.)
  ErrorCode: LeaseAlreadyPresent
  
  Content:
  <?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
  RequestId:e513f638-e01e-0002-6ec2-f28877000000
  Time:2023-09-29T10:48:22.0306745Z</Message></Error>
  
  Headers:
  Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
  x-ms-request-id: e513f638-e01e-0002-6ec2-f28877000000
  x-ms-client-request-id: a7b87930-d222-458f-b944-6365a1071ee0
  x-ms-version: 2023-01-03
  x-ms-error-code: LeaseAlreadyPresent
  Date: Fri, 29 Sep 2023 10:48:21 GMT
  Content-Length: 221
  Content-Type: application/xml
  
Raw output
Azure.RequestFailedException : There is already a lease present.
RequestId:e513f638-e01e-0002-6ec2-f28877000000
Time:2023-09-29T10:48:22.0306745Z
Status: 409 (There is already a lease present.)
ErrorCode: LeaseAlreadyPresent

Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
RequestId:e513f638-e01e-0002-6ec2-f28877000000
Time:2023-09-29T10:48:22.0306745Z</Message></Error>

Headers:
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: e513f638-e01e-0002-6ec2-f28877000000
x-ms-client-request-id: a7b87930-d222-458f-b944-6365a1071ee0
x-ms-version: 2023-01-03
x-ms-error-code: LeaseAlreadyPresent
Date: Fri, 29 Sep 2023 10:48:21 GMT
Content-Length: 221
Content-Type: application/xml

   at Azure.Core.HttpPipelineExtensions.ProcessMessage(HttpPipeline pipeline, HttpMessage message, RequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Storage.Blobs.BlobRestClient.AcquireLease(Nullable`1 timeout, Nullable`1 duration, String proposedLeaseId, String ifTags, RequestConditions requestConditions, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.AcquireInternal(TimeSpan duration, RequestConditions conditions, Boolean async, RequestContext context)
   at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted[T](Task`1 task)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.Acquire(TimeSpan duration, RequestConditions conditions, CancellationToken cancellationToken)
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture.EnvironmentLockManager.AcquireLock(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 147
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture..ctor(ServiceClient serviceClient, IConfiguration configuration, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 30
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)

Check failure on line 147 in TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeQualificationByCodeTests ► Given_valid_qualification_name_returns_country

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az592-781_2023-09-29_10_47_07.trx
Error:
  Azure.RequestFailedException : There is already a lease present.
  RequestId:1ddccabd-701e-004d-10c3-f2f923000000
  Time:2023-09-29T10:54:29.2064730Z
  Status: 409 (There is already a lease present.)
  ErrorCode: LeaseAlreadyPresent
  
  Content:
  <?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
  RequestId:1ddccabd-701e-004d-10c3-f2f923000000
  Time:2023-09-29T10:54:29.2064730Z</Message></Error>
  
  Headers:
  Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
  x-ms-request-id: 1ddccabd-701e-004d-10c3-f2f923000000
  x-ms-client-request-id: 864964a9-f81d-42cf-86db-6e33c0b4daaa
  x-ms-version: 2023-01-03
  x-ms-error-code: LeaseAlreadyPresent
  Date: Fri, 29 Sep 2023 10:54:28 GMT
  Content-Length: 221
  Content-Type: application/xml
  
Raw output
Azure.RequestFailedException : There is already a lease present.
RequestId:1ddccabd-701e-004d-10c3-f2f923000000
Time:2023-09-29T10:54:29.2064730Z
Status: 409 (There is already a lease present.)
ErrorCode: LeaseAlreadyPresent

Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
RequestId:1ddccabd-701e-004d-10c3-f2f923000000
Time:2023-09-29T10:54:29.2064730Z</Message></Error>

Headers:
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 1ddccabd-701e-004d-10c3-f2f923000000
x-ms-client-request-id: 864964a9-f81d-42cf-86db-6e33c0b4daaa
x-ms-version: 2023-01-03
x-ms-error-code: LeaseAlreadyPresent
Date: Fri, 29 Sep 2023 10:54:28 GMT
Content-Length: 221
Content-Type: application/xml

   at Azure.Core.HttpPipelineExtensions.ProcessMessage(HttpPipeline pipeline, HttpMessage message, RequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Storage.Blobs.BlobRestClient.AcquireLease(Nullable`1 timeout, Nullable`1 duration, String proposedLeaseId, String ifTags, RequestConditions requestConditions, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.AcquireInternal(TimeSpan duration, RequestConditions conditions, Boolean async, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.Acquire(TimeSpan duration, RequestConditions conditions, CancellationToken cancellationToken)
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture.EnvironmentLockManager.AcquireLock(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 147
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture..ctor(ServiceClient serviceClient, IConfiguration configuration, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 30
   at InvokeStub_CrmClientFixture..ctor(Object, Object, IntPtr*)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)

Check failure on line 147 in TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionByTeacherTests ► Given_InductionExistsForTeacher_ReturnsExpectedColumnValues(numberOfInductionPeriods: 2)

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az592-781_2023-09-29_10_47_07.trx
Error:
  Azure.RequestFailedException : There is already a lease present.
  RequestId:e5165dbf-e01e-0002-2fc2-f28877000000
  Time:2023-09-29T10:50:24.3014532Z
  Status: 409 (There is already a lease present.)
  ErrorCode: LeaseAlreadyPresent
  
  Content:
  <?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
  RequestId:e5165dbf-e01e-0002-2fc2-f28877000000
  Time:2023-09-29T10:50:24.3014532Z</Message></Error>
  
  Headers:
  Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
  x-ms-request-id: e5165dbf-e01e-0002-2fc2-f28877000000
  x-ms-client-request-id: 22363933-174b-450d-89a9-7217b603f468
  x-ms-version: 2023-01-03
  x-ms-error-code: LeaseAlreadyPresent
  Date: Fri, 29 Sep 2023 10:50:23 GMT
  Content-Length: 221
  Content-Type: application/xml
  
Raw output
Azure.RequestFailedException : There is already a lease present.
RequestId:e5165dbf-e01e-0002-2fc2-f28877000000
Time:2023-09-29T10:50:24.3014532Z
Status: 409 (There is already a lease present.)
ErrorCode: LeaseAlreadyPresent

Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
RequestId:e5165dbf-e01e-0002-2fc2-f28877000000
Time:2023-09-29T10:50:24.3014532Z</Message></Error>

Headers:
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: e5165dbf-e01e-0002-2fc2-f28877000000
x-ms-client-request-id: 22363933-174b-450d-89a9-7217b603f468
x-ms-version: 2023-01-03
x-ms-error-code: LeaseAlreadyPresent
Date: Fri, 29 Sep 2023 10:50:23 GMT
Content-Length: 221
Content-Type: application/xml

   at Azure.Core.HttpPipelineExtensions.ProcessMessage(HttpPipeline pipeline, HttpMessage message, RequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Storage.Blobs.BlobRestClient.AcquireLease(Nullable`1 timeout, Nullable`1 duration, String proposedLeaseId, String ifTags, RequestConditions requestConditions, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.AcquireInternal(TimeSpan duration, RequestConditions conditions, Boolean async, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.Acquire(TimeSpan duration, RequestConditions conditions, CancellationToken cancellationToken)
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture.EnvironmentLockManager.AcquireLock(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 147
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture..ctor(ServiceClient serviceClient, IConfiguration configuration, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 30
   at InvokeStub_CrmClientFixture..ctor(Object, Object, IntPtr*)
   at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)

Check failure on line 147 in TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInternationalQtsAwardeesForDateRangeTests ► GetInternationalQtsAwardeesForDateRange_WhenCalledForDataGeneratedInTest_ReturnsExpectedInternationalQtsAwardees

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az592-781_2023-09-29_10_47_07.trx
Error:
  Azure.RequestFailedException : There is already a lease present.
  RequestId:89ea1148-801e-0066-38c3-f279ef000000
  Time:2023-09-29T10:58:34.2043180Z
  Status: 409 (There is already a lease present.)
  ErrorCode: LeaseAlreadyPresent
  
  Content:
  <?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
  RequestId:89ea1148-801e-0066-38c3-f279ef000000
  Time:2023-09-29T10:58:34.2043180Z</Message></Error>
  
  Headers:
  Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
  x-ms-request-id: 89ea1148-801e-0066-38c3-f279ef000000
  x-ms-client-request-id: 64c4fe97-6fbf-48b1-8b02-311b643a04d4
  x-ms-version: 2023-01-03
  x-ms-error-code: LeaseAlreadyPresent
  Date: Fri, 29 Sep 2023 10:58:33 GMT
  Content-Length: 221
  Content-Type: application/xml
  
Raw output
Azure.RequestFailedException : There is already a lease present.
RequestId:89ea1148-801e-0066-38c3-f279ef000000
Time:2023-09-29T10:58:34.2043180Z
Status: 409 (There is already a lease present.)
ErrorCode: LeaseAlreadyPresent

Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
RequestId:89ea1148-801e-0066-38c3-f279ef000000
Time:2023-09-29T10:58:34.2043180Z</Message></Error>

Headers:
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 89ea1148-801e-0066-38c3-f279ef000000
x-ms-client-request-id: 64c4fe97-6fbf-48b1-8b02-311b643a04d4
x-ms-version: 2023-01-03
x-ms-error-code: LeaseAlreadyPresent
Date: Fri, 29 Sep 2023 10:58:33 GMT
Content-Length: 221
Content-Type: application/xml

   at Azure.Core.HttpPipelineExtensions.ProcessMessage(HttpPipeline pipeline, HttpMessage message, RequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Storage.Blobs.BlobRestClient.AcquireLease(Nullable`1 timeout, Nullable`1 duration, String proposedLeaseId, String ifTags, RequestConditions requestConditions, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.AcquireInternal(TimeSpan duration, RequestConditions conditions, Boolean async, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.Acquire(TimeSpan duration, RequestConditions conditions, CancellationToken cancellationToken)
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture.EnvironmentLockManager.AcquireLock(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 147
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture..ctor(ServiceClient serviceClient, IConfiguration configuration, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 30
   at InvokeStub_CrmClientFixture..ctor(Object, Object, IntPtr*)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)

Check failure on line 147 in TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttSubjectByCodeTests ► Given_invalid_subject_name_returns_null

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az592-781_2023-09-29_10_47_07.trx
Error:
  Azure.RequestFailedException : There is already a lease present.
  RequestId:1ddb2b1c-701e-004d-64c3-f2f923000000
  Time:2023-09-29T10:52:26.9700289Z
  Status: 409 (There is already a lease present.)
  ErrorCode: LeaseAlreadyPresent
  
  Content:
  <?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
  RequestId:1ddb2b1c-701e-004d-64c3-f2f923000000
  Time:2023-09-29T10:52:26.9700289Z</Message></Error>
  
  Headers:
  Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
  x-ms-request-id: 1ddb2b1c-701e-004d-64c3-f2f923000000
  x-ms-client-request-id: 7b18f765-3d3a-47ac-bcfa-3a9c087a5b42
  x-ms-version: 2023-01-03
  x-ms-error-code: LeaseAlreadyPresent
  Date: Fri, 29 Sep 2023 10:52:26 GMT
  Content-Length: 221
  Content-Type: application/xml
  
Raw output
Azure.RequestFailedException : There is already a lease present.
RequestId:1ddb2b1c-701e-004d-64c3-f2f923000000
Time:2023-09-29T10:52:26.9700289Z
Status: 409 (There is already a lease present.)
ErrorCode: LeaseAlreadyPresent

Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
RequestId:1ddb2b1c-701e-004d-64c3-f2f923000000
Time:2023-09-29T10:52:26.9700289Z</Message></Error>

Headers:
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 1ddb2b1c-701e-004d-64c3-f2f923000000
x-ms-client-request-id: 7b18f765-3d3a-47ac-bcfa-3a9c087a5b42
x-ms-version: 2023-01-03
x-ms-error-code: LeaseAlreadyPresent
Date: Fri, 29 Sep 2023 10:52:26 GMT
Content-Length: 221
Content-Type: application/xml

   at Azure.Core.HttpPipelineExtensions.ProcessMessage(HttpPipeline pipeline, HttpMessage message, RequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Storage.Blobs.BlobRestClient.AcquireLease(Nullable`1 timeout, Nullable`1 duration, String proposedLeaseId, String ifTags, RequestConditions requestConditions, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.AcquireInternal(TimeSpan duration, RequestConditions conditions, Boolean async, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.Acquire(TimeSpan duration, RequestConditions conditions, CancellationToken cancellationToken)
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture.EnvironmentLockManager.AcquireLock(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 147
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture..ctor(ServiceClient serviceClient, IConfiguration configuration, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 30
   at InvokeStub_CrmClientFixture..ctor(Object, Object, IntPtr*)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)

Check failure on line 147 in TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetIttOutcomeForTeacherTests ► Given_teacher_creating_review_task_description_is_correct

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az592-781_2023-09-29_10_47_07.trx
Error:
  Azure.RequestFailedException : There is already a lease present.
  RequestId:1dde665c-701e-004d-03c3-f2f923000000
  Time:2023-09-29T10:56:31.4378911Z
  Status: 409 (There is already a lease present.)
  ErrorCode: LeaseAlreadyPresent
  
  Content:
  <?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
  RequestId:1dde665c-701e-004d-03c3-f2f923000000
  Time:2023-09-29T10:56:31.4378911Z</Message></Error>
  
  Headers:
  Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
  x-ms-request-id: 1dde665c-701e-004d-03c3-f2f923000000
  x-ms-client-request-id: b4924791-48bc-4417-8155-182029435fea
  x-ms-version: 2023-01-03
  x-ms-error-code: LeaseAlreadyPresent
  Date: Fri, 29 Sep 2023 10:56:31 GMT
  Content-Length: 221
  Content-Type: application/xml
  
Raw output
Azure.RequestFailedException : There is already a lease present.
RequestId:1dde665c-701e-004d-03c3-f2f923000000
Time:2023-09-29T10:56:31.4378911Z
Status: 409 (There is already a lease present.)
ErrorCode: LeaseAlreadyPresent

Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>LeaseAlreadyPresent</Code><Message>There is already a lease present.
RequestId:1dde665c-701e-004d-03c3-f2f923000000
Time:2023-09-29T10:56:31.4378911Z</Message></Error>

Headers:
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 1dde665c-701e-004d-03c3-f2f923000000
x-ms-client-request-id: b4924791-48bc-4417-8155-182029435fea
x-ms-version: 2023-01-03
x-ms-error-code: LeaseAlreadyPresent
Date: Fri, 29 Sep 2023 10:56:31 GMT
Content-Length: 221
Content-Type: application/xml

   at Azure.Core.HttpPipelineExtensions.ProcessMessage(HttpPipeline pipeline, HttpMessage message, RequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Storage.Blobs.BlobRestClient.AcquireLease(Nullable`1 timeout, Nullable`1 duration, String proposedLeaseId, String ifTags, RequestConditions requestConditions, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.AcquireInternal(TimeSpan duration, RequestConditions conditions, Boolean async, RequestContext context)
   at Azure.Storage.Blobs.Specialized.BlobLeaseClient.Acquire(TimeSpan duration, RequestConditions conditions, CancellationToken cancellationToken)
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture.EnvironmentLockManager.AcquireLock(CancellationToken cancellationToken) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 147
   at TeachingRecordSystem.Core.Dqt.Tests.CrmClientFixture..ctor(ServiceClient serviceClient, IConfiguration configuration, IMemoryCache memoryCache) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/CrmClientFixture.cs:line 30
   at InvokeStub_CrmClientFixture..ctor(Object, Object, IntPtr*)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)