add one more case
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hpcng/warewulf/internal/pkg/node"
|
|
||||||
warewulfconf "github.com/hpcng/warewulf/internal/pkg/config"
|
warewulfconf "github.com/hpcng/warewulf/internal/pkg/config"
|
||||||
|
"github.com/hpcng/warewulf/internal/pkg/node"
|
||||||
"github.com/hpcng/warewulf/internal/pkg/warewulfd"
|
"github.com/hpcng/warewulf/internal/pkg/warewulfd"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
@@ -75,6 +75,35 @@ nodes:
|
|||||||
n02:
|
n02:
|
||||||
profiles:
|
profiles:
|
||||||
- default
|
- 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
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user