Skip to content

Increase UT coverage in controller publish volume#454

Merged
OliverChen557 merged 2 commits into
usr/oliver/port-multi-tenant-changesfrom
usr/oliver/ut
Aug 13, 2025
Merged

Increase UT coverage in controller publish volume#454
OliverChen557 merged 2 commits into
usr/oliver/port-multi-tenant-changesfrom
usr/oliver/ut

Conversation

@OliverChen557

Copy link
Copy Markdown
Contributor

Description

Increase UT coverage in controller publish volume to 90%

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Comment thread service/controller.go

vcs := []*csi.VolumeCapability{req.GetVolumeCapability()}
vcs := []*csi.VolumeCapability{getVolumeCapabilityFromReq(req)}
log.Debugf("Volume capabilities: %s", vcs[0].AccessType)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Debug log will be removed in next PR.

@OliverChen557 OliverChen557 merged commit b63899f into usr/oliver/port-multi-tenant-changes Aug 13, 2025
13 of 18 checks passed
@OliverChen557 OliverChen557 deleted the usr/oliver/ut branch August 13, 2025 18:01
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