-
Notifications
You must be signed in to change notification settings - Fork 524
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
Refactor WithRealmImport to accept file or directory #7121
base: main
Are you sure you want to change the base?
Conversation
Updated the `WithRealmImport` method to change the parameter name from `importDirectory` to `import`, allowing it to accept either a directory or a single import file. Adjusted the method logic to handle both cases and updated the XML documentation for clarity.
Updated `WithRealmImportShouldThrowWhenBuilderIsNull` test to check for null import instead of import directory, and changed the expected exception type for non-existent imports. Added a new configuration section in `Aspire.lutconfig` to enable parallel builds, parallel test runs, and set a test case timeout of 180 seconds.
Removed obsolete configuration from Aspire.lutconfig. Added new parameterized tests in KeycloakPublicApiTests.cs for realm import functionality with directory and file inputs. Removed the outdated WithRealmImportAddsBindMountAnnotation test from KeycloakResourceBuilderTests.cs.
@@ -146,20 +146,26 @@ public static IResourceBuilder<KeycloakResource> WithDataBindMount(this IResourc | |||
/// </example> | |||
public static IResourceBuilder<KeycloakResource> WithRealmImport( | |||
this IResourceBuilder<KeycloakResource> builder, | |||
string importDirectory, | |||
string import, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change if you use named parameters but this package is preview so care level is low 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change if you use named parameters but this package is preview so care level is low 😄
Yes and yes. But I couldn't keep importDirectory
when the semantics has changed.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Description
Updated the
WithRealmImport
method to change the parameter name fromimportDirectory
toimport
, allowing it to accept either a directory or a single import file. Adjusted the method logic to handle both cases and updated the XML documentation for clarity.Fixes #5086
/cc @davidfowl @DamianEdwards
Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):