diff --git a/internal/app/wwctl/node/list/main_test.go b/internal/app/wwctl/node/list/main_test.go index 428ca9af..18f4ff13 100644 --- a/internal/app/wwctl/node/list/main_test.go +++ b/internal/app/wwctl/node/list/main_test.go @@ -602,6 +602,29 @@ nodes: n02: profiles: - default +`, + }, + { + name: "single node list with network", + args: []string{"-a"}, + wantErr: false, + stdout: ` +NODE FIELD PROFILE VALUE +---- ----- ------- ----- +n01 Profiles -- default +n01 NetDevs[default].Hwaddr -- aa:bb:cc:dd:ee:ff +n01 NetDevs[default].Ipaddr -- 1.1.1.1 +`, + inDb: `nodeprofiles: + default: {} +nodes: + n01: + profiles: + - default + network devices: + default: + hwaddr: aa:bb:cc:dd:ee:ff + ipaddr: 1.1.1.1 `, }, }