Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust reposync tests to xattrs renamed in librepo #1561

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# $ podman build --build-arg TYPE=distro -t ci-dnf-stack -f Dockerfile
# $ podman run --net none -it ci-dnf-stack behave dnf

ARG BASE=fedora:39
ARG BASE=fedora:40
FROM $BASE

ENV LANG C.UTF-8
Expand Down
8 changes: 4 additions & 4 deletions dnf-behave-tests/dnf/plugins-core/reposync-xattrs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ Given I copy repository "simple-base" for modification
Then stdout matches line by line
"""
# file: synced/x86_64/labirinto-1\.0-1\.fc29\.x86_64\.rpm
user\.Librepo\.checksum\.mtime="[0-9]+"
user\.Librepo\.checksum\.sha256="[0-9a-f]{64}"
user\.Librepo\.checksum\.sha512="[0-9a-f]{128}"
user\.[lL]ibrepo\.checksum\.mtime="[0-9]+"
user\.[lL]ibrepo\.checksum\.sha256="[0-9a-f]{64}"
user\.[lL]ibrepo\.checksum\.sha512="[0-9a-f]{128}"
"""


Expand All @@ -45,5 +45,5 @@ Given I use repository "simple-base" as http
When I execute dnf with args "reposync --repoid=simple-base --norepopath --download-path=/synced --remote-time"
Then the exit code is 0
# the timestamp stored in user.Librepo.checksum.mtime xattr is the same as mtime of the file in nanoseconds
When I execute "[ `getfattr --absolute-names --only-values -n 'user.Librepo.checksum.mtime' /synced/x86_64/labirinto-1.0-1.fc29.x86_64.rpm` == `date +%s%N -r /synced/x86_64/labirinto-1.0-1.fc29.x86_64.rpm` ]"
When I execute "[ `getfattr --absolute-names --only-values -m 'user\.[lL]ibrepo\.checksum\.mtime' /synced/x86_64/labirinto-1.0-1.fc29.x86_64.rpm` == `date +%s%N -r /synced/x86_64/labirinto-1.0-1.fc29.x86_64.rpm` ]"
Then the exit code is 0
Loading