5 t-tstunt-parsechangelog
8 t-prep-newpackage example 1.0
13 t-prep-mergechangelogs
15 echo FORBIDDEN >debian/some-file
16 git add debian/some-file
17 t-commit 'Commit a forbidden thing'
19 bad=`git rev-parse HEAD:debian/some-file`
20 t-policy-admin taint --global "$bad" "forbidden for testing"
22 t_expect_push_fail_hook+='
23 t-git-objects-not-present "" $bad
27 t-expect-push-fail 'forbidden for testing' \
29 t-git-dir-check enoent
31 git reset --hard start
32 t-commit 'will vanish from NEW'
36 t-git-dir-check secret
39 t-git-dir-check secret
41 # pretend it vanished from new:
43 t-archive-none example
48 t-git-dir-check enoent
50 t-commit 'should require --deliberately...questionable'
53 t-expect-push-fail E:"tag debian/${vanished//./\\.} referred to this object.*all previously pushed versions were found to have been removed" \
55 t-git-dir-check enoent
57 t-dgit push --new --deliberately-include-questionable-history
58 t-git-dir-check secret
61 t-git-dir-check secret
63 t-archive-process-incoming new
67 t-git-dir-check secret
69 oldobj=`git rev-parse HEAD`
70 git reset --hard start
71 t-commit 'should require --deliberately..not-ff'
74 t-expect-push-fail "HEAD is not a descendant of the archive's version" \
78 "Package is in NEW and has not been accepted or rejected yet" \
79 t-dgit --deliberately-TEST-dgit-only-not-fast-forward push
81 t-dgit --deliberately-not-fast-forward push
84 t-expect-push-fail "Not a valid object name" \
85 git cat-file -p $oldobj
88 t-commit 'Still not accepted, will override taint'
91 "Package is in NEW and has not been accepted or rejected yet" \
94 t-dgit push --deliberately-include-questionable-history
96 t-archive-process-incoming sid
98 t-commit 'Check taint is no longer there'
102 echo xxx want to test database lock retry thing on push-and-taint