Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AA-1744] NET 8 - Update Restsharp - Token Serialization #469

Merged
merged 4 commits into from
Jun 13, 2024

Update pgsql.Dockerfile

8a549a4
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

[AA-1744] NET 8 - Update Restsharp - Token Serialization #469

Update pgsql.Dockerfile
8a549a4
Select commit
Loading
Failed to load commit list.
GitHub Actions / C# Unit Test Results succeeded Jun 13, 2024 in 1s

C# Unit Test Results ✔️

Tests passed successfully

✔️ Application/EdFi.Ods.AdminApp.Management.UnitTests/bin/Debug/net8.0/EdFi.Ods.AdminApp.Management.UnitTests.dll.trx

84 tests were completed in 1s with 84 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
EdFi.Ods.AdminApp.Management.UnitTests.Api.InferExtensionDetailsTests 9✔️ 27ms
EdFi.Ods.AdminApp.Management.UnitTests.Api.OdsApiFacadeTests 19✔️ 545ms
EdFi.Ods.AdminApp.Management.UnitTests.Api.OdsApiValidatorTests 6✔️ 97ms
EdFi.Ods.AdminApp.Management.UnitTests.Api.WhenGettingTheApiBaseUrl 4✔️ 1ms
EdFi.Ods.AdminApp.Management.UnitTests.Automapper.AdminManagementMappingProfileTests+When_Auto_Mapper_Configuration_Is_Valid 1✔️ 17ms
EdFi.Ods.AdminApp.Management.UnitTests.Automapper.AdminManagementMappingProfileTests+When_Mapping_Values_From_Source_To_Destination 8✔️ 72ms
EdFi.Ods.AdminApp.Management.UnitTests.Automapper.EducationOrganizationAddressResolverTests 2✔️ 8ms
EdFi.Ods.AdminApp.Management.UnitTests.Automapper.EducationOrganizationCategoryResolverTests+When_resolving_value_with_education_organization_category_resolver 1✔️ 3ms
EdFi.Ods.AdminApp.Management.UnitTests.Automapper.LocalEducationAgencyReferenceResolverTests 2✔️ 5ms
EdFi.Ods.AdminApp.Management.UnitTests.Automapper.SchoolGradeLevelResolverTests+When_resolving_value_with_grade_level_resolver 1✔️ 2ms
EdFi.Ods.AdminApp.Management.UnitTests.Automapper.StateEducationAgencyReferenceResolverTests 2✔️ 4ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenEmptyString 1✔️ 2ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenNullInput 1✔️ 0ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenTooManyPeriods 1✔️ 0ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValidLookingInput+AndIVHasBeenChangedAndSigned 1✔️ 5ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValidLookingInput+AndStringHasBeenTamperedWith 4✔️ 1ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValidLookingInput+AndValueDoesNotMatchSignature 1✔️ 0ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValidLookingInput+AndValueMatchesSignature 2✔️ 0ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValueWithoutSignature 1✔️ 0ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenEncryptingAString+GivenNullInput 1✔️ 0ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenEncryptingAString+GivenValidInput 2✔️ 1ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenEmptyStringInitializationVector 1✔️ 0ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenInitializationVectorIsNotAValidValue 5✔️ 1ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenKeyIsNotAValidValue 5✔️ 1ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenNullInitializationVector 1✔️ 1ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenNullKey 1✔️ 0ms
EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenTestingEndToEnd 1✔️ 0ms

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Api.InferExtensionDetailsTests

✔️ CanDetectWhenTpdmCommunityModuleIsPresentWithSupportedVersion
✔️ CanDetectWhenTpdmCommunityModuleIsPresentWithSupportedVersionNoInformationalVersion
✔️ CanDetectWhenTpdmCoreModuleIsPresentWithSupportedVersion
✔️ CanDetectWhenTpdmModuleIsNotPresent
✔️ CanDetectWhenTpdmModuleIsPresentAndNewerThanMinimumSupportedVersion
✔️ CanDetectWhenTpdmModuleIsPresentAtExactlyMinimumSupportedVersion
✔️ CanDetectWhenTpdmModuleIsPresentButInsufficientVersionToSupport
✔️ CanDetectWhenTpdmModuleIsUsingCaseInsensitiveModuleNameComparisons
✔️ DegradesGracefullyForMalformedOdsRootDocument

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Api.OdsApiFacadeTests

