Skip to content

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

Merged
csviri merged 2 commits into
nextfrom
label-filter-it
Aug 24, 2022
Merged

fix: replace label selector mock server test with IT#1375
csviri merged 2 commits into
nextfrom
label-filter-it

Conversation

@csviri

@csviri csviri commented Jul 26, 2022

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

csviri commented Aug 23, 2022

Copy link
Copy Markdown
Collaborator Author

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

Yes it should.

@sonarqubecloud

Copy link
Copy Markdown

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