From 258735d8a662d823b7c2bb9c0b4ae64c93b693ed Mon Sep 17 00:00:00 2001 From: Michael Ho Date: Wed, 18 Oct 2023 11:52:59 +0200 Subject: [PATCH] test/stages/users: make test data date agnostic The test for this stage is failing because etc/shadow changes content depending on the date that it runs on (due to the "date of last password change" field). This causes the checksums to not be constant for our tests and depends on the date. This commit removes the checksums for etc/shadow from the test so that they are not checked as part of the test. This worksaround the test failure issue for now until a solution to the dynamic contents is determined. Signed-off-by: Michael Ho --- test/data/stages/users/diff.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/data/stages/users/diff.json b/test/data/stages/users/diff.json index 48368b15..fa950a50 100644 --- a/test/data/stages/users/diff.json +++ b/test/data/stages/users/diff.json @@ -80,14 +80,14 @@ }, "/etc/shadow": { "content": [ - "sha256:61aa8fa91f7055a95b8a4a20dbaed2981fed58b7ef5e82acc5a863aa96fb660a", - "sha256:9ef562601c7a940f2ff402d47459d2a3987ac433edc5b31cb45fd9a571a955c2" + null, + null ] }, "/etc/shadow-": { "content": [ - "sha256:f567820b1e89fc27f089f3b2342e443f7ede4b2468e31ece83dfe7961f547c9e", - "sha256:39852bf1a919afcff2188b3cc28f17176f77582907f4b87ab9946f47eb9f2b41" + null, + null ] }, "/etc/subgid": {