Skip to content

Commit

Permalink
E2E: fix column parsing for dynamic host volumes test
Browse files Browse the repository at this point in the history
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: #25185
  • Loading branch information
tgross committed Feb 26, 2025
1 parent 4693f0b commit c8732c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/dynamic_host_volumes/dynamic_host_volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8732c5

Please sign in to comment.