Merge ~cjwatson/launchpad:fix-archive-api-tests into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | e63bfb30795c257080e33338bcfe9bd5cff560db |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:fix-archive-api-tests |
Merge into: | launchpad:master |
Diff against target: |
114 lines (+26/-11) 2 files modified
lib/lp/soyuz/xmlrpc/tests/test_archive.py (+23/-11) lib/lp/testing/factory.py (+3/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jürgen Gmach | Approve | ||
Review via email: mp+437053@code.launchpad.net |
Commit message
Fix ArchiveAPI tests to not create bad ArchiveFile combinations
Description of the change
DB patch 2211-15-0 introduces a unique index to ensure that there may be only one non-superseded `ArchiveFile` row for a given path in a given archive at any one time. The `ArchiveAPI` tests unintentionally violated this.
This situation shouldn't happen on production, and I've checked that there are no violations in the most recent production dump that was loaded into staging.
To post a comment you must log in.