From b3638ac1ff00253e759f0c23c7864027510efedc Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 21 Feb 2024 10:34:03 +0100 Subject: [PATCH] failing test for node list without network Signed-off-by: Christian Goll --- internal/app/wwctl/node/list/main_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/internal/app/wwctl/node/list/main_test.go b/internal/app/wwctl/node/list/main_test.go index 68c585d1..9a3f22ce 100644 --- a/internal/app/wwctl/node/list/main_test.go +++ b/internal/app/wwctl/node/list/main_test.go @@ -125,6 +125,24 @@ nodes: - default `, }, + { + name: "node list profile with network", + args: []string{}, + wantErr: false, + stdout: ` NODE NAME PROFILES NETWORK + n01 default default +`, + inDb: `WW_INTERNAL: 45 +nodeprofiles: + default: + network devices: + default: + device: eth0 +nodes: + n01: + profiles: + - default +`}, } conf_yml := `WW_INTERNAL: 0` tempWarewulfConf, warewulfConfErr := os.CreateTemp("", "warewulf.conf-")