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

Unit tests for config file operations #4298

Merged
merged 5 commits into from
Jan 31, 2025
Merged

Unit tests for config file operations #4298

merged 5 commits into from
Jan 31, 2025

Conversation

codebien
Copy link
Contributor

What?

It adds a series of unit tests to cover operations on the config file on disk storage.

Why?

It creates a safer context for applying changes for #2508

@codebien codebien self-assigned this Jan 30, 2025
@codebien codebien marked this pull request as ready for review January 30, 2025 15:59
@codebien codebien requested a review from a team as a code owner January 30, 2025 15:59
@codebien codebien requested review from mstoykov and inancgumus and removed request for a team January 30, 2025 15:59
inancgumus
inancgumus previously approved these changes Jan 30, 2025
Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

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

LGTM 👍 I'd group some tests into table tests, but it's a matter of style.

internal/cmd/config_test.go Outdated Show resolved Hide resolved
internal/cmd/config_test.go Outdated Show resolved Hide resolved
Co-authored-by: İnanç Gümüş <[email protected]>
@codebien
Copy link
Contributor Author

I'd group some tests into table tests, but it's a matter of style.

@inancgumus my feeling is that there are differences between tests that will make readability worst if we are going to do that as table tests. I can do a refactor attempt in a dedicated pull request, but I'll look into it after we merged #4301 👍

@codebien codebien requested review from a team, mstoykov, inancgumus and oleiade and removed request for mstoykov and a team January 31, 2025 13:43
@codebien codebien merged commit 30c26d2 into master Jan 31, 2025
28 checks passed
@codebien codebien deleted the config-file-tests branch January 31, 2025 14:13
@inancgumus inancgumus added this to the v0.57.0 milestone Feb 3, 2025
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.

4 participants