Skip to content

Add script to add missing metadata for High Potential ITT to reporting db #1129

Add script to add missing metadata for High Potential ITT to reporting db

Add script to add missing metadata for High Potential ITT to reporting db #1129

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / DQT test results failed Oct 16, 2023 in 1s

DQT test results ❌

Tests failed

❌ TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az337-14_2023-10-16_15_36_21.trx

410 tests were completed in 1014s with 408 passed, 1 failed and 1 skipped.

Test suite Passed Failed Skipped Time
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.ClearTeacherIdentityInfoTests 2✅ 45s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.CreateTeacherTests 95✅ 1⚪ 330s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.FindTeachersTests 4✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetCountryTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEarlyYearsStatusTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetEytsAwardeesForDateRangeTests 2✅ 116s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeQualificationByCodeTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetHeSubjectByCodeTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionByTeacherTests 3✅ 77s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInductionCompleteesForDateRangeTests 1✅ 117s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInitialTeacherTrainingByTeacherTests 3✅ 92s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetInternationalQtsAwardeesForDateRangeTests 1✅ 115s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttProvidersTests 1✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetIttSubjectByCodeTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetMatchingTeachersTests 11✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetOrganizationsByUkprnTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQtsAwardeesForDateRangeTests 2✅ 54s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationByIdTests 2✅ 54s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetQualificationsForTeacherTests 8✅ 160s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetSubjectByTitleTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherByHusIdTests 2✅ 75s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByInitialTeacherTrainingSlugIdTests 2✅ 74s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeachersByTrnAndDobTests 2✅ 60s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherStatusTests 2✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherTests 3✅ 1❌ 106s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetIttOutcomeForTeacherTests 35✅ 481s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetNpqQualificationTests 41✅ 533s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.SetTsPersonIdTests 1✅ 40s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UnlockTeacherRecordTests 3✅ 65s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherIdentityInfoTests 1✅ 14s
TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.UpdateTeacherTests 116✅ 790s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.ApproveIncidentTests 1✅ 7s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CancelIncidentTests 1✅ 34s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CloseSanctionTests 1✅ 46s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateDateOfBirthChangeIncidentTests 1✅ 31s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateNameChangeIncidentTests 1✅ 31s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.CreateSanctionTests 1✅ 8s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetActiveIncidentsTests 1✅ 10s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSanctionCodesTests 1✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllSubjectsTests 1✅ 2s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetAllTeacherStatusesTests 1✅ 1s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactByTrnTests 2✅ 51s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactDetailByIdTests 3✅ 61s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByDateOfBirthTests 6✅ 381s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByLastNameAndDateOfBirthTests 1✅ 51s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetContactsByNameTests 6✅ 3s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetDocumentByIdTests 2✅ 5s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetIncidentByTicketNumberTests 3✅ 64s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionDetailsByContactIdTests 2✅ 63s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionDetailsBySanctionIdTests 1✅ 44s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.GetSanctionsByContactIdsTests 9✅ 167s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.RejectIncidentTests 1✅ 34s
TeachingRecordSystem.Core.Dqt.Tests.QueryTests.UpdateSanctionStateTests 2✅ 74s
TeachingRecordSystem.Core.Dqt.Tests.Services.DqtReporting.DqtReportingServiceTests 3✅ 50s

❌ 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
	System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] : Entity 'contact' With Id = 1f3e071e-7344-4be4-b5b5-05543afce7e3 Does Not Exist
✅ Given_teacher_that_exists_returns_teacher

Annotations

Check failure on line 1029 in TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/DataverseAdapter.cs

See this annotation in the file changed.

@github-actions github-actions / DQT test results

TeachingRecordSystem.Core.Dqt.Tests.DataverseAdapterTests.GetTeacherTests ► Given_teacher_that_does_not_exist_returns_null

Failed test found in:
  TeachingRecordSystem/tests/TeachingRecordSystem.Core.Dqt.Tests/TestResults/_fv-az337-14_2023-10-16_15_36_21.trx
Error:
  System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] : Entity 'contact' With Id = 1f3e071e-7344-4be4-b5b5-05543afce7e3 Does Not Exist
Raw output
System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] : Entity 'contact' With Id = 1f3e071e-7344-4be4-b5b5-05543afce7e3 Does Not Exist
   at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.UpdateAsync(Entity entity, CancellationToken cancellationToken)
   at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.UpdateAsync(Entity entity)
   at TeachingRecordSystem.Core.Dqt.DataverseAdapter.UnlockTeacherRecord(Guid teacherId) in /home/runner/work/teaching-record-system/teaching-record-system/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/DataverseAdapter.cs:line 1029