From 8b67b02dfa339a10edf3bbab4641bc4786e63f6a Mon Sep 17 00:00:00 2001 From: Gianluca Zuccarelli Date: Thu, 6 Jun 2024 11:23:24 +0100 Subject: [PATCH] test/cases: fix users stage Since the `/etc/shadow` file contains a timestamp we need to add a `null` value rather than a `sha256` hash to tell the diff tool to ignore these fields. The issue is that the timestamp will always be different meaning the tests will pass for a day, but then fail after that. --- 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 5feef0b3..abba0120 100644 --- a/test/data/stages/users/diff.json +++ b/test/data/stages/users/diff.json @@ -80,14 +80,14 @@ }, "/etc/shadow": { "content": [ - "sha256:4910c05c4074c6c687f13f57b010d5dc451e96470f0062251538d0149e3bc24d", - "sha256:e961d583e3a47c13d1aa6992cda22b5f49ad158e72ba38a1119455c7334bdf79" + null, + null ] }, "/etc/shadow-": { "content": [ - "sha256:50c7217179897a9cf2ccb456d50a29713b6bfbcf09c63f02d480e053166a00c5", - "sha256:8e20a9c7415d173fa90224a149b3bd4f6e482d4ca3c26a27a3fb6ef314a90706" + null, + null ] }, "/etc/subgid": {