New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unittests: Fixes unit tests for Windows #111534
Conversation
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.
/approve
for cmd/kubeadm. thanks
This PR has been included in this PR #110981, in which we've ran the |
/test pull-kubernetes-e2e-capz-windows-containerd |
4466d6b
to
0f7af39
Compare
/assign @jingxu97 |
/triage accepted |
/milestone v1.26 |
0f7af39
to
678f0d2
Compare
381a52a
to
08332e7
Compare
Currently, there are some unit tests that are failing on Windows due to various reasons: - Windows file permissions do not work the same way as the Linux ones. - cp does not exist on Windows, and xcopy should be used instead. - Get-Item does not work for hidden files / folders like AppData, but works if given the -Force flag.
08332e7
to
49ef270
Compare
/test pull-kubernetes-e2e-capz-windows-containerd |
/assign @jingxu97 |
Hey @claudiubelu - 1.26 bug triage team checking in! Just wanted to see if we're on track to get this in for the 1.26 release? Thanks! |
Yes, it is. It is half approved at this point, we need |
/assign @jsafrane |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: claudiubelu, jsafrane, neolit123 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind failing-test
/sig testing
/sig windows
/priority important-soon
What this PR does / why we need it:
Currently, there are some unit tests that are failing on Windows due to various reasons:
cp
does not exist on Windows, andxcopy
should be used instead.Get-Item
does not work for hidden files / folders likeAppData
, but works if given the-Force
flag.Which issue(s) this PR fixes:
Related: #51540
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: