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 luolanzone committed Mar 26, 2024
1 parent c879364 commit 7ccb94d
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 @@ -212,9 +212,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 7ccb94d

Please sign in to comment.