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
e2e: add NodeLogQuery tests for Windows nodes #122594
Conversation
Skipping CI for Draft Pull Request. |
/sig windows |
1df8535
to
8937e9d
Compare
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.
@jsturtevant @marosset any ideas on how to normalize the newlines across Windows and Linux for comparison purposes?
test/e2e/node/kubelet.go
Outdated
} | ||
|
||
func getWinEventCommandOnNode(nodeName string, providerName, args string) string { | ||
output := commandOnNode(nodeName, "Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='"+providerName+"'}"+args+" | Format-Table -AutoSize -Wrap") |
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.
This shows up as:
Jan 5 16:15:51.164: INFO: ssh capi@capz-conf-2c5l6:22: stdout: "\r\n\r\n ProviderName: Microsoft-Windows-Security-SPP\r\n\r\nTimeCreated Id LevelDisplayName Message \r\n----------- -- ---------------- ------- \r\n1/5/2024 11:36:45 PM 16384 Information Successfully scheduled Software Protection service for \r\n re-start at 2024-01-12T22:32:45Z. Reason: RulesEngine. \r\n1/5/2024 11:36:15 PM 16394 Information Offline downlevel migration succeeded. \r\n1/5/2024 11:30:44 PM 16384 Information Successfully scheduled Software Protection service for \r\n re-start at 2024-01-12T22:32:44Z. Reason: RulesEngine. \r\n\r\n\r\n"
8937e9d
to
62aab3c
Compare
PR looks to be related to kubernetes/enhancements#2258. Its unclear to me at what stage this feature is by the issue. /triage accepted We should get these e2e tests in this release as this feature is currently alpha (I think!). |
1d3eda2
to
fa7e7f1
Compare
Thank you @aravindhp. I was commented on it as I was traging the feature and decided the priority. |
fa7e7f1
to
66ea026
Compare
/retest-required |
1 similar comment
/retest-required |
/retitle e2e: add NodeLogQuery tests for Windows nodes |
@marosset @jsturtevant please review |
/test pull-kubernetes-verify-lint pull-kubernetes-linter-hints |
/lgtm |
LGTM label has been added. Git tree hash: 4d8ee212e0b9166e787a2c7613ee6de870981e7b
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aravindhp, mrunalp 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 feature
What this PR does / why we need it:
Add e2e tests for the NodeLogQuery feature against Windows nodes
Special notes for your reviewer:
Does this PR introduce a user-facing change?