moby/integration
Sebastiaan van Stijn fe097e018c
Fix volume CreatedAt being altered on initialization
The CreatedAt date was determined from the volume's `_data`
directory (`/var/lib/docker/volumes/<volumename>/_data`).
However, when initializing a volume, this directory is updated,
causing the date to change.

Instead of using the `_data` directory, use its parent directory,
which is not updated afterwards, and should reflect the time that
the volume was created.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit 01fd23b625)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-03 17:55:26 +01:00
..
build Merge pull request #43009 from thaJeztah/skip_TestBuildWCOWSandboxSize 2021-11-10 11:59:09 -08:00
config integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
container integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
daemon [23.0] remove libtrust tests 2022-12-03 18:08:29 +01:00
distribution bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
image skip TestImagePullStoredfDigestForOtherRepo() on Windows and rootless 2022-10-21 01:50:09 +02:00
internal integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
network integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
plugin integration/plugin: remove deprecated overlay2.override_kernel_check 2022-10-10 15:00:29 +02:00
secret integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
service integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
session bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
system integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
testdata/https Update test certificates 2021-05-18 09:43:21 +02:00
volume Fix volume CreatedAt being altered on initialization 2023-01-03 17:55:26 +01:00
doc.go Add canonical import comment 2018-02-05 16:51:57 -05:00