Skip to content

Commit

Permalink
Fix TestVMAgent (#6008)
Browse files Browse the repository at this point in the history
Fix the TestVMAgent/testExternalNodeSupportBundleCollection test.
The test case was not updated correctly after #5538 was merged.

Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas authored and tnqn committed Mar 25, 2024
1 parent 749504c commit 9e4cad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/vmagent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ func testExternalNodeSupportBundleCollection(t *testing.T, data *TestData, vmLis
require.NoError(t, err)
var expectedInfoEntries []string
if vm.osType == linuxOS {
expectedInfoEntries = []string{"address", "addressgroups", "agentinfo", "appliedtogroups", "flows", "iptables", "link", "logs", "memprofile", "networkpolicies", "ovsports", "route"}
expectedInfoEntries = []string{"address", "addressgroups", "agentinfo", "appliedtogroups", "flows", "goroutinestacks", "iptables", "link", "logs", "memprofile", "networkpolicies", "ovsports", "route"}
} else if vm.osType == windowsOS {
expectedInfoEntries = []string{"addressgroups", "agentinfo", "appliedtogroups", "flows", "ipconfig", "logs\\ovs\\ovs-vswitchd.log", "logs\\ovs\\ovsdb-server.log", "memprofile", "network-adapters", "networkpolicies", "ovsports", "routes"}
expectedInfoEntries = []string{"addressgroups", "agentinfo", "appliedtogroups", "flows", "goroutinestacks", "ipconfig", "logs\\ovs\\ovs-vswitchd.log", "logs\\ovs\\ovsdb-server.log", "memprofile", "network-adapters", "networkpolicies", "ovsports", "routes"}
}
actualExpectedInfoEntries := strings.Split(strings.Trim(stdout, "\n"), "\n")
t.Logf("Actual files after extracting SupportBundleCollection tarball %s_%s: %v", vm.nodeName, bundleName, actualExpectedInfoEntries)
Expand Down

0 comments on commit 9e4cad1

Please sign in to comment.