l.a.t.t.TestPublishFTPMasterScript(TestCaseWithFactory, RunPartsMixin, HelpersMixin) : class documentation

Part of lp.archivepublisher.tests.test_publish_ftpmaster View In Hierarchy

No class docstring
Method prepareUbuntu Obtain a reference to Ubuntu, set up for testing.
Method readReleaseFile Read a Release file, return as a keyword/value dict.
Method installRunPartsScript Set up a run-parts script, and configure it to run.
Method test_script_runs_successfully Undocumented
Method test_getConfigs_maps_distro_and_purpose_to_matching_config Undocumented
Method test_getConfigs_maps_distros Undocumented
Method test_getConfigs_skips_configless_distros Undocumented
Method test_script_is_happy_with_no_publications Undocumented
Method test_script_is_happy_with_no_pubconfigs Undocumented
Method test_can_run_twice Undocumented
Method test_publishes_package Undocumented
Method test_getDirtySuites_returns_suite_with_pending_publication Undocumented
Method test_getDirtySuites_returns_suites_with_pending_publications Undocumented
Method test_getDirtySuites_ignores_suites_without_pending_publications Undocumented
Method test_getDirtySuites_returns_suites_with_pending_binaries Undocumented
Method test_getDirtySecuritySuites_returns_security_suites Undocumented
Method test_getDirtySecuritySuites_ignores_non_security_suites Undocumented
Method test_rsync_copies_files Undocumented
Method test_rsync_cleans_up_obsolete_files Undocumented
Method test_setUpDirs_creates_directory_structure Undocumented
Method test_setUpDirs_does_not_mind_if_dist_directories_already_exist Undocumented
Method test_publishDistroArchive_runs_parts Undocumented
Method test_runPublishDistroParts_passes_parameters Undocumented
Method test_clearEmptyDirs_cleans_up_empty_directories Undocumented
Method test_clearEmptyDirs_does_not_clean_up_nonempty_directories Undocumented
Method test_processOptions_finds_distribution Undocumented
Method test_processOptions_for_all_derived_finds_derived_distros Undocumented
Method test_processOptions_for_all_derived_ignores_nonderived_distros Undocumented
Method test_processOptions_complains_about_unknown_distribution Undocumented
Method test_runFinalizeParts_passes_parameters Undocumented
Method test_publishSecurityUploads_skips_pub_if_no_security_updates Undocumented
Method test_publishSecurityUploads_returns_true_when_publishes Undocumented
Method test_publishDistroUploads_publishes_all_distro_archives Undocumented
Method test_recoverWorkingDists_is_quiet_normally Undocumented
Method test_recoverWorkingDists_recovers_working_directory Undocumented
Method test_publishes_first_security_updates_then_all_updates Undocumented
Method test_security_run_publishes_only_security_updates Undocumented
Method test_security_run_empty_security_does_not_finalize Undocumented
Method test_publishDistroUploads_processes_all_archives Undocumented
Method test_runFinalizeParts_passes_archiveroots_correctly Undocumented
Method test_updateStagedFilesForSuite_installs_changed Undocumented
Method test_updateStagedFilesForSuite_installs_changed_dep11 Undocumented
Method test_updateStagedFilesForSuite_twice Undocumented
Method test_updateStagedFiles_marks_suites_dirty Undocumented
Method test_updateStagedFiles_considers_partner_archive Undocumented
Method test_updateStagedFiles_skips_immutable_suites Undocumented
Method test_publish_always_returns_true_for_primary Undocumented
Method test_publish_returns_true_for_non_empty_security Undocumented
Method test_publish_returns_false_for_empty_security Undocumented
Method test_publish_reraises_exception Undocumented
Method test_publish_obeys_keyboard_interrupt Undocumented
Method test_publish_recovers_working_dists_on_exception Undocumented
Method test_publish_recovers_working_dists_on_ctrl_C Undocumented
Method test_publish_is_not_interrupted_by_cron_control Undocumented

Inherited from TestCaseWithFactory:

Method setUp Undocumented
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 RunPartsMixin:

Method enableRunParts Set up for run-parts execution.

Inherited from HelpersMixin:

Method makeDistroWithPublishDirectory Create a Distribution for testing.
Method makeScript Produce instance of the PublishFTPMaster script.
Method setUpForScriptRun Mock up config to run the script on distro.
def prepareUbuntu(self):
Obtain a reference to Ubuntu, set up for testing.

A temporary publishing directory will be set up, and it will be cleaned up after the test.

def readReleaseFile(self, filename):
Read a Release file, return as a keyword/value dict.
def installRunPartsScript(self, distro, parts_dir, script_code):
Set up a run-parts script, and configure it to run.
ParametersdistroThe Distribution you're testing on. Must have a temporary directory as its publishing root directory.
parts_dirThe run-parts subdirectory to execute: publish-distro.d or finalize.d.
script_codeThe code to go into the script.
def test_script_runs_successfully(self):
Undocumented
def test_getConfigs_maps_distro_and_purpose_to_matching_config(self):
Undocumented
def test_getConfigs_maps_distros(self):
Undocumented
def test_getConfigs_skips_configless_distros(self):
Undocumented
def test_script_is_happy_with_no_publications(self):
Undocumented
def test_script_is_happy_with_no_pubconfigs(self):
Undocumented
def test_can_run_twice(self):
Undocumented
def test_publishes_package(self):
Undocumented
def test_getDirtySuites_returns_suite_with_pending_publication(self):
Undocumented
def test_getDirtySuites_returns_suites_with_pending_publications(self):
Undocumented
def test_getDirtySuites_ignores_suites_without_pending_publications(self):
Undocumented
def test_getDirtySuites_returns_suites_with_pending_binaries(self):
Undocumented
def test_getDirtySecuritySuites_returns_security_suites(self):
Undocumented
def test_getDirtySecuritySuites_ignores_non_security_suites(self):
Undocumented
def test_rsync_copies_files(self):
Undocumented
def test_rsync_cleans_up_obsolete_files(self):
Undocumented
def test_setUpDirs_creates_directory_structure(self):
Undocumented
def test_setUpDirs_does_not_mind_if_dist_directories_already_exist(self):
Undocumented
def test_publishDistroArchive_runs_parts(self):
Undocumented
def test_runPublishDistroParts_passes_parameters(self):
Undocumented
def test_clearEmptyDirs_cleans_up_empty_directories(self):
Undocumented
def test_clearEmptyDirs_does_not_clean_up_nonempty_directories(self):
Undocumented
def test_processOptions_finds_distribution(self):
Undocumented
def test_processOptions_for_all_derived_finds_derived_distros(self):
Undocumented
def test_processOptions_for_all_derived_ignores_nonderived_distros(self):
Undocumented
def test_processOptions_complains_about_unknown_distribution(self):
Undocumented
def test_runFinalizeParts_passes_parameters(self):
Undocumented
def test_publishSecurityUploads_skips_pub_if_no_security_updates(self):
Undocumented
def test_publishSecurityUploads_returns_true_when_publishes(self):
Undocumented
def test_publishDistroUploads_publishes_all_distro_archives(self):
Undocumented
def test_recoverWorkingDists_is_quiet_normally(self):
Undocumented
def test_recoverWorkingDists_recovers_working_directory(self):
Undocumented
def test_publishes_first_security_updates_then_all_updates(self):
Undocumented
def test_security_run_publishes_only_security_updates(self):
Undocumented
def test_security_run_empty_security_does_not_finalize(self):
Undocumented
def test_publishDistroUploads_processes_all_archives(self):
Undocumented
def test_runFinalizeParts_passes_archiveroots_correctly(self):
Undocumented
def test_updateStagedFilesForSuite_installs_changed(self):
Undocumented
def test_updateStagedFilesForSuite_installs_changed_dep11(self):
Undocumented
def test_updateStagedFilesForSuite_twice(self):
Undocumented
def test_updateStagedFiles_marks_suites_dirty(self):
Undocumented
def test_updateStagedFiles_considers_partner_archive(self):
Undocumented
def test_updateStagedFiles_skips_immutable_suites(self):
Undocumented
def test_publish_always_returns_true_for_primary(self):
Undocumented
def test_publish_returns_true_for_non_empty_security(self):
Undocumented
def test_publish_returns_false_for_empty_security(self):
Undocumented
def test_publish_reraises_exception(self):
Undocumented
def test_publish_obeys_keyboard_interrupt(self):
Undocumented
def test_publish_recovers_working_dists_on_exception(self):
Undocumented
def test_publish_recovers_working_dists_on_ctrl_C(self):
Undocumented
def test_publish_is_not_interrupted_by_cron_control(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2018-08-21 00:00:07.