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

test: add unit tests for mutating webhooks #2516

Closed
wants to merge 32 commits into from
Closed

Conversation

lucasrod16
Copy link
Contributor

@lucasrod16 lucasrod16 commented May 16, 2024

Description

Adds unit tests for the agent's mutating webhooks

Related Issue

Relates to #2512

Checklist before merging

Copy link

netlify bot commented May 16, 2024

Deploy Preview for zarf-docs ready!

Name Link
🔨 Latest commit 0202eff
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/664cbcaf93e83f00087fd941
😎 Deploy Preview https://deploy-preview-2516--zarf-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@lucasrod16 lucasrod16 force-pushed the agent-unit-tests branch 9 times, most recently from db8deb0 to 7d3f2fa Compare May 18, 2024 02:26
@lucasrod16 lucasrod16 changed the title test: add unit tests for zarf agent test: add unit test for pod mutation webhook May 18, 2024
@lucasrod16 lucasrod16 marked this pull request as ready for review May 18, 2024 02:48
@lucasrod16 lucasrod16 requested review from dgershman and a team as code owners May 18, 2024 02:48
@lucasrod16 lucasrod16 force-pushed the agent-unit-tests branch 12 times, most recently from 0ba2b8f to 769ea6a Compare May 20, 2024 03:42
phillebaba
phillebaba previously approved these changes May 20, 2024
Copy link
Member

@phillebaba phillebaba left a comment

Choose a reason for hiding this comment

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

I think this looks good, a simple way of testing the admission hook.

My only nitpick is the package structure. Why are we creating yet another sub package in the http package? It seems like all of the admission related code should be contained in the same package instead of being spread out across different packages.

@lucasrod16 lucasrod16 marked this pull request as draft May 20, 2024 16:53
@lucasrod16 lucasrod16 changed the title test: add unit test for pod mutation webhook test: add unit tests for mutating webhooks May 20, 2024
@lucasrod16 lucasrod16 closed this May 21, 2024
@lucasrod16 lucasrod16 deleted the agent-unit-tests branch May 21, 2024 15:32
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