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 integration test for unexpected output #406

Open
stepanstipl opened this issue Dec 1, 2022 · 0 comments
Open

Add integration test for unexpected output #406

stepanstipl opened this issue Dec 1, 2022 · 0 comments

Comments

@stepanstipl
Copy link
Contributor

As PR for #402 is not fully tested (and not possible/feasible to test with unit tests), we should cover unexpected output with integration tests.

stepanstipl added a commit that referenced this issue Dec 1, 2022
This PR disables warnings from go-client. Unfortunately this is not
sufficient to also supress the warning about deprecated auth plugins,
therefore the need for klog output code too.

But in general direct logging from 3rd-party libs is undesirable, and
this configures K8S's go-client klog to discard any logs.

I've added some tests to cover some unexpected 3rd-party output, but as
this depends on the environment and kubeconfig config, incl. providers,
and is noteasily reproducible, this should be covered by integration
test, as the current test do not fully cover this. Opened #406.

fixes #402
stepanstipl added a commit that referenced this issue Dec 2, 2022
This PR disables warnings from go-client. Unfortunately this is not
sufficient to also supress the warning about deprecated auth plugins,
therefore the need for klog output code too.

But in general direct logging from 3rd-party libs is undesirable, and
this configures K8S's go-client klog to discard any logs.

I've added some tests to cover some unexpected 3rd-party output, but as
this depends on the environment and kubeconfig config, incl. providers,
and is noteasily reproducible, this should be covered by integration
test, as the current test do not fully cover this. Opened #406.

fixes #402
stepanstipl added a commit that referenced this issue Dec 7, 2022
This PR disables warnings from go-client. Unfortunately this is not
sufficient to also supress the warning about deprecated auth plugins,
therefore the need for klog output code too.

But in general direct logging from 3rd-party libs is undesirable, and
this configures K8S's go-client klog to discard any logs.

I've added some tests to cover some unexpected 3rd-party output, but as
this depends on the environment and kubeconfig config, incl. providers,
and is noteasily reproducible, this should be covered by integration
test, as the current test do not fully cover this. Opened #406.

fixes #402
stepanstipl added a commit that referenced this issue Dec 7, 2022
This PR disables warnings from go-client. Unfortunately this is not
sufficient to also supress the warning about deprecated auth plugins,
therefore the need for klog output code too.

But in general direct logging from 3rd-party libs is undesirable, and
this configures K8S's go-client klog to discard any logs.

I've added some tests to cover some unexpected 3rd-party output, but as
this depends on the environment and kubeconfig config, incl. providers,
and is noteasily reproducible, this should be covered by integration
test, as the current test do not fully cover this. Opened #406.

fixes #402
stepanstipl added a commit that referenced this issue Dec 8, 2022
This PR disables warnings from go-client. Unfortunately this is not
sufficient to also supress the warning about deprecated auth plugins,
therefore the need for klog output code too.

But in general direct logging from 3rd-party libs is undesirable, and
this configures K8S's go-client klog to discard any logs.

I've added some tests to cover some unexpected 3rd-party output, but as
this depends on the environment and kubeconfig config, incl. providers,
and is noteasily reproducible, this should be covered by integration
test, as the current test do not fully cover this. Opened #406.

fixes #402
@github-actions github-actions bot added the stale label Feb 19, 2023
@doitintl doitintl deleted a comment from github-actions bot Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants