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

chore(test-resources): enable using kind clusters in e2e tests&scenarios #202

Merged
merged 8 commits into from
Dec 11, 2024

Conversation

basti1302
Copy link
Member

Plus: Add ingress definition to app under test so it can process external HTTP requests.

@basti1302 basti1302 force-pushed the enable-kind-for-test-scenarios-and-e2e-tests branch 4 times, most recently from 8eb65c3 to 4dfbee9 Compare November 26, 2024 07:04
@basti1302 basti1302 force-pushed the enable-kind-for-test-scenarios-and-e2e-tests branch from 4dfbee9 to aeff93e Compare December 11, 2024 08:58
@basti1302 basti1302 force-pushed the enable-kind-for-test-scenarios-and-e2e-tests branch from aeff93e to 0f99804 Compare December 11, 2024 13:38
This sometimes fails because apparently the validation webhook is not
available yet. The failure looks as follows:

[FAILED] Expected success, but got an error:
    <*errors.errorString | 0x140002715f0>:
 kubectl apply -n e2e-application-under-test-namespace -f /var/folders/ql/fn8y57zn1hbbzcg8thgnth9w0000gn/T/dash0monitoring-2290660462.yaml failed with error: (exit status 1) Error from server (InternalError): error when creating "/var/folders/ql/fn8y57zn1hbbzcg8thgnth9w0000gn/T/dash0monitoring-2290660462.yaml": Internal error occurred:
 failed calling webhook "validate-monitoring.dash0.com":
 failed to call webhook: Post "https://dash0-operator-webhook-service.dash0-system.svc:443/v1alpha1/validate/monitoring?timeout=5s":
 dial tcp 10.96.120.175:443: connect: connection refused
    {
        s: "kubectl apply -n e2e-application-under-test-namespace -f /var/folders/ql/fn8y57zn1hbbzcg8thgnth9w0000gn/T/dash0monitoring-2290660462.yaml failed with error: (exit status 1) Error from server (InternalError): error when creating \"/var/folders/ql/fn8y57zn1hbbzcg8thgnth9w0000gn/T/dash0monitoring-2290660462.yaml\": Internal error occurred: failed calling webhook \"validate-monitoring.dash0.com\": failed to call webhook: Post \"https://dash0-operator-webhook-service.dash0-system.svc:443/v1alpha1/validate/monitoring?timeout=5s\": dial tcp 10.96.120.175:443: connect: connection refused\n",
    }
In [It] at: /Users/bastian/dco/test/e2e/dash0_monitoring_resource.go:83 @ 11/26/24 08:35:45.673
@basti1302 basti1302 force-pushed the enable-kind-for-test-scenarios-and-e2e-tests branch from 0f99804 to c8a1624 Compare December 11, 2024 16:10
@basti1302 basti1302 marked this pull request as ready for review December 11, 2024 16:11
@basti1302 basti1302 enabled auto-merge (rebase) December 11, 2024 16:12
@basti1302 basti1302 disabled auto-merge December 11, 2024 16:16
@basti1302 basti1302 enabled auto-merge (rebase) December 11, 2024 16:17
@basti1302 basti1302 merged commit c5b6ceb into main Dec 11, 2024
10 checks passed
@basti1302 basti1302 deleted the enable-kind-for-test-scenarios-and-e2e-tests branch December 11, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant