Skip to content

fix: replace label selector mock server test with IT #1375

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

Merged
merged 2 commits into from
Aug 24, 2022
Merged

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Jul 26, 2022

Note that the former test was doing actually more than it should be. So this is a replacement but also change in scope.

@csviri csviri self-assigned this Jul 26, 2022
@csviri csviri linked an issue Jul 26, 2022 that may be closed by this pull request
@metacosm
Copy link
Collaborator

Is what the previous test was covering covered in other tests?

@Version("v1")
@ShortNames("lst")
public class LabelSelectorTestCustomResource
extends CustomResource<Void, LabelSelectorTestCustomResourceStatus>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why create a status class when it's not used anywhere and empty?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, fixed. (I think I had an issue with this in the past when status was void, but not anymore)

@csviri
Copy link
Collaborator Author

csviri commented Aug 23, 2022

Is what the previous test was covering covered in other tests?

Yes it should.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

48.5% 48.5% Coverage
0.0% 0.0% Duplication

@csviri csviri merged commit b8676a1 into next Aug 24, 2022
@csviri csviri deleted the label-filter-it branch August 24, 2022 11:46
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.

Replace CustomResourceSelectorTest with an Integration Test
2 participants