✔️ Should_AddSchool_returns_not_success_result_when_api_not_returns_not_expected_response
✔️ Should_AddSchool_returns_not_success_result_when_api_throws_exception
✔️ Should_AddSchool_returns_success_result_when_api_returns_expected_response
✔️ Should_AddSchool_successfully_add_school
✔️ Should_DeleteSchool_returns_not_success_result_when_api_returns_not_ok_response
✔️ Should_DeleteSchool_returns_not_success_result_when_api_throws_exception
✔️ Should_DeleteSchool_successfully_delete_school
✔️ Should_EditSchool_returns_not_success_result_when_api_not_returns_not_expected_response
✔️ Should_EditSchool_returns_not_success_result_when_api_throws_exception
✔️ Should_EditSchool_returns_success_result_when_api_returns_expected_response
✔️ Should_EditSchool_successfully_edit_school
✔️ Should_GetAllDescriptors_returns_exception_when_swagger_end_point_returns_not_ok_response
✔️ Should_GetAllDescriptors_returns_expected_descriptors_list
✔️ Should_GetAllSchools_returns_exception_when_api_returns_not_ok_response
✔️ Should_GetAllSchools_returns_expected_schools_list
✔️ Should_GetSchoolById_returns_exception_when_api_returns_not_ok_response
✔️ Should_GetSchoolById_returns_expected_school
✔️ Should_GetSchoolsByParentEdOrgId_returns_exception_when_api_returns_not_ok_response
✔️ Should_GetSchoolsByParentEdOrgId_returns_expected_schools_list

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Api.OdsApiValidatorTests

✔️ ShouldBeInValidForMalformedRootDocument
✔️ ShouldBeInvalidForNoRootDocument
✔️ ShouldBeInValidForRootDocumentWithMissingEdFiDataModel
✔️ ShouldBeInValidForRootDocumentWithMissingFields
✔️ ShouldBeValidForValidRootDocument
✔️ ShouldBeValidForValidRootDocumentWithMinimumRequiredFields

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Api.WhenGettingTheApiBaseUrl

✔️ GivenConnectionInfoIsUsingYearSpecificMode_ThenMetadataUrlShouldBeBaseUrlPlusMetadataRoutePlusYear
✔️ GivenConnectionInfoNotUsingYearSpecificMode_ThenMetadataUrlShouldBeBaseUrlPlusMetadataRoute
✔️ GivenNotUsingYearSpecificMode_ThenReturnApiServerUrlPlusDataPlusVersionString
✔️ GivenUsingYearSpecificMode_ThenReturnApiServerUrlPlusDataPlusVersionStringPlusYear

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Automapper.AdminManagementMappingProfileTests+When_Auto_Mapper_Configuration_Is_Valid

✔️ Should_have_valid_configuration

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Automapper.AdminManagementMappingProfileTests+When_Mapping_Values_From_Source_To_Destination

✔️ When_Mapping_EdFiLocalEducationAgency_to_LocalEducationAgency_Should_Have_Expected_Values_On_Destination
✔️ When_Mapping_EdFiPostSecondaryInstitution_to_PostSecondaryInstitution_Should_Have_Expected_Values_On_Destination
✔️ When_Mapping_EdFiPsiSchool_to_School_Should_Have_Expected_Values_On_Destination
✔️ When_Mapping_EdFiSchool_to_School_Should_Have_Expected_Values_On_Destination
✔️ When_Mapping_LocalEducationAgency_to_EdFiLocalEducationAgency_Should_Have_Expected_Values_On_Destination
✔️ When_Mapping_PostSecondaryInstitution_to_EdFiPostSecondaryInstitution_Should_Have_Expected_Values_On_Destination
✔️ When_Mapping_PsiSchool_to_EdFiSchool_Should_Have_Expected_Values_On_Destination
✔️ When_Mapping_School_to_EdFiSchool_Should_Have_Expected_Values_On_Destination

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Automapper.EducationOrganizationAddressResolverTests

✔️ Should_resolve_destination_addresses_with_local_education_agency_address_resolver
✔️ Should_resolve_destination_addresses_with_school_address_resolver

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Automapper.EducationOrganizationCategoryResolverTests+When_resolving_value_with_education_organization_category_resolver

✔️ Should_resolve_destination_edorg_categories

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Automapper.LocalEducationAgencyReferenceResolverTests

✔️ When_resolve_destination_local_education_agency_reference_from_source
✔️ When_source_value_isnull_resolve_destination_local_education_agency_reference_from_destination

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Automapper.SchoolGradeLevelResolverTests+When_resolving_value_with_grade_level_resolver

✔️ Should_resolve_destination_grade_levels

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Automapper.StateEducationAgencyReferenceResolverTests

✔️ When_resolve_destination_state_education_agency_reference_from_source
✔️ When_source_value_isnull_resolve_destination_state_education_agency_reference_from_destination

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenEmptyString

✔️ ThenThrowException

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenNullInput

✔️ ThenThrowException

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenTooManyPeriods

✔️ ThenThrowException

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValidLookingInput+AndIVHasBeenChangedAndSigned

✔️ ThenTheWrongValueIsDecrypted

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValidLookingInput+AndStringHasBeenTamperedWith

✔️ ThenReturnFalse("gpkAmCb03SJVbfBF0k798g==.y2QnYoan80w8G8iDWRVxsEJqyqRGqwUwzCiiOH/NQv==.douF1+uirC3PCgrOAAaZokepWH+WEXvZNGvhgzijN9w=")
✔️ ThenReturnFalse("gpkAmCb03SJVbfBF0k798g==.y2QnYoan80w8G8iDWRVxsEJqyqRGqwUwzCiiOH/NQv==.NjnA2fW8eLeb91duEacfniHX8Mdxc8B0Gi1VDcOK6ro=")
✔️ ThenReturnFalse("gpkAmCb03SJVbfBF0k798g==.y2QnYoan80w8G8iDWRVxsEJqyqRGqwUwzCiiOH/NQvo=.NjnA2fW8eLeb91duEacfniHX8Mdxc8B0Gi1VDcOK6r==")
✔️ ThenReturnFalse("hrkAmDb03SJVbfBF0k798g==.y2QnYoan80w8G8iDWRVxsEJqyqRGqwUwzCiiOH/NQvo=.NjnA2fW8eLeb91duEacfniHX8Mdxc8B0Gi1VDcOK6ro=")

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValidLookingInput+AndValueDoesNotMatchSignature

✔️ ThenThrowException

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValidLookingInput+AndValueMatchesSignature

✔️ ThenItShouldEncryptTheValueAndAppendSignature("","gpkAmCb03SJVbfBF0k798g==.oByW0GY03625pqMhLnYhaA==.VV3+VeKNqx7G3wncK5hkRk0adh2IQvC1Pv/AjSzpljw=")
✔️ ThenItShouldEncryptTheValueAndAppendSignature("encrypt me","gpkAmCb03SJVbfBF0k798g==.y2QnYoan80w8G8iDWRVxsEJqyqRGqwUwzCiiOH/NQvo=.NjnA2fW8eLeb91duEacfniHX8Mdxc8B0Gi1VDcOK6ro=")

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenDecryptingAString+GivenValueWithoutSignature

✔️ ThenThrowException

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenEncryptingAString+GivenNullInput

✔️ ThenThrowException

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenEncryptingAString+GivenValidInput

✔️ ThenItShouldEncryptTheValueAndAppendSignature("","gpkAmCb03SJVbfBF0k798g==.oByW0GY03625pqMhLnYhaA==.VV3+VeKNqx7G3wncK5hkRk0adh2IQvC1Pv/AjSzpljw=")
✔️ ThenItShouldEncryptTheValueAndAppendSignature("encrypt me","gpkAmCb03SJVbfBF0k798g==.y2QnYoan80w8G8iDWRVxsEJqyqRGqwUwzCiiOH/NQvo=.NjnA2fW8eLeb91duEacfniHX8Mdxc8B0Gi1VDcOK6ro=")

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenEmptyStringInitializationVector

✔️ ThenThrowException

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenInitializationVectorIsNotAValidValue

✔️ ThenThrowException("    ")
✔️ ThenThrowException("")
✔️ ThenThrowException("bEnFYNociET2R1Wua3DHzwfU5u/Fa47N5fw0PXD0OSI=")
✔️ ThenThrowException("gpkAmCb03SJVbfBF0k798g=")
✔️ ThenThrowException("This is not a IV")

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenKeyIsNotAValidValue

✔️ ThenThrowException("    ")
✔️ ThenThrowException("")
✔️ ThenThrowException("bEnFYNociET2R1Wua3DHzwfU5u/Fa47N5fw0PXD0OSI")
✔️ ThenThrowException("gpkAmCb03SJVbfBF0k798g==")
✔️ ThenThrowException("This is not a valid key")

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenNullInitializationVector

✔️ ThenAcceptIt

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenInitializingTheService+GivenNullKey

✔️ ThenThrowException

✔️ EdFi.Ods.AdminApp.Management.UnitTests.Services.AESEncryptorServiceTests+WhenTestingEndToEnd

✔️ ThenEncryptDecryptWorkTogetherSuccessfully