5 t-tstunt-parsechangelog
8 t-prep-newpackage example 1.0
14 echo FORBIDDEN >debian/some-file
15 git add debian/some-file
16 t-commit 'Commit a forbidden thing'
18 bad=`git rev-parse HEAD:debian/some-file`
19 t-policy-admin taint --global "$bad" "forbidden for testing"
21 t_expect_push_fail_hook+='
22 t-git-objects-not-present "" $bad
26 t-expect-push-fail 'forbidden for testing' \
28 t-git-dir-check enoent
30 git reset --hard start
31 t-commit 'will vanish from NEW'
35 t-git-dir-check secret
38 t-git-dir-check secret
40 # pretend it vanished from new:
42 t-archive-none example
47 t-git-dir-check enoent
49 t-commit 'should require --deliberately...questionable'
52 t-expect-push-fail E:"tag debian/${vanished//./\\.} referred to this object.*all previously pushed versions were found to have been removed" \
54 t-git-dir-check enoent
56 t-dgit push --new --deliberately-include-questionable-history
57 t-git-dir-check secret
60 t-git-dir-check secret
62 t-archive-process-incoming new
66 t-git-dir-check secret
68 oldobj=`git rev-parse HEAD`
69 git reset --hard start
70 t-commit 'should require --deliberately..not-ff'
73 t-expect-push-fail "HEAD is not a descendant of the archive's version" \
77 "Package is in NEW and has not been accepted or rejected yet" \
78 t-dgit --deliberately-TEST-dgit-only-not-fast-forward push
80 t-dgit --deliberately-not-fast-forward push
83 t-expect-push-fail "Not a valid object name" \
84 git cat-file -p $oldobj
87 t-commit 'Still not accepted, will override taint'
90 "Package is in NEW and has not been accepted or rejected yet" \
93 t-dgit push --deliberately-include-questionable-history
95 t-archive-process-incoming sid
97 t-commit 'Check taint is no longer there'
101 echo xxx want to test database lock retry thing on push-and-taint