summaryrefslogtreecommitdiff
path: root/tests/tests/drs-push-rejects
Commit message (Collapse)AuthorAge
* infra: Drop support for old tag name on server sideIan Jackson2019-06-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Drop all testing of old tag formats, and compatibilityIan Jackson2019-06-28
| | | | | | | | | | | This is quite old now. We are dropping support for it. The new tags came in in dgit 2.0 in October 2016. No version of dgit without them was in any Debian release. We don't expect there are any sites using old servers which do not support the new format, or anyone using a dgit client older than 2.x who cannot upgrade. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite; drs-push-rejects: Set origin's urlIan Jackson2017-01-16
| | | | | | | | | Use an ad-hoc expression which produces the right ext:: rune, as dgit would. Closes:#851580. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Break out t-make-badcommitIan Jackson2017-01-06
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Introduce t-expect-fsck-failIan Jackson2017-01-05
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Make expect_fsck_fail contain objidsIan Jackson2017-01-05
| | | | | | This will make it possible to be stricter. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Merge tag dgit/2.14 into `defence in dgit-repos-server' branchIan Jackson2017-01-05
|\ | | | | | | | | | | | | | | | | | | Fix up semantic conflict: the new git-fsck test (in 2.14) fails on the new broken commits (in the `defence in dgit-repos-server' branch). We need to disable this. Ideally we would make a tighter test, but that's too much to do in a merge. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
| * test suite: Introduce t-ok.Ian Jackson2017-01-04
| | | | | | | | | | | | | | | | | | | | | | No functional change. perl -i~ -pe 's/^echo ok\.$/t-ok/' tests/tests/*[^~] perl -i~ -pe 's/^echo ok\.$/t-ok/' tests/setup/*[^~] perl -i~ -pe 's/^echo done\.$/t-ok/' tests/tests/*[^~] perl -i~ -pe 's/^echo done\.$/t-ok/' tests/setup/*[^~] Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* | test suite: Test bad commit defence in drs-push-rejectsIan Jackson2017-01-05
|/ | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: drs-push-rejects: Test push of same version with different dgitIan Jackson2016-09-25
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: drs-push-rejects: Break out re-prep (nfc)Ian Jackson2016-09-25
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Split brain: dgit-repos-server: Permit pushing maintainer tag tooIan Jackson2016-09-25
| | | | | | | | | Split brain is going to need the maintainer tag on the dgit server. Allow clients to push the _both_ the DEP-14 and new dgit archive/ tag. In this case dgit-repos-server can largely ignore the DEP-14 tag. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Tag change: Test suite: Introduce $tagpfxIan Jackson2016-07-31
| | | | | | | | | | | | | | Currently this is `test-dummy' (the distro the tests work with). Have checked that after this commit find tests -type f | xargs perl -i~ -pe 's/\$tagpfx/test-dummy/g' puts everything back. (This does not prove I have changed the right set of occurrences, but it does suggest that each actual change is good.) No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Set GIT_COMMITTER_DATE and GIT_AUTHOR_DATEIan Jackson2016-07-01
| | | | | | | | | | | | | | This avoids most date dependencies: unless other measures are taken, the commits and tags are identical iff they are constructed identically. This makes the test suite more deterministic. In drs-push-rejects test, increment them explicitly, so as to make all of mktag's tags distinct objects. Otherwise it can generate identical tags (now, always; previously, only sometimes on fast computers), causing spurious variations in behaviour (eg, things not being rejected because they do not represent any change).
* Test suite: Replace assignments to p with t-select-packageIan Jackson2015-07-11
|
* For non-Debian distros, debiantag() uses distro name a la DEP-14.Ian Jackson2015-07-04
|
* Use force flag when pushing tagsIan Jackson2015-06-23
| | | | | | | | | Newer versions of git push will not overwrite an existing tag unless the client specifies + on the refspec (or --force). (This is a client-side check.) So add this flag where appropriate, both in dgit itself, and in the test suite.
* Test suite: Make t-expect-push-fail out of the remains of mustfailIan Jackson2015-06-10
|
* Test suite: Move most of mustfail into t-expect-failIan Jackson2015-06-10
|
* Test suite: Make t-reporefs stash the outputIan Jackson2015-06-10
|
* Test suite: drs-push-rejects: use set +o pipefail, not set +eIan Jackson2015-06-07
|
* Test suite: Move t-reporefs into libIan Jackson2015-06-07
|
* Infra: Allow FRESHREPO to override "tag already exists"Ian Jackson2015-05-31
| | | | drs-push-rejects test needs updating too.
* LANG, LC_*: Consistently set required LC_* env varsIan Jackson2015-05-31
|
* Fix "tests: drs-push-rejects: test unknown suite"Ian Jackson2014-08-04
| | | | | We have to reset $tmp/suites or the remaining elements of this test script will fail.
* tests: drs-push-rejects: test unknown suiteIan Jackson2014-03-12
|
* tests: drs-push-rejects: malformed tags of various kindsIan Jackson2014-03-12
|
* dgit-repos-server: call tag tags "headers" in error messagesIan Jackson2014-03-12
|
* tests: drs-push-rejects: todos; now all relevant error conditions in ↵Ian Jackson2014-03-06
| | | | dgit-repos-server are at least noted with a "fixme"
* tests: drs-push-rejects: more error testsIan Jackson2014-03-06
|
* dgit-repos-server: some better error msgs, more testsIan Jackson2014-03-06
|
* tests: drs-push-rejects: fix unexpected success msgIan Jackson2014-03-05
|
* tests: drs-push-rejects: introduce and use "mustsucceed"Ian Jackson2014-03-05
|
* tests: drs-push-rejects: check that failures do not update any refsIan Jackson2014-03-05
|
* tests: drs-push-rejects: fix "key not in keyring" testIan Jackson2014-03-05
|
* dgit-repos-server: some better error msgs, more testsIan Jackson2014-03-05
|
* dgit-repos-server: fix dm parsing, more testsIan Jackson2014-03-05
|
* tests: drs-push-rejects: failing test for dmIan Jackson2014-03-05
|
* tests: drs-push-rejects: wipIan Jackson2014-03-05
|
* tests: drs-push-rejects: some failure cases; generate tags in scriptIan Jackson2014-03-05
|
* tests: drs-push-rejects: new test, currently just passes a pushIan Jackson2014-03-05