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

[MAN-209] Create test suite #32

Merged
merged 152 commits into from
Aug 25, 2023

Conversation

ksidirop-laerdal
Copy link
Collaborator

No description provided.

dsidirop and others added 30 commits August 9, 2023 19:02
…ded even in the case of missing-symbols-errors

   this is done for consistency's sake
…t for the sake of consistency in the case we get missing symbols errors
…nged

     it was causing the state-changed event to be fired with the old and new state passed in each other's place
    in the case of timeout we now trigger (for the sake consistency) a state-changed event with the new state set to Failed
…al/xamarin-nordic-mcumgr into ksidirop/MAN-209-create-test-suite

# Conflicts:
#	Laerdal.McuMgr/Shared/FileDownloader/FileDownloader.cs
#	Laerdal.McuMgr/Shared/FileUploader/FileUploader.cs
…f having the remote file path reported by the native callbacks themselves
…parameter to the state changed event

   this should help when multi-uploading files
   this is still wip and doesnt cover everything yet
…is call to never return when a download would be successful
…ld on both ShouldThrowTimeoutException_GivenTooSmallTimeout() methods

[skip ci]
…oadCompletedEventArgs.Resource

   the event-args now have a new property .Resource which corresponds to the remote file that was successfully downloaded
…veFileDownloader()): enrich test to account for DownloadCompletedEventArgs.Resource
…et completion timeout to 5secs

   old was 0.5 secs which was causing problems in azure pipelines
…ertise the state in which the error occurred in for the sake of clarity
   and use it to change the state to Cancelling right when Cancel() gets invoked
…ption by adding a placeholder message to it instead of passing 'null'
…chanism to have it bail out forcibly if and when the cancellation request doesn't get serviced within 2.5secs to reach a soft landing

   this behaviour is aligned with how all the other async methods have been implemented
…eFailed()

   we just want to figure out exactly what kind of exception we get when the swap-timeout gets violated
…ementation now advertises the fatal-error-type enum too

   this allows for far more accurate error-detection - previously we had to resort to error-string sniffing which was a code-smell

   for example the image-swap-timeout error now gets accurately detected by the native java implementation of android

   the ios side will be refactored in a similar fashion in the upcoming commits
… native ios firmware-installer reports fatal errors so that it will include the error-type as well
…pe property of the event-args to detect the image-swap-timeout scenario
…tsFailedException_GivenRogueNativeErrorMessage): the test should now be working as intended
…ssfully_GivenNoFilesToDownload, FileDownloaderTestbed.MultipleFilesDownloadAsync.ShouldCompleteSuccessfully_GivenNoFilesToDownload): raise the timeouts for these two test-cases
… to deal with phantom errors in the azure pipeline
@ksidirop-laerdal ksidirop-laerdal merged commit c70d501 into develop Aug 25, 2023
@ksidirop-laerdal ksidirop-laerdal deleted the ksidirop/MAN-209-create-test-suite branch August 29, 2023 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants