mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
tests: Add 404 tests for dirtree objects too
I now believe the flatpak issue we were hitting was https://github.com/ostreedev/ostree/pull/1185 but let's add these tests anyways for more coverage. Closes: #888 Approved by: jlebon
This commit is contained in:
parent
aa067aeafa
commit
15096ac49e
@ -35,7 +35,7 @@ function verify_initial_contents() {
|
||||
assert_file_has_content baz/cow '^moo$'
|
||||
}
|
||||
|
||||
echo "1..30"
|
||||
echo "1..31"
|
||||
|
||||
# Try both syntaxes
|
||||
repo_init --no-gpg-verify
|
||||
@ -476,6 +476,16 @@ fi
|
||||
assert_file_has_content err.txt "GPG verification enabled, but no signatures found"
|
||||
echo "ok pull repo 404 (gpg)"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
find ostree-srv/gnomerepo/objects -name '*.dirtree' | while read f; do mv ${f}{,.orig}; done
|
||||
repo_init --set=gpg-verify=false
|
||||
if ${CMD_PREFIX} ostree --repo=repo --depth=0 pull origin main 2>err.txt; then
|
||||
assert_not_reached "pull repo 404 succeeded?"
|
||||
fi
|
||||
assert_file_has_content err.txt "404"
|
||||
find ostree-srv/gnomerepo/objects -name '*.dirtree.orig' | while read f; do mv ${f} $(dirname $f)/$(basename ${f} .orig); done
|
||||
echo "ok pull repo 404 on dirtree object"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
repo_init --set=gpg-verify=true
|
||||
${CMD_PREFIX} ostree --repo=ostree-srv/gnomerepo commit \
|
||||
|
Loading…
Reference in New Issue
Block a user