Skip to content

chore: add test filesystem capabilities#1578

Merged
ianbotsf merged 4 commits intomainfrom
feat-cached-auth-files-600
Apr 27, 2026
Merged

chore: add test filesystem capabilities#1578
ianbotsf merged 4 commits intomainfrom
feat-cached-auth-files-600

Conversation

@ianbotsf
Copy link
Copy Markdown
Collaborator

@ianbotsf ianbotsf commented Apr 26, 2026

Description of changes

This change adds some new capabilities to TestPlatformProvider to facilitate verifying permissions on files in unit tests.

Downstream PR: aws/aws-sdk-kotlin#1877

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ianbotsf ianbotsf added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Apr 26, 2026
*/
@InternalApi
public class TestPlatformProvider(
public class TestPlatformProvider
Copy link
Copy Markdown
Collaborator

@luigi617 luigi617 Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: is there any reason why this class is not under test dir if it is meant for testing?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestPlatformProvider is one of our utility classes. It's used in runtime-core but also in other modules (e.g., in aws-http, smithy-client, etc.). Dependencies must be in a main source set (e.g., commonMain, jvmMain, etc.) to be visible to other modules.

An argument could be made this belongs in :runtime:testing instead but moving it would be a breaking change so it'll probably stay here for the time being.

Copy link
Copy Markdown
Collaborator

@luigi617 luigi617 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just have a question and looks good to me

@ianbotsf ianbotsf enabled auto-merge (squash) April 27, 2026 22:46
@ianbotsf ianbotsf merged commit 20bb7f6 into main Apr 27, 2026
27 checks passed
@ianbotsf ianbotsf deleted the feat-cached-auth-files-600 branch April 27, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants