add tag to tags not nettag
Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
d9fcc955c1
commit
c0d2e3714c
@@ -344,6 +344,50 @@ nodes:
|
||||
tag2: value2
|
||||
`,
|
||||
},
|
||||
{
|
||||
name: "single node add tag",
|
||||
args: []string{"--tagadd", "tag1=foobaar", "n01"},
|
||||
wantErr: false,
|
||||
stdout: "",
|
||||
inDB: `nodeprofiles:
|
||||
default: {}
|
||||
nodes:
|
||||
n01: {}
|
||||
`,
|
||||
outDb: `nodeprofiles:
|
||||
default: {}
|
||||
nodes:
|
||||
n01:
|
||||
tags:
|
||||
tag1: foobaar
|
||||
`,
|
||||
},
|
||||
{
|
||||
name: "single node add tag with netdev",
|
||||
args: []string{"--tagadd", "tag1=foobaar", "n01"},
|
||||
wantErr: false,
|
||||
stdout: "",
|
||||
inDB: `nodeprofiles:
|
||||
default: {}
|
||||
nodes:
|
||||
n01:
|
||||
network devices:
|
||||
default:
|
||||
ipaddr: 172.16.130.101
|
||||
|
||||
`,
|
||||
outDb: `nodeprofiles:
|
||||
default: {}
|
||||
nodes:
|
||||
n01:
|
||||
tags:
|
||||
tag1: foobaar
|
||||
network devices:
|
||||
default:
|
||||
ipaddr: 172.16.130.101
|
||||
`,
|
||||
},
|
||||
|
||||
{
|
||||
name: "single node set fs,part and disk",
|
||||
args: []string{"--fsname=var", "--fspath=/var", "--fsformat=btrfs", "--partname=var", "--partnumber=1", "--diskname=/dev/vda", "n01"},
|
||||
|
||||
Reference in New Issue
Block a user