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

Initial API integration test #54

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

pedjak
Copy link
Contributor

@pedjak pedjak commented Dec 9, 2024

  • on pull request we are going to run tests
  • added api/v1/integration_test.go for integration tests against embedded API server
  • added test verifying that .spec.servicePerNode does not flip on object update

* on pull request we are going to run tests
* added `api/v1/integration_test.go` for integration tests against embedded API server
* added test verifying that `.spec.servicePerNode` does not flip on object update
@pedjak pedjak requested a review from a team as a code owner December 9, 2024 12:04
@pedjak pedjak self-assigned this Dec 9, 2024
@github-actions github-actions bot added the chore label Dec 9, 2024
Copy link
Contributor

@Robert-Stam Robert-Stam left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding tests!
Maybe we could have done in standard unit test instead, but we can improve this if we revamp the code.

@pedjak
Copy link
Contributor Author

pedjak commented Dec 9, 2024

LGTM, thanks for adding tests! Maybe we could have done in standard unit test instead, but we can improve this if we revamp the code.

Well, we need k8s API server in these tests, because defaulting is done on its side (by following CRD schemas). A regular unit test would not be able to catch such cases.

@pedjak pedjak merged commit e4a96d7 into main Dec 16, 2024
2 checks passed
@pedjak pedjak deleted the chore/predrag-service-per-node-test branch December 16, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants