From c8732c5d2d56930cad36c7915a639bc840223074 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Wed, 26 Feb 2025 09:04:03 -0500 Subject: [PATCH] E2E: fix column parsing for dynamic host volumes test In #25185 we changed the output of `volume status` to include both DHV and CSI volumes by default. When the E2E test parses the output, it's not expecting the new section header. Ref: https://github.com/hashicorp/nomad/pull/25185 --- e2e/dynamic_host_volumes/dynamic_host_volumes_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/dynamic_host_volumes/dynamic_host_volumes_test.go b/e2e/dynamic_host_volumes/dynamic_host_volumes_test.go index da99ca6a020..3ec8f9c4f20 100644 --- a/e2e/dynamic_host_volumes/dynamic_host_volumes_test.go +++ b/e2e/dynamic_host_volumes/dynamic_host_volumes_test.go @@ -98,7 +98,10 @@ func TestDynamicHostVolumes_RegisterWorkflow(t *testing.T) { out, err := e2eutil.Command("nomad", "volume", "status", "-verbose", "-type", "host") must.NoError(t, err) - vols, err := e2eutil.ParseColumns(out) + + section, err := e2eutil.GetSection(out, "Dynamic Host Volumes") + must.NoError(t, err) + vols, err := e2eutil.ParseColumns(section) must.NoError(t, err) var volID string