Skip to content

Conversation

@martindekov
Copy link
Owner

Adding unit tests for blockdevice validations' Update
method. The change requires very basic fake implementation
of the cache objects used.

Also pipeline has additional step and very basic go test
which can be further optimized to output the coverage
in file.

Problem:
Repo does not provide a way to unit test code easily

Solution:
This change adds fakes for base objects and adds unit test scenarios for change:
harvester#248

Related Issue:
Unit test part of PR: harvester#248
For issue: harvester/harvester#3344

Test plan:
Unit tests

Adding unit tests for blockdevice validations' Update
method. The change requires very basic fake implementation
of the cache objects used.

Also pipeline has additional step and very basic go test
which can be further optimized to output the coverage
in file.

Signed-off-by: Martin Dekov <martin.dekov@suse.com>
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.

2 participants