Skip to content

Migrate IFileSystem to TestableIO System.IO.Abstractions #5561

Description

@satvu

Description

Replace the custom IFileSystem abstraction in src/Func/Common/ with TestableIO System.IO.Abstractions and its test helpers package. Benefits:

  • Standardizes on the same abstraction used in other Azure Functions projects
  • Eliminates the need to test our own PhysicalFileSystem implementation
  • Leverages TestableIO's MockFileSystem in tests instead of hand-rolled fakes

The custom IFileSystem currently has methods not covered by TestableIO (archive extraction, SHA-256 hashing). These should move to a separate IArchiveService or similar interface.

Consumers to migrate: CliUpdater, UserProfileSource, ProjectProfileSource, ProjectProfileConfigStore, RemoteProfileSource, and their tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions