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

Add target status integration tests #604

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

TheSpiritXIII
Copy link
Member

@TheSpiritXIII TheSpiritXIII commented Oct 4, 2023

Slightly different approach from #395. The problem is that when we run an operator within the test, the HTTP client cannot resolve Pod IP addresses. The resolve this, I created a custom HTTP client which can do this.

This PR builds on top of #613 since we now check if collectors are ready before checking whether target status is working.

@TheSpiritXIII TheSpiritXIII self-assigned this Oct 4, 2023
@TheSpiritXIII TheSpiritXIII force-pushed the TheSpiritXIII/e2e-target-status2 branch 2 times, most recently from e3d07c4 to e44f0b8 Compare October 4, 2023 15:27
@TheSpiritXIII TheSpiritXIII marked this pull request as draft October 4, 2023 20:03
@TheSpiritXIII TheSpiritXIII force-pushed the TheSpiritXIII/e2e-target-status2 branch from e44f0b8 to f58d7f8 Compare October 4, 2023 20:06
@pintohutch
Copy link
Collaborator

cc @bwplotka

@TheSpiritXIII TheSpiritXIII force-pushed the TheSpiritXIII/e2e-target-status2 branch 20 times, most recently from 6dafdeb to 9d1c5e8 Compare October 5, 2023 19:12
@TheSpiritXIII TheSpiritXIII force-pushed the TheSpiritXIII/e2e-target-status2 branch 3 times, most recently from 6582a07 to 907e15e Compare October 6, 2023 18:35
@TheSpiritXIII TheSpiritXIII marked this pull request as ready for review October 6, 2023 18:37
@TheSpiritXIII TheSpiritXIII force-pushed the TheSpiritXIII/e2e-target-status2 branch from 907e15e to d4fc417 Compare October 6, 2023 18:44
@pintohutch pintohutch removed their request for review October 6, 2023 20:27
@TheSpiritXIII TheSpiritXIII force-pushed the TheSpiritXIII/e2e-target-status2 branch from d4fc417 to 0b2a919 Compare October 8, 2023 21:52
// To make tests simple and fast, the test suite runs the operator internally. The CRDs
// are expected to be installed out of band (along with the operator deployment itself in
// a real world setup).
package e2e
Copy link
Collaborator

Choose a reason for hiding this comment

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

wowow - this is quite next level and quite innovating. Probably good for fun blog post / separate OSS lib / contribution to k8s testing libs or so 🙈

Copy link
Collaborator

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Looks solid, thanks for this work! 💪🏽 A bit a lot of low level code to maintain, but well readable & for good reasons, thanks!

@bwplotka bwplotka merged commit 91e4263 into main Oct 9, 2023
8 checks passed
@TheSpiritXIII TheSpiritXIII deleted the TheSpiritXIII/e2e-target-status2 branch October 16, 2023 15:50
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.

3 participants