Skip to content
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

Extract Aspire.Hosting.Kafka.Tests project #4910

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Jul 15, 2024

Contributes to #3185
Contributes to #4294

cc @Alirexaa

Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-integrations Issues pertaining to Aspire Integrations packages label Jul 15, 2024
@@ -306,25 +306,6 @@ public void EnsureAllRabbitMQManifestTypesHaveVersion0Suffix()
Assert.Equal("container.v0", server.GetProperty("type").GetString());
}

[Fact]
public void EnsureAllKafkaManifestTypesHaveVersion0Suffix()
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think this test adds value over the AddKafkaTests.VerifyManifest test. That test verifies it is a container.v0 resource.

Copy link
Member

Choose a reason for hiding this comment

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

ok :)

Copy link
Member

@sebastienros sebastienros left a comment

Choose a reason for hiding this comment

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

Only thing that I notice is that you removed it from E2E tests, which is fine by me.

@eerhardt
Copy link
Member Author

Only thing that I notice is that you removed it from E2E tests, which is fine by me.

Yes, I think this is my recommendation going forward. Now that we have these "Functional" tests individually for each resource, I don't think we need the EndToEnd test to cover every individual resource. It just isn't scalable.

Instead, I think we get the EndToEnd down to maybe ~5 core resources (a couple database, Redis, and maybe RabbitMQ) and the rest of these Hosting+Component tests are all in the functional tests. It makes the EndToEnd tests more maintainable.

@eerhardt eerhardt enabled auto-merge (squash) July 16, 2024 15:58
@eerhardt eerhardt disabled auto-merge July 16, 2024 15:58
@eerhardt eerhardt enabled auto-merge (squash) July 16, 2024 15:58
@eerhardt eerhardt merged commit 4374062 into dotnet:main Jul 16, 2024
9 checks passed
@eerhardt eerhardt deleted the ExtractKafkaHostingTests branch July 16, 2024 16:08
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants