-
Notifications
You must be signed in to change notification settings - Fork 417
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
Adding public API test coverage #5250
base: main
Are you sure you want to change the base?
Adding public API test coverage #5250
Conversation
hi @Zombach, I recommend changing the PR title to "[Draft] Adding public API test coverage for and I will send PR for "Adding public API test coverage for components ". by using this approach we separate all remaining test coverage into three PRs. |
I thought about this. But the difference in PR volumes confuses me. For Microsoft.Extensions.ServiceDiscovery.* these are two packages. And for Aspire.Hosting.* 10+, for components 20+. I think it's better to do something... |
And in commits indicate the packages on which work was done. For example Microsoft.Extensions.ServiceDiscovery |
My goal is to decrease PR counts to a minimum of 3 PRs.
We did this until now, we opened new PR per project but based on #5047 (comment), we should stop doing that.
We could do this in these 3 PRs too. |
I mean that the composition will be like this: And then we would have only 3 PRs |
hmm, every PR has 10 projects, right? |
@Zombach, Could you give me access to your branch? |
I'm working on Aspire.Keycloak.Authentication |
I'm working on Aspire.Microsoft.Azure.Cosmos |
Working on Aspire.Azure.AI.OpenAI |
Hi @sebastienros
Is it worth checking via 'ArgumentException.ThrowIfNullOrEmpty'? |
Working on Aspire.Azure.Data.Tables |
Aspire.Azure.Storage.Queues |
@Alirexaa Hello, are you going to add or write anything? |
Aspire.Hosting.Dapr |
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.
@Zombach, We should cover empty strings.
src/Components/Aspire.Keycloak.Authentication/AspireKeycloakExtensions.cs
Outdated
Show resolved
Hide resolved
=> builder.AddKeycloakJwtBearer(serviceName, realm, authenticationScheme, null); | ||
{ | ||
ArgumentNullException.ThrowIfNull(builder); | ||
|
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.
ArgumentException.ThrowIfNullOrEmpty(serviceName); | |
ArgumentException.ThrowIfNullOrEmpty(realm); | |
ArgumentException.ThrowIfNullOrEmpty(authenticationScheme); |
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.
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.
I khow but i perfer to check these first of methods.
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.
I'm not sure that makes sense. When it's all in one class, and all the methods, it's an overload of the main one.
src/Components/Aspire.Keycloak.Authentication/AspireKeycloakExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/Aspire.Keycloak.Authentication/AspireKeycloakExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/Aspire.Keycloak.Authentication/AspireKeycloakExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/Aspire.Keycloak.Authentication/AspireKeycloakExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/Aspire.Keycloak.Authentication/AspireKeycloakExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/Aspire.Keycloak.Authentication/AspireKeycloakExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/Aspire.Microsoft.Azure.Cosmos/AspireMicrosoftAzureCosmosExtensions.cs
Outdated
Show resolved
Hide resolved
src/Components/Aspire.Microsoft.Azure.Cosmos/AspireMicrosoftAzureCosmosExtensions.cs
Outdated
Show resolved
Hide resolved
can I add test coverage for the remaining projects or can we do it in another PR? |
I think it’s better to do it the next PR. This one is already big. |
Co-authored-by: Alireza Baloochi <[email protected]>
Initial issues #2649
Issues #5047
message
Checklist
Added public API test coverage for:
Microsoft Reviewers: Open in CodeFlow