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

Fix service tests #6720

Merged
merged 3 commits into from
Apr 24, 2023
Merged

Conversation

robbavey
Copy link
Member

This test was failing, because the readiness probe was hitting the port defined by the service rather than the default port. This commit updates the e2e test to set the config to serve the logtash api from the same port that the service specifies.

@botelastic botelastic bot added the triage label Apr 21, 2023
This test was failing, because the readiness probe was hitting the port defined by the service
rather than the default port. This commit updates the e2e test to set the config to
serve the logtash api from the same port that the service specifies.
@robbavey robbavey force-pushed the fix_service_tests branch from 4bd1946 to 4829927 Compare April 21, 2023 22:10
@barkbay barkbay added the >test Related to unit/integration/e2e tests label Apr 24, 2023
@botelastic botelastic bot removed the triage label Apr 24, 2023
Copy link
Contributor

@barkbay barkbay left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -87,6 +90,9 @@ func TestLogstashWithCustomServiceAndAmendedApi(t *testing.T) {

logstashBuilder := (logstash.NewBuilder(name).
WithNodeCount(1).
WithConfig(map[string]interface{}{
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Could we add a comment/godoc on TestLogstashWithReworkedApiService and TestLogstashWithCustomServiceAndAmendedApi? It took me a few minutes to figure out why this change is not needed for TestLogstashWithCustomService.

test/e2e/test/logstash/builder.go Outdated Show resolved Hide resolved
@robbavey robbavey merged commit 2b22aee into elastic:feature/logstash Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Related to unit/integration/e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants