From aec61328fc80281c816ef424a6357f612029386c Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 15 Jan 2025 09:44:58 +0100 Subject: [PATCH] added failing test for set --onboot --- internal/app/wwctl/node/set/main_test.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/internal/app/wwctl/node/set/main_test.go b/internal/app/wwctl/node/set/main_test.go index 693b989e..5ae8cb91 100644 --- a/internal/app/wwctl/node/set/main_test.go +++ b/internal/app/wwctl/node/set/main_test.go @@ -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",