Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

rest: add unit tests for the log package#241

Merged
openshift-merge-bot[bot] merged 3 commits intokonflux-workspaces:mainfrom
filariow:utest-log
Jul 26, 2024
Merged

rest: add unit tests for the log package#241
openshift-merge-bot[bot] merged 3 commits intokonflux-workspaces:mainfrom
filariow:utest-log

Conversation

@filariow
Copy link
Member

Signed-off-by: Francesco Ilario filario@redhat.com

Signed-off-by: Francesco Ilario <filario@redhat.com>
sadlerap
sadlerap previously approved these changes Jul 26, 2024
Signed-off-by: Francesco Ilario <filario@redhat.com>
Comment on lines +15 to +24
var _ = DescribeTable("NoOpHandler is disabled", func(logLevel slog.Level) {
// given
handler := &log.NoOpHandler{}

// when
enabled := handler.Enabled(context.TODO(), logLevel)

// then
Expect(enabled).To(BeFalse())
},
Copy link
Member

Choose a reason for hiding this comment

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

this one too?

Signed-off-by: Francesco Ilario <filario@redhat.com>
@openshift-ci openshift-ci bot added the lgtm label Jul 26, 2024
@openshift-ci
Copy link

openshift-ci bot commented Jul 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: filariow, sadlerap

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

The pull request process is described here

Details 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 d32b872 into konflux-workspaces:main Jul 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants