diff --git a/internal/app/wwctl/node/list/main_test.go b/internal/app/wwctl/node/list/main_test.go index 3e71dcaa..850636f9 100644 --- a/internal/app/wwctl/node/list/main_test.go +++ b/internal/app/wwctl/node/list/main_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/hpcng/warewulf/internal/pkg/node" warewulfconf "github.com/hpcng/warewulf/internal/pkg/config" + "github.com/hpcng/warewulf/internal/pkg/node" "github.com/hpcng/warewulf/internal/pkg/warewulfd" "github.com/stretchr/testify/assert" ) @@ -75,6 +75,35 @@ nodes: n02: profiles: - default +`, + }, + { + name: "node list returns multiple nodes (case 2)", + args: []string{"n01,n03"}, + wantErr: false, + stdout: ` NODE NAME PROFILES NETWORK + n01 default + n03 default +`, + inDb: `WW_INTERNAL: 43 +nodeprofiles: + default: {} +nodes: + n01: + profiles: + - default + n02: + profiles: + - default + n03: + profiles: + - default + n04: + profiles: + - default + n05: + profiles: + - default `, }, {