Skip to content

Commit

Permalink
Fix TestVMAgent (antrea-io#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 antrea-io#5538 was merged.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
  • Loading branch information
antoninbas authored and luolanzone committed Mar 22, 2024
1 parent b7151d0 commit 3bec558
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 3bec558

Please sign in to comment.