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

INFRA-505: Move integration tests to unit tests #6530

Merged

Conversation

yift-r3
Copy link
Contributor

@yift-r3 yift-r3 commented Jul 30, 2020

Move two integration tests to a few unit tests.

@yift-r3 yift-r3 requested a review from vkolomeyko July 30, 2020 12:56
@vkolomeyko vkolomeyko requested a review from rnicoll July 30, 2020 15:21
@yift-r3 yift-r3 requested a review from a team as a code owner August 3, 2020 09:36
Copy link

@rekalov rekalov left a comment

Choose a reason for hiding this comment

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

Thank you, looks good.

Copy link

@rekalov rekalov left a comment

Choose a reason for hiding this comment

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

I have one more thing, sorry for chaotic comments.

Newly added fine-gran tests and small re-factoring are fine. But how do we conceptually make sure that initKeyStores() is properly called on the node start after removal of integration tests?

@rnicoll , what do you think?

rekalov
rekalov previously approved these changes Aug 3, 2020
@rekalov
Copy link

rekalov commented Aug 3, 2020

BootTests looks reasonable substitution for removed integration tests. So, OK.

@rnicoll
Copy link

rnicoll commented Aug 6, 2020

So it's a two part answer here; on the one hand, I think the dozens of tests which spin up full nodes then interact with their node info will cover this.

The other part, however, is that I would look to unit tests to stop accidental errors creeping in, rather than model how the code is written currently. Having a unit test for initKeyStores() (if we don't elsewhere) would be good, but I'd consider it unlikely someone would accidentally cut the call to initKeyStores() out later, and it's low value to test for.

@rnicoll rnicoll merged commit 849d51c into release/os/4.6 Aug 6, 2020
@rnicoll rnicoll deleted the yift/infra-505/move-integration-tests-to-unit-tests branch August 6, 2020 14:16
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.

5 participants