From a05c4946387e63233d35740c9d58b86e0bd3e764 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Mon, 11 Nov 2024 10:56:30 +0100 Subject: [PATCH] fix tests after refactor Signed-off-by: Christian Goll --- internal/app/wwctl/node/set/main_test.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/internal/app/wwctl/node/set/main_test.go b/internal/app/wwctl/node/set/main_test.go index ba0f7a2f..ec9c4469 100644 --- a/internal/app/wwctl/node/set/main_test.go +++ b/internal/app/wwctl/node/set/main_test.go @@ -206,13 +206,11 @@ func Test_Add_NetTags(t *testing.T) { args: []string{"--nettagadd=dns=1.1.1.1", "n01"}, wantErr: false, stdout: "", - inDB: `WW_INTERNAL: 43 -nodeprofiles: {} + inDB: `nodeprofiles: {} nodes: n01: {} `, - outDb: `WW_INTERNAL: 43 -nodeprofiles: {} + outDb: `nodeprofiles: {} nodes: n01: network devices: @@ -229,8 +227,7 @@ func Test_Del_NetTags(t *testing.T) { args: []string{"--netname=default", "--nettagdel=dns1,dns2", "n01"}, wantErr: false, stdout: "", - inDB: `WW_INTERNAL: 43 -nodeprofiles: {} + inDB: `nodeprofiles: {} nodes: n01: network devices: @@ -239,8 +236,7 @@ nodes: dns1: 1.1.1.1 dns2: 2.2.2.2 `, - outDb: `WW_INTERNAL: 43 -nodeprofiles: {} + outDb: `nodeprofiles: {} nodes: n01: {} `,