added failing test for set --onboot

This commit is contained in:
Christian Goll
2025-01-15 09:44:58 +01:00
parent 16269abf62
commit aec61328fc

View File

@@ -382,6 +382,30 @@ nodes:
ipaddr: 172.16.130.101
`,
},
{
name: "single node set onboot",
args: []string{"--netname", "default", "--onboot=true", "n01"},
wantErr: false,
stdout: "",
inDB: `nodeprofiles:
default: {}
nodes:
n01:
network devices:
default:
ipaddr: 172.16.130.101
`,
outDb: `nodeprofiles:
default: {}
nodes:
n01:
network devices:
default:
ipaddr: 172.16.130.101
onboot: "true"
`,
},
{
name: "single node set fs,part and disk",