-
Notifications
You must be signed in to change notification settings - Fork 463
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 for Aspire.Hosting.Elasticsearch #5119
Adding public API test coverage for Aspire.Hosting.Elasticsearch #5119
Conversation
tests/Aspire.Hosting.Elasticsearch.Tests/ElasticsearchPublicApiTests.cs
Outdated
Show resolved
Hide resolved
tests/Aspire.Hosting.Elasticsearch.Tests/ElasticsearchPublicApiTests.cs
Outdated
Show resolved
Hide resolved
tests/Aspire.Hosting.Elasticsearch.Tests/ElasticsearchPublicApiTests.cs
Outdated
Show resolved
Hide resolved
@Zombach Small request for you or for whoever merges them, can you name them with a more meaningful title, something like "Adding public API test coverage for Aspire.Hosting.Elasticsearch". CA1062 is quite cryptic when you are not familiar with these PRs. |
…aspire-hosting-elasticsearch
[Fact] | ||
public void AddElasticsearchContainerShouldThrowWhenNameIsNull() | ||
{ | ||
IDistributedApplicationBuilder builder = new DistributedApplicationBuilder([]); |
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.
As I found out. Better to use TestDistributedApplicationBuilder.Create();
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.
AFIK TestDistributedApplicationBuilder
is suitable when starting the app. Here, it seems unnecessary.
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.
AFIK
TestDistributedApplicationBuilder
is suitable when starting the app. Here, it seems unnecessary.
I wanted this more from the point of view that there would be a single code base for checking the public 'null'.
Although you may be right. View this at your own discretion. Well, or ask the guys what they think about this
…aspire-hosting-elasticsearch
…aspire-hosting-elasticsearch
@sebastienros, this PR is ready to merge. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Contributes to #2649 and #5047
Microsoft Reviewers: Open in CodeFlow