-
Notifications
You must be signed in to change notification settings - Fork 373
virtcontainers: Move unit tests for types/sandbox.go #2853
virtcontainers: Move unit tests for types/sandbox.go #2853
Conversation
Thank you for raising your pull request. Please note that the main development of Kata Containers has moved to the 2.0-dev branch of https://github.com/kata-containers/kata-containers repository. The kata-containers/runtime repository is kept for 1.x release maintenance. Please check twice if your change should go to the 2.0-dev branch directly. If it is strongly required for adding the change to Kata Containers 1.x releases, please ping @kata-containers/runtime to assign a dedicated developer to be responsible for porting the change to 2.0-dev branch. Thanks! |
947b5e0
to
c05cf81
Compare
/test-ubuntu |
Move unit tests that were in virtcontainers/sandbox_test.go relating to Socket, Volume, and SandboxState to types/sandbox_test.go. Change testSandboxStateTransition function to use SandboxState only instead of Sandbox from virtcontainers/sandbox.go. Fixes kata-containers#2852 Signed-off-by: Chelsea Mafrica <[email protected]>
Remove tests from virtcontainers/sandbox_test.go which were moved to virtcontainers/types/sandbox_test.go. Signed-off-by: Chelsea Mafrica <[email protected]>
c05cf81
to
345d0c2
Compare
/test-ubuntu |
Codecov Report
@@ Coverage Diff @@
## master #2853 +/- ##
==========================================
+ Coverage 50.62% 51.05% +0.43%
==========================================
Files 118 118
Lines 17367 17367
==========================================
+ Hits 8792 8867 +75
+ Misses 7497 7422 -75
Partials 1078 1078 |
Add tests for state change, empty string failures for Volumes and Sockets. Change two function names to accurately reflect tests. Signed-off-by: Chelsea Mafrica <[email protected]>
/test-ubuntu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cmaf.
lgtm
Forward port: kata-containers/kata-containers#450 |
Move unit tests that were in virtcontainers/sandbox_test.go relating to Socket, Volume, and SandboxState to types/sandbox_test.go.
Changed testSandboxStateTransition function to use SandboxState only instead of Sandbox from virtcontainers/sandbox.go.
Fixes #2852
Signed-off-by: Chelsea Mafrica [email protected]