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: added tests for the PVC analyzer #1000

Merged
merged 4 commits into from
Mar 8, 2024

Conversation

VaibhavMalik4187
Copy link
Contributor

📑 Description

This commit introduces comprehensive tests for the PersistentVolumeClaim analyzer defined in the pkg/analyzer package.

Adding these tests increases the code coverage of the pvc.go file to

95%.

I also made minor modifications to the ReplicaSet test to ensure all expectations were met.

Partially addresses: #889

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

This commit introduces comprehensive tests for the
`PersistentVolumeClaim` analyzer defined in the `pkg/analyzer` package.

Adding these tests increases the code coverage of the `pvc.go` file to
>95%.

I also made minor modifications to the ReplicaSet test to ensure all
expectations were met.

Partially addresses: k8sgpt-ai#889

Signed-off-by: VaibhavMalik4187 <vaibhavmalik2018@gmail.com>
Copy link
Member

@arbreezy arbreezy left a comment

Choose a reason for hiding this comment

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

great work @VaibhavMalik4187

@arbreezy arbreezy self-requested a review March 8, 2024 19:23
@AlexsJones AlexsJones merged commit a0225d4 into k8sgpt-ai:main Mar 8, 2024
1 check passed
},
},
{
name: "event other than privision failure",
Copy link
Member

Choose a reason for hiding this comment

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

just a small typo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, thanks for reviewing and pointing this out. I'll take care of it in the upcoming PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants