Skip to content

Conversation

timebertt
Copy link
Member

How to categorize this PR?

/area ipcei
/kind enhancement

What this PR does / why we need it:

This PR follows-up on #11390 and refactors the gardenadm unit tests to use gbytes.Buffer. This pairs nicely with our use of ginkgo and gomega.

There is a new clitest.NewTestIOStreams() similar to genericiooptions.NewTestIOStreams() that initializes the buffers. Tests can then use Eventually(stdErr).Should(Say("something")) to assert logging outputs.

Which issue(s) this PR fixes:
Part of #2906

Special notes for your reviewer:

/cc @rfranzke

Release note:

NONE

@gardener-prow gardener-prow bot requested a review from rfranzke February 19, 2025 09:26
@gardener-prow gardener-prow bot added area/ipcei IPCEI (Important Project of Common European Interest) kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 19, 2025
Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

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

Nice, looks definitely better :) Thank you!

@rfranzke
Copy link
Member

/lgtm
/approve

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 19, 2025
Copy link
Contributor

gardener-prow bot commented Feb 19, 2025

LGTM label has been added.

Git tree hash: 06580d08db212d445694c3cc25ed57ed9d88fd98

Copy link
Contributor

gardener-prow bot commented Feb 19, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rfranzke

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

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 19, 2025
@gardener-prow gardener-prow bot merged commit e25d72c into gardener:master Feb 19, 2025
19 checks passed
@timebertt timebertt deleted the gardenadm-unit-tests branch February 19, 2025 19:45
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. area/ipcei IPCEI (Important Project of Common European Interest) cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants