l.a.t.t.TestPPAUploadProcessorFileLookups(TestPPAUploadProcessorBase) : class documentation

Part of lp.archiveuploader.tests.test_ppauploadprocessor View In Hierarchy

Functional test for uploadprocessor.py file-lookups in PPA.
Method uploadNewBarToUbuntu Upload a 'bar' source containing a unseen orig.tar.gz in ubuntu.
Method uploadHigherBarToUbuntu Upload the same higher version of 'bar' to the ubuntu.
Method testPPAReusingOrigFromUbuntu Official 'orig.tar.gz' can be reused for PPA uploads.
Method testNoPublishingOverrides Make sure publishing overrides are not applied for PPA uploads.
Method testPPAOrigGetsPrecedence When available, the PPA overridden 'orig.tar.gz' gets precedence.
Method testErrorMessagesWithUnicode Check that unicode errors messages are handled correctly.
Method testErrorMessagesWithArchiveDisplayNameUnicodeArchiveDisabled Check that unicode errors messages are handled correctly.
Method testPPAConflictingOrigFiles When available, the official 'orig.tar.gz' restricts PPA uploads.
Method test_conflicting_deleted_orig_file Undocumented
Method test30QuiltMultipleReusedOrigs Official orig*.tar.* can be reused for PPA uploads.

Inherited from TestPPAUploadProcessorBase:

Method setUp Setup infrastructure for PPA tests.
Method makeArchive Undocumented
Method assertEmails Check recent email upload notification attributes.
Method checkFilesRestrictedInLibrarian Check the libraryfilealias restricted flag.

Inherited from TestUploadProcessorBase (via TestPPAUploadProcessorBase):

Method switchToUploader Undocumented
Method switchToAdmin Undocumented
Method tearDown Undocumented
Method getUploadProcessor Undocumented
Method publishPackage Publish a single package that is currently NEW in the queue.
Method assertLogContains Assert if a given line is present in the log messages.
Method assertRaisesAndReturnError See TestCase.assertRaises.
Method setupBreezy Create a fresh distroseries in ubuntu.
Method addMockFile Return a librarian file.
Method queueUpload Queue one of our test uploads.
Method processUpload Process an upload queue entry directory.
Method setupBreezyAndGetUploadProcessor Setup Breezy and return an upload processor for it.
Method PGPSignatureNotPreserved PGP signatures should be removed from .changes files.

Inherited from TestCaseWithFactory (via TestPPAUploadProcessorBase, TestUploadProcessorBase):

Method getUserBrowser Return a Browser logged in as a fresh user, maybe opened at url.
Method getNonRedirectingBrowser Undocumented
Method createBranchAtURL Create a branch at the supplied URL.
Method create_branch_and_tree Create a database branch, bzr branch and bzr checkout.
Method createBzrBranch Create a bzr branch for a database branch.
Static Method getBranchPath Return the path of the branch in the mirrored area.
Method useTempBzrHome Undocumented
Method useBzrBranches Prepare for using bzr branches.

Inherited from TestCase (via TestPPAUploadProcessorBase, TestUploadProcessorBase, TestCaseWithFactory):

Method becomeDbUser Commit, then log into the database as dbuser.
Method __str__ The string representation of a test is its id.
Method useContext Use the supplied context in this test.
Method makeTemporaryDirectory Create a temporary directory, and return its path.
Method installKarmaRecorder Set up and return a KarmaRecorder.
Method assertProvides Assert 'obj' correctly provides 'interface'.
Method assertNotifies Assert that a callable performs a given notification.
Method assertNoNotification Assert that no notifications are generated by the callable.
Method assertSqlAttributeEqualsDate Fail unless the value of the attribute is equal to the date.
Method assertTextMatchesExpressionIgnoreWhitespace Undocumented
Method assertIsInstance Assert that an instance is an instance of assert_class.
Method assertIsNot Assert that expected is not the same object as observed.
Method assertContentEqual Assert that 'iter1' has the same content as 'iter2'.
Method assertRaisesWithContent Check if the given exception is raised with given content.
Method assertBetween Assert that 'variable' is strictly between two boundaries.
Method assertVectorEqual Apply assertEqual to all given pairs in one go.
Method expectedLog Expect a log to be written that matches the regex.
Method pushConfig Push some key-value pairs into a section of the config.
Method attachOopses Undocumented
Method attachLibrarianLog Include the logChunks from fixture in the test details.
Method assertStatementCount Assert that the expected number of SQL statements occurred.
Method useTempDir Use a temporary directory for this test.
Method assertEmailHeadersEqual Assert that two email headers are equal.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method checkPermissions Check if the used_permissions match expected_permissions.
Method assertEmailQueueLength Pop the email queue, assert its length, and return it.
Method _unfoldEmailHeader Unfold a multiline email header.
def uploadNewBarToUbuntu(self):
Upload a 'bar' source containing a unseen orig.tar.gz in ubuntu.

Accept and publish the NEW source, so it becomes available to the rest of the system.

def uploadHigherBarToUbuntu(self):
Upload the same higher version of 'bar' to the ubuntu.

We expect the official orig.tar.gz to be already available in the system.

def testPPAReusingOrigFromUbuntu(self):
Official 'orig.tar.gz' can be reused for PPA uploads.
def testNoPublishingOverrides(self):
Make sure publishing overrides are not applied for PPA uploads.
def testPPAOrigGetsPrecedence(self):
When available, the PPA overridden 'orig.tar.gz' gets precedence.

This test is required to guarantee the system will continue to cope with possibly different 'orig.tar.gz' contents already uploaded to PPAs.

def testErrorMessagesWithUnicode(self):
Check that unicode errors messages are handled correctly.

Some error messages can contain the PPA display name, which may sometimes contain unicode characters. There was a bug https://bugs.launchpad.net/bugs/275509 reported about getting upload errors related to unicode. This only happened when the uploder was attaching a .orig.tar.gz file with different contents than the one already in the PPA.

def testErrorMessagesWithArchiveDisplayNameUnicodeArchiveDisabled(self):
Check that unicode errors messages are handled correctly.

Some error messages can contain the PPA display name, which may sometimes contain unicode characters. We need to show proper errors when a disabled PPA with a unicode display name gets an upload.

def testPPAConflictingOrigFiles(self):
When available, the official 'orig.tar.gz' restricts PPA uploads.

This test guarantee that when not previously overridden in the context PPA, users will be forced to use the offical 'orig.tar.gz' from primary archive.

def test_conflicting_deleted_orig_file(self):
Undocumented
def test30QuiltMultipleReusedOrigs(self):
Official orig*.tar.* can be reused for PPA uploads.

The 3.0 (quilt) format supports multiple original tarballs. In a PPA upload, any number of these can be reused from the primary archive.

API Documentation for Launchpad, generated by pydoctor at 2018-02-21 00:00:11.