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 tests for other webhook types #37

Merged
merged 4 commits into from
Jan 21, 2022

Conversation

adammw
Copy link
Contributor

@adammw adammw commented Dec 9, 2021

Adding test-table-driven-tests for TestReconcileWebhook providing a resource of each type.

@maxsmythe
Copy link
Contributor

Thanks for writing the tests! It looks like the gomofules need to be updated.

@adammw adammw force-pushed the adammw/mutating-test branch from efa91a3 to 64c62c9 Compare December 13, 2021 00:35
@adammw
Copy link
Contributor Author

adammw commented Dec 13, 2021

updated

@maxsmythe
Copy link
Contributor

It looks like there are merge conflicts on the go.mod file?

@@ -9,7 +9,10 @@ import (
"github.com/onsi/gomega"
admissionv1 "k8s.io/api/admissionregistration/v1"
corev1 "k8s.io/api/core/v1"
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
Copy link
Member

Choose a reason for hiding this comment

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

since v1beta1 is removed in k8s v1.22, should we use v1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rebased onto #39

Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
@adammw adammw force-pushed the adammw/mutating-test branch from 64c62c9 to 78e920c Compare January 20, 2022 02:10
Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
@adammw adammw force-pushed the adammw/mutating-test branch from 78e920c to d3e7cc6 Compare January 20, 2022 02:12
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM

Should we close #39 now that this PR is rebased on it?

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

lgtm

@maxsmythe maxsmythe merged commit cd3703c into open-policy-agent:master Jan 21, 2022
@adammw adammw deleted the adammw/mutating-test branch January 24, 2022 22:56
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.

3 participants