l.s.t.t.PlainPackageCopyJobTests(TestCaseWithFactory, LocalTestHelper) : class documentation

Part of lp.soyuz.tests.test_packagecopyjob View In Hierarchy

Test case for PlainPackageCopyJob.
Method setUp Undocumented
Method test_job_implements_IPlainPackageCopyJob Undocumented
Method test_job_source_implements_IPlainPackageCopyJobSource Undocumented
Method test_getErrorRecipients_requester Undocumented
Method test_getErrorRecipients_sponsored Undocumented
Method test_create Undocumented
Method test_createMultiple_creates_one_job_per_copy Undocumented
Method test_getActiveJobs Undocumented
Method test_getActiveJobs_gets_oldest_first Undocumented
Method test_getActiveJobs_only_returns_waiting_jobs Undocumented
Method test_run_raises_errors Undocumented
Method test_run_posts_copy_failure_as_comment Undocumented
Method test_run_cannot_copy_unknown_package Undocumented
Method test_copy_with_packageupload Undocumented
Method test_target_ppa_non_release_pocket Undocumented
Method test_target_ppa_message Undocumented
Method assertOopsRecorded Undocumented
Method test_target_ppa_message_unexpected_error Undocumented
Method test_target_ppa_message_integrity_error Undocumented
Method test_target_primary_redirects Undocumented
Method test_target_primary_queue_admin_bypasses_redirect Undocumented
Method test_run Undocumented
Method test_iterReady_orders_by_copy_policy Undocumented
Method test_iterReady_preempt Undocumented
Method test_getOopsVars Undocumented
Method test_getOperationDescription Undocumented
Method test_smoke Undocumented
Method test___repr__ Undocumented
Method test_getPendingJobsPerPackage_finds_jobs Undocumented
Method test_getPendingJobsPerPackage_ignores_other_distroseries Undocumented
Method test_getPendingJobsPerPackage_only_returns_pending_jobs Undocumented
Method test_getPendingJobsPerPackage_distinguishes_jobs Undocumented
Method test_getPendingJobsPerPackage_picks_oldest_job_for_dsd Undocumented
Method test_getPendingJobsPerPackage_ignores_dsds_without_jobs Undocumented
Method test_getIncompleteJobsForArchive_finds_jobs_in_right_archive Undocumented
Method test_getIncompleteJobsForArchive_finds_failed_and_running_jobs Undocumented
Method test_copying_to_main_archive_ancestry_overrides Undocumented
Method test_copying_to_ppa_archive Undocumented
Method test_copying_to_main_archive_manual_overrides Undocumented
Method test_copying_to_main_archive_with_no_ancestry Undocumented
Method createCopyJobForSPPH Undocumented
Method createCopyJob Undocumented
Method test_copying_to_main_archive_debian_override_contrib Undocumented
Method test_copying_to_main_archive_debian_override_nonfree Undocumented
Method test_double_copy Undocumented
Method test_copying_resurrects_deleted_package Undocumented
Method test_copying_resurrects_deleted_package_primary_new Undocumented
Method test_copying_to_main_archive_unapproved Undocumented
Method createAutoApproveEnvironment Create an environment for testing the auto_approve flag.
Method assertCanAutoApprove Undocumented
Method assertCannotAutoApprove Undocumented
Method test_auto_approve Undocumented
Method test_auto_approve_non_queue_admin Undocumented
Method test_auto_approve_pocket_queue_admin Undocumented
Method test_auto_approve_new Undocumented
Method test_auto_approve_new_non_queue_admin Undocumented
Method test_auto_approve_new_pocket_queue_admin Undocumented
Method test_copying_after_job_released Undocumented
Method test_silent Undocumented
Method test_copying_closes_bugs Undocumented
Method test_copying_unembargoes_files Undocumented
Method test_copy_custom_upload_files Undocumented
Method test_copy_phased_update_percentage Undocumented
Method test_findMatchingDSDs_matches_all_DSDs_for_job Undocumented
Method test_findMatchingDSDs_ignores_other_source_series Undocumented
Method test_findMatchingDSDs_ignores_other_packages Undocumented
Method test_addSourceOverride Undocumented
Method test_addSourceOverride_accepts_None_component_as_no_change Undocumented
Method test_addSourceOverride_accepts_None_section_as_no_change Undocumented
Method test_getSourceOverride Undocumented
Method test_findSourcePublication_with_source_series_and_pocket Undocumented
Method test_getPolicyImplementation_returns_policy Undocumented
Method test_rejects_PackageUpload_when_job_fails Undocumented
Method test_diffs_are_not_created_when_only_copying_binaries Undocumented

Inherited from TestCaseWithFactory:

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 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.

Inherited from LocalTestHelper:

Method makeJob Create a PlainPackageCopyJob that would resolve dsd.
Method makePPAJob Undocumented
Method runJob Helper to switch to the right DB user and run the job.
def setUp(self):
Undocumented
def test_job_implements_IPlainPackageCopyJob(self):
Undocumented
def test_job_source_implements_IPlainPackageCopyJobSource(self):
Undocumented
def test_getErrorRecipients_requester(self):
Undocumented
def test_getErrorRecipients_sponsored(self):
Undocumented
def test_create(self):
Undocumented
def test_createMultiple_creates_one_job_per_copy(self):
Undocumented
def test_getActiveJobs(self):
Undocumented
def test_getActiveJobs_gets_oldest_first(self):
Undocumented
def test_getActiveJobs_only_returns_waiting_jobs(self):
Undocumented
def test_run_raises_errors(self):
Undocumented
def test_run_posts_copy_failure_as_comment(self):
Undocumented
def test_run_cannot_copy_unknown_package(self):
Undocumented
def test_copy_with_packageupload(self):
Undocumented
def test_target_ppa_non_release_pocket(self):
Undocumented
def test_target_ppa_message(self):
Undocumented
def assertOopsRecorded(self, job):
Undocumented
def test_target_ppa_message_unexpected_error(self):
Undocumented
def test_target_ppa_message_integrity_error(self):
Undocumented
def test_target_primary_redirects(self):
Undocumented
def test_target_primary_queue_admin_bypasses_redirect(self):
Undocumented
def test_run(self):
Undocumented
def test_iterReady_orders_by_copy_policy(self):
Undocumented
def test_iterReady_preempt(self):
Undocumented
def test_getOopsVars(self):
Undocumented
def test_getOperationDescription(self):
Undocumented
def test_smoke(self):
Undocumented
def test___repr__(self):
Undocumented
def test_getPendingJobsPerPackage_finds_jobs(self):
Undocumented
def test_getPendingJobsPerPackage_ignores_other_distroseries(self):
Undocumented
def test_getPendingJobsPerPackage_only_returns_pending_jobs(self):
Undocumented
def test_getPendingJobsPerPackage_distinguishes_jobs(self):
Undocumented
def test_getPendingJobsPerPackage_picks_oldest_job_for_dsd(self):
Undocumented
def test_getPendingJobsPerPackage_ignores_dsds_without_jobs(self):
Undocumented
def test_getIncompleteJobsForArchive_finds_jobs_in_right_archive(self):
Undocumented
def test_getIncompleteJobsForArchive_finds_failed_and_running_jobs(self):
Undocumented
def test_copying_to_main_archive_ancestry_overrides(self):
Undocumented
def test_copying_to_ppa_archive(self):
Undocumented
def test_copying_to_main_archive_manual_overrides(self):
Undocumented
def test_copying_to_main_archive_with_no_ancestry(self):
Undocumented
def createCopyJobForSPPH(self, spph, source_archive, target_archive, target_pocket=PackagePublishingPocket.RELEASE, include_binaries=False, requester=None, **kwargs):
Undocumented
def createCopyJob(self, sourcename, component, section, version, return_job=False):
Undocumented
def test_copying_to_main_archive_debian_override_contrib(self):
Undocumented
def test_copying_to_main_archive_debian_override_nonfree(self):
Undocumented
def test_double_copy(self):
Undocumented
def test_copying_resurrects_deleted_package(self):
Undocumented
def test_copying_resurrects_deleted_package_primary_new(self):
Undocumented
def test_copying_to_main_archive_unapproved(self):
Undocumented
def createAutoApproveEnvironment(self, create_ancestry, component_names, pocket_admin=False):
Create an environment for testing the auto_approve flag.
def assertCanAutoApprove(self, create_ancestry, component_names, pocket_admin=False):
Undocumented
def assertCannotAutoApprove(self, create_ancestry, component_names, pocket_admin=False):
Undocumented
def test_auto_approve(self):
Undocumented
def test_auto_approve_non_queue_admin(self):
Undocumented
def test_auto_approve_pocket_queue_admin(self):
Undocumented
def test_auto_approve_new(self):
Undocumented
def test_auto_approve_new_non_queue_admin(self):
Undocumented
def test_auto_approve_new_pocket_queue_admin(self):
Undocumented
def test_copying_after_job_released(self):
Undocumented
def test_silent(self):
Undocumented
def test_copying_closes_bugs(self):
Undocumented
def test_copying_unembargoes_files(self):
Undocumented
def test_copy_custom_upload_files(self):
Undocumented
def test_copy_phased_update_percentage(self):
Undocumented
def test_findMatchingDSDs_matches_all_DSDs_for_job(self):
Undocumented
def test_findMatchingDSDs_ignores_other_source_series(self):
Undocumented
def test_findMatchingDSDs_ignores_other_packages(self):
Undocumented
def test_addSourceOverride(self):
Undocumented
def test_addSourceOverride_accepts_None_component_as_no_change(self):
Undocumented
def test_addSourceOverride_accepts_None_section_as_no_change(self):
Undocumented
def test_getSourceOverride(self):
Undocumented
def test_findSourcePublication_with_source_series_and_pocket(self):
Undocumented
def test_getPolicyImplementation_returns_policy(self):
Undocumented
def test_rejects_PackageUpload_when_job_fails(self):
Undocumented
def test_diffs_are_not_created_when_only_copying_binaries(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-07-21 00:00:04.