Conversation
ivan4th
left a comment
There was a problem hiding this comment.
Some thoughts... We have vmconfig loading from fakekubeclient already tested. So we can for sure keep this test case, but what about also adding a test case here
(it would signal file injection breakage that's not due to a problem with kubeclient), and also, in the same place, a test case for persistent rootfs file injection?Reviewable status: 0 of 1 approvals obtained
|
I'm not fully sure how you would add that. Are you suggesting to add to struct in additional field for parameters needed by fake kube client as in https://github.com/Mirantis/virtlet/pull/861/files#diff-1fd8fde46fcffd8abd9ee1c4e043e6beR296 and basically rest of the lines from this test case before line for testcases with non nil values for fake kube client parameters?That would do the job, but would imo unnecessary enlarge already long body of loop. Hmmm... I can refactor that a bit to make it more readable adding also handling this extension to tc struct.
|
|
PR updated according to suggestion. |
ivan4th
left a comment
There was a problem hiding this comment.
Well my idea was to have TestDomainDefinitions cases w/o using the defaultExternalDataLoader and passing in a pre-filled VMConfig instead. What you did is probably even better, but doesn't it make TestFileInjectionHandlingDuringContainerCreation redundant, as it does basically the same thing?
Reviewable status: 0 of 1 approvals obtained
|
In fact it does. Ok, removed. |
ivan4th
left a comment
There was a problem hiding this comment.
Reviewed 3 of 3 files at r2.
Reviewable status:complete! 1 of 1 approvals obtained
This change is