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 missing unit tests #1156

Merged
merged 2 commits into from
Jan 20, 2025
Merged

Conversation

shajmakh
Copy link
Member

check the commits please

@shajmakh shajmakh requested a review from ffromani January 20, 2025 11:38
@openshift-ci openshift-ci bot requested a review from Tal-or January 20, 2025 11:38
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 20, 2025
Add unit tests for kloglevel package to ensure the funtions perform as
expected.

Signed-off-by: Shereen Haj <[email protected]>
simple unit test that verifies nodes names are gathered.

Signed-off-by: Shereen Haj <[email protected]>
Copy link
Member

@ffromani ffromani left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

thanks!

@@ -65,9 +65,10 @@ func getKLogLevel() *klog.Level {
// Second, if the '-v' was not set but is still present in flags defined for the command, attempt to acquire it
// by visiting all flags.
flag.VisitAll(func(f *flag.Flag) {
if level != nil {
if level != nil || f.Name != "v" {
Copy link
Member

Choose a reason for hiding this comment

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

this should be non-critical, but seems logically correct

Copy link
Member Author

Choose a reason for hiding this comment

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

tru it is only filtering earlier

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2025
Copy link
Contributor

openshift-ci bot commented Jan 20, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ffromani, shajmakh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 25f4fa7 into openshift-kni:main Jan 20, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants