Part of lp.testing.factory View In Hierarchy
All the factory methods should be callable with no parameters. When this is done, the returned object should have unique references for any other required objects.
Method | loginAsAnyone | Log in as an arbitrary person. |
Method | makeAdministrator | Undocumented |
Method | makeRegistryExpert | Undocumented |
Method | makeCommercialAdmin | Undocumented |
Method | makeCopyArchiveLocation | Create and return a new arbitrary location for copy packages. |
Method | makeAccount | Create and return a new Account. |
Method | makeOpenIdIdentifier | Attach an OpenIdIdentifier to an Account. |
Method | makeGPGKey | Give 'owner' a crappy GPG key for the purposes of testing. |
Method | makePerson | Create and return a new, arbitrary Person. |
Method | makePersonByName | Create a new person with the given first name. |
Method | makeEmail | Create a new email address for a person. |
Method | makeTeam | Create and return a new, arbitrary Team. |
Method | makePoll | Create a new poll which starts tomorrow and lasts for a week. |
Method | makeTranslationGroup | Create a new, arbitrary TranslationGroup . |
Method | makeTranslator | Create a new, arbitrary Translator . |
Method | makeMilestone | Undocumented |
Method | makeProcessor | Create a new processor. |
Method | makeProductRelease | Undocumented |
Method | makeProductReleaseFile | Undocumented |
Method | makeProduct | Create and return a new, arbitrary Product. |
Method | makeProductSeries | Create a new, arbitrary ProductSeries. |
Method | makeProject | Create and return a new, arbitrary ProjectGroup. |
Method | makeSprint | Make a sprint. |
Method | makeStackedOnBranchChain | Undocumented |
Method | makeBranch | Create and return a new, arbitrary Branch of the given type. |
Method | makePackagingLink | Undocumented |
Method | makePackageBranch | Make a package branch on an arbitrary package. |
Method | makePersonalBranch | Make a personal branch on an arbitrary person. |
Method | makeProductBranch | Make a product branch on an arbitrary product. |
Method | makeAnyBranch | Make a branch without caring about its container. |
Method | makeBranchTargetBranch | Create a branch in a BranchTarget. |
Method | makeRelatedBranchesForSourcePackage | Create some branches associated with a sourcepackage. |
Method | makeRelatedBranchesForProduct | Create some branches associated with a product. |
Method | makeRelatedBranches | Create some branches associated with a reference branch. |
Method | enableDefaultStackingForProduct | Give 'product' a default stacked-on branch. |
Method | enableDefaultStackingForPackage | Give 'package' a default stacked-on branch. |
Method | makeBranchMergeProposal | Create a proposal to merge based on anonymous branches. |
Method | makeBranchMergeProposalForGit | Create a proposal to merge based on anonymous branches. |
Method | makeBranchSubscription | Create a BranchSubscription. |
Method | makeDiff | Undocumented |
Method | makePreviewDiff | Undocumented |
Method | makeIncrementalDiff | Undocumented |
Method | makeBzrRevision | Undocumented |
Method | makeRevision | Create a single Revision . |
Method | makeRevisionsForBranch | Add count revisions to the revision history of branch . |
Method | makeBranchRevision | Undocumented |
Method | makeGitRepository | Create and return a new, arbitrary GitRepository. |
Method | makeGitSubscription | Create a GitSubscription. |
Method | makeGitRefs | Create and return a list of new, arbitrary GitRefs. |
Method | makeGitRefRemote | Create an object representing a ref in a remote repository. |
Method | makeGitRule | Create a Git repository access rule. |
Method | makeGitRuleGrant | Create a Git repository access grant. |
Method | makeBug | Create and return a new, arbitrary Bug. |
Method | makeBugTask | Create and return a bug task. |
Method | makeBugNomination | Create and return a BugNomination. |
Method | makeBugTracker | Make a new bug tracker. |
Method | makeBugTrackerWithWatches | Make a new bug tracker with some watches. |
Method | makeBugTrackerComponentGroup | Make a new bug tracker component group. |
Method | makeBugTrackerComponent | Make a new bug tracker component. |
Method | makeBugWatch | Make a new bug watch. |
Method | makeBugComment | Create and return a new bug comment. |
Method | makeBugAttachment | Create and return a new bug attachment. |
Method | makeSignedMessage | Return an ISignedMessage. |
Method | makeSpecification | Create and return a new, arbitrary Blueprint. |
Method | makeSpecificationWorkItem | Undocumented |
Method | makeQuestion | Create and return a new, arbitrary Question. |
Method | makeQuestionSubscription | Create a QuestionSubscription. |
Method | makeFAQ | Create and return a new, arbitrary FAQ. |
Method | makePackageCodeImport | Make a code import targetting a sourcepackage. |
Method | makeProductCodeImport | Make a code import targetting a product. |
Method | makeCodeImport | Create and return a new, arbitrary code import. |
Method | makeChangelog | Create and return a LFA of a valid Debian-style changelog. |
Method | makeCodeImportEvent | Create and return a CodeImportEvent. |
Method | makeCodeImportJob | Create and return a new code import job for the given import. |
Method | makeCodeImportMachine | Return a new CodeImportMachine. |
Method | makeCodeImportResult | Create and return a new CodeImportResult. |
Method | makeCodeReviewComment | Undocumented |
Method | makeCodeReviewVoteReference | Undocumented |
Method | makeMessage | Undocumented |
Method | makeLanguage | Makes a language given the language_code and name. |
Method | makeLanguagePack | Create a language pack. |
Method | makeLibraryFileAlias | Make a library file, and return the alias. |
Method | makeDistribution | Make a new distribution. |
Method | makeDistroSeries | Make a new DistroSeries . |
Method | makeUbuntuDistroSeries | Short cut to use the celebrity 'ubuntu' as the distribution. |
Method | makeDistroSeriesDifference | Create a new distro series source package difference. |
Method | makeDistroSeriesDifferenceComment | Create a new distro series difference comment. |
Method | makeDistroSeriesParent | Undocumented |
Method | makeDistroArchSeries | Create a new distroarchseries |
Method | makeComponent | Make a new IComponent . |
Method | makeComponentSelection | Make a new ComponentSelection . |
Method | makeArchive | Create and return a new arbitrary archive. |
Method | makeArchiveAdmin | Make an Archive Admin. |
Method | makeArchiveFile | Undocumented |
Method | makeBuilder | Make a new builder for i386 virtualized builds by default. |
Method | makeRecipeText | Undocumented |
Method | makeRecipe | Make a builder recipe that references branches . |
Method | makeSourcePackageRecipeDistroseries | Return a supported Distroseries to use with Source Package Recipes. |
Method | makeSourcePackageRecipe | Make a SourcePackageRecipe . |
Method | makeSourcePackageRecipeBuild | Make a new SourcePackageRecipeBuild. |
Method | makeTranslationTemplatesBuild | Make a new TranslationTemplatesBuild . |
Method | makePOTemplate | Make a new translation template. |
Method | makePOTemplateAndPOFiles | Create a POTemplate and associated POFiles. |
Method | makePOFile | Make a new translation file. |
Method | makePOTMsgSet | Make a new POTMsgSet in the given template. |
Method | makePOFileAndPOTMsgSet | Make a POFile with a POTMsgSet . |
Method | makeTranslationsDict | Make sure translations are stored in a dict, e.g. {0: "foo"}. |
Method | makeSuggestion | Make a new suggested TranslationMessage in the given PO file. |
Method | makeCurrentTranslationMessage | Create a TranslationMessage and make it current. |
Method | makeDivergedTranslationMessage | Create a diverged, current TranslationMessage . |
Method | makeTranslationImportQueueEntry | Create a TranslationImportQueueEntry . |
Method | makeMailingList | Create a mailing list for the team. |
Method | makeTeamAndMailingList | Make a new active mailing list for the named team. |
Method | makeTeamWithMailingListSubscribers | Create a team, mailing list, and subscribers. |
Method | makeMirrorProbeRecord | Create a probe record for a mirror of a distribution. |
Method | makeMirror | Create a mirror for the distribution. |
Method | makeUniqueRFC822MsgId | Make a unique RFC 822 message id. |
Method | makeSourcePackageName | Make an ISourcePackageName . |
Method | getOrMakeSourcePackageName | Get an existing`ISourcePackageName` or make a new one. |
Method | makeSourcePackage | Make an ISourcePackage . |
Method | getAnySourcePackageUrgency | Undocumented |
Method | makePackageUpload | Undocumented |
Method | makeSourcePackageUpload | Make a PackageUpload with a PackageUploadSource attached. |
Method | makeBuildPackageUpload | Make a PackageUpload with a PackageUploadBuild attached. |
Method | makeCustomPackageUpload | Make a PackageUpload with a PackageUploadCustom attached. |
Method | makeCopyJobPackageUpload | Make a PackageUpload with a PackageCopyJob attached. |
Method | makeSourcePackageRelease | Make a SourcePackageRelease . |
Method | makeSourcePackageReleaseFile | Undocumented |
Method | makeBinaryPackageBuild | Create a BinaryPackageBuild. |
Method | makeSourcePackagePublishingHistory | Make a SourcePackagePublishingHistory . |
Method | makeBinaryPackagePublishingHistory | Make a BinaryPackagePublishingHistory . |
Method | makeSPPHForBPPH | Produce a SourcePackagePublishingHistory to match bpph . |
Method | makeBinaryPackageName | Make an IBinaryPackageName . |
Method | getOrMakeBinaryPackageName | Get an existing IBinaryPackageName or make a new one. |
Method | makeBinaryPackageFile | Undocumented |
Method | makeBinaryPackageRelease | Make a BinaryPackageRelease . |
Method | makeSection | Make a Section . |
Method | makePackageset | Make an IPackageset . |
Method | makeDistroArchSeriesFilter | Make a new DistroArchSeriesFilter . |
Method | getAnyPocket | Undocumented |
Method | makeSuiteSourcePackage | Undocumented |
Method | makeDistributionSourcePackage | Undocumented |
Method | makeDSPCache | Undocumented |
Method | makeEmailMessage | Make an email message with possible attachments. |
Method | makeHWSubmission | Create a new HWSubmission. |
Method | makeHWSubmissionDevice | Create a new HWSubmissionDevice. |
Method | makeSSHKeyText | Create new SSH public key text. |
Method | makeSSHKey | Create a new SSHKey. |
Method | makeBlob | Create a new TemporaryFileStorage BLOB. |
Method | makeProcessedApportBlob | Create a processed ApportJob with the specified metadata dict. |
Method | makeLaunchpadService | Undocumented |
Method | makePackageDiff | Create a new PackageDiff . |
Method | makeOAuthConsumer | Undocumented |
Method | makeOAuthRequestToken | Create a (possibly reviewed) OAuth request token. |
Method | makeOAuthAccessToken | Create an OAuth access token. |
Method | makeCVE | Create a new CVE record. |
Method | makePublisherConfig | Create a new PublisherConfig record. |
Method | makePlainPackageCopyJob | Create a new PlainPackageCopyJob . |
Method | makeAccessPolicy | Undocumented |
Method | makeAccessArtifact | Undocumented |
Method | makeAccessPolicyArtifact | Undocumented |
Method | makeAccessArtifactGrant | Undocumented |
Method | makeAccessPolicyGrant | Undocumented |
Method | makeFakeFileUpload | Return a zope.publisher.browser.FileUpload like object. |
Method | makeCommercialSubscription | Create a commercial subscription for the given product. |
Method | grantCommercialSubscription | Give 'person' a commercial subscription. |
Method | makeLiveFS | Make a new LiveFS. |
Method | makeLiveFSBuild | Make a new LiveFSBuild. |
Method | makeLiveFSFile | Undocumented |
Method | makeWebhook | Undocumented |
Method | makeSnap | Make a new Snap. |
Method | makeSnapBuildRequest | Make a new SnapBuildRequest. |
Method | makeSnapBuild | Make a new SnapBuild. |
Method | makeSnapFile | Undocumented |
Method | makeSnappySeries | Make a new SnappySeries. |
Method | makeSnapBase | Make a new SnapBase. |
Inherited from ObjectFactory:
Method | getUniqueEmailAddress | Undocumented |
Method | getUniqueInteger | Return an integer unique to this factory instance. |
Method | getUniqueHexString | Return a unique hexadecimal string. |
Method | getUniqueString | Return a string unique to this factory instance. |
Method | getUniqueUnicode | Undocumented |
Method | getUniqueURL | Return a URL unique to this run of the test case. |
Method | getUniqueDate | Return a unique date since January 1 2009. |
Method | makeCodeImportSourceDetails | Undocumented |
If you want to log in as a celebrity, including admins, see
lp.testing.login_celebrity
.
Parameters | The email address for the new person. | |
name | The name for the new person. | |
email_address_status | If specified, the status of the email address is set to the email_address_status. | |
displayname | The display name to use for the person. | |
hide_email_addresses | Whether or not to hide the person's email address(es) from other users. | |
time_zone | This person's time zone, as a string. | |
latitude | This person's latitude, as a float. | |
longitude | This person's longitude, as a float. | |
selfgenerated_bugnotifications | Receive own bugmail. |
The person will be given two email addresses, with the 'long form' (e.g. anne.person@example.com) as the preferred address. Return the new person object.
The person will also have their mailing list auto-subscription policy set to 'NEVER' unless 'use_default_autosubscribe_policy' is set to True. (This requires the Launchpad.Edit permission). This is useful for testing, where we often want precise control over when a person gets subscribed to a mailing list.
Parameters | first_name | First name of the person, capitalized. (type: string) |
set_preferred_email | Flag specifying whether <name>.person@example.com should be set as the user's preferred email address. (type: bool) | |
use_default_autosubscribe_policy | Flag specifying whether
the person's mailing_list_auto_subscribe_policy should be set. (type: bool) | |
Returns | The newly created person. (type: IPerson ) |
Parameters | address | The email address to create. (type: string) |
person | The person to assign the email address to. (type: IPerson ) | |
email_status | The default status of the email address,
if given. If not given, EmailAddressStatus.VALIDATED
will be used. (type: EmailAddressStatus ) | |
Returns | The newly created email address. (type: IEmailAddress ) |
Parameters | owner | The person or person name to use as the team's owner.
If not given, a person will be auto-generated. (type: IPerson or string) |
displayname | The team's display name. If not given we'll use the auto-generated name. | |
description | Team team's description. | |
description string | (type: ) | |
The email address to use as the team's contact address. (type: string) | ||
icon | The team's icon. | |
logo | The team's logo. | |
membership_policy | The membership policy of the team. (type: TeamMembershipPolicy ) | |
visibility | The team's visibility. If it's None, the default
(public) will be used. (type: PersonVisibility ) | |
members | People or teams to be added to the new team (type: An iterable of objects implementing IPerson) | |
Returns | The new team (type: ITeam ) |
TranslationGroup
.Translator
.Parameters | name | Name of the processor |
title | Optional title | |
description | Optional description | |
restricted | If the processor is restricted. | |
Returns | A IProcessor |
Parameters | branch | If supplied, the branch to set as ProductSeries.branch. |
date_created | If supplied, the date the series is created. | |
name | If supplied, the name of the series. | |
owner | If supplied, the owner of the series. | |
product | If supplied, the series is created for this product. Otherwise, a new product is created. | |
summary | If supplied, the product series summary. |
Any parameters for IBranchNamespace.createBranch
can be specified to
override the default ones.
See makeBranch
for more information on arguments.
You can pass in either sourcepackage
or one or both of
distroseries
and sourcepackagename
, but not combinations or all of
them.
See makeBranch
for more information on arguments.
See makeBranch
for more information on arguments.
See makeBranch
for more information on arguments.
Create some branches associated with a reference branch. The other branches are: - series branches: a set of branches associated with product series of the same product as the reference branch. - package branches: a set of branches associated with packagesource entities of the same product as the reference branch or the same sourcepackage depending on what type of branch it is. If no reference branch is supplied, create one. Returns: a tuple consisting of (reference_branch, related_series_branches, related_package_branches)
Parameters | product | The product to give a default stacked-on branch to. |
branch | The branch that should be the default stacked-on branch. If not supplied, a fresh branch will be created. |
Parameters | package | The package to give a default stacked-on branch to. |
branch | The branch that should be the default stacked-on branch. |
Revision
.count
revisions to the revision history of branch
.Parameters | branch | The branch to add the revisions to. |
count | The number of revisions to add. | |
author | A string for the author name. | |
date_generator | A time_counter instance, defaults to starting
from 1-Jan-2007 if not set. |
Any parameters for IGitNamespace.createRepository
can be specified
to override the default ones.
The bug returned uses default values where possible. See
IBugSet.new
for more information.
Parameters | target | The initial bug target. If not specified, falls back to the milestone target, then the series target, then a new product. |
owner | The reporter of the bug. If not set, one is created. | |
bug_watch_url | If specified, create a bug watch pointing to this URL. | |
milestone | If set, the milestone.target must match the target parameter's pillar. | |
series | If set, the series's pillar must match the target parameter's. | |
tags | If set, the tags to be added with the bug. |
If the bug is already targeted to the given target, the existing bug task is returned.
Private (and soon all) bugs cannot affect multiple projects so we ensure that if a bug has not been specified and one is created, it is for the same pillar as that of the specified target.
Parameters | bug | The IBug the bug tasks should be part of. If None,
one will be created. |
target | The IBugTarget , to which the bug will be
targeted to. |
Will create a non-series task if it does not already exist.
Parameters | bug | The IBug the nomination should be for. If None,
one will be created. |
target | The IProductSeries , IDistroSeries or
ISourcePackage to nominate for. |
Parameters | bug | An IBug or a bug ID or name, or None, in which
case a new bug is created. |
owner | An IPerson , or None, in which case a new
person is created. | |
subject | An IMessage or a string, or None, in which
case a new message will be generated. | |
body | An IMessage or a string, or None, in which
case a new message will be generated. | |
bug_watch | An IBugWatch , which will be used to set the
new comment's bugwatch attribute. | |
Returns | An IBugMessage . |
Parameters | bug | An IBug or a bug ID or name, or None, in which
case a new bug is created. |
owner | An IPerson , or None, in which case a new
person is created. | |
data | A file-like object or a string, or None, in which case a unique string will be used. | |
comment | An IMessage or a string, or None, in which
case a new message will be generated. | |
filename | A string, or None, in which case a unique string will be used. | |
content_type | The MIME-type of this file. | |
description | The description of the attachment. | |
is_patch | If true, this attachment is a patch. | |
Returns | An IBugAttachment . |
Parameters | msgid | An rfc2822 message-id. |
body | The body of the message. | |
attachment_contents | The contents of an attachment. | |
force_transfer_encoding | If True, ensure a transfer encoding is used. | |
email_address | The address the mail is from. | |
signing_context | A GPGSigningContext instance containing the gpg key to sign with. If None, the message is unsigned. The context also contains the password and gpg signing mode. |
Parameters | product | The product to make the blueprint on. If one is not specified, an arbitrary product is created. |
Parameters | target | The IQuestionTarget to make the question on. If one is not specified, an arbitrary product is created. |
title | The question title. If one is not provided, an arbitrary title is created. | |
owner | The owner of the question. If one is not provided, the question target owner will be used. | |
description | The question description. |
Parameters | target | The IFAQTarget to make the FAQ on. If one is not specified, an arbitrary product is created. |
title | The FAQ title. If one is not provided, an arbitrary title is created. |
The type of code import will be inferred from the source details passed in, but defaults to a Subversion->Bazaar import from an arbitrary unique URL. (If the target type is specified as Git, then the source type instead defaults to Git.)
Note that the changelog returned is unicode - this is deliberate so that code is forced to cope with it as utf-8 changelogs are normal.
This implies setting the import's review_status to REVIEWED.
The machine will be in the OFFLINE state.
DistroSeries
.ComponentSelection
.Parameters | distroseries | Optional DistroSeries . If none is given,
one will be created. |
component | Optional Component or a component name. If
none is given, one will be created. |
Parameters | distribution | Supply IDistribution, defaults to a new one made with makeDistribution() for non-PPAs and ubuntu for PPAs. |
owner | Supply IPerson, defaults to a new one made with makePerson(). | |
name | Name of the archive, defaults to a random string. | |
purpose | Supply ArchivePurpose, defaults to PPA. | |
enabled | Whether the archive is enabled. | |
private | Whether the archive is created private. | |
virtualized | Whether the archive is virtualized. | |
description | A description of the archive. | |
suppress_subscription_notifications | Whether to suppress subscription notifications, defaults to False. Only useful for private archives. |
Make and return an IPerson
who has an ArchivePermission
to admin
the distroseries queue.
Parameters | archive | The IArchive , will be auto-created if None. |
Note: the builder returned will not be able to actually build - we currently have a build slave setup for 'bob' only in the test environment.
branches
.
If no branches are passed, return a recipe text that references an arbitrary branch.
Ew. This uses sampledata currently, which is the ONLY reason this method exists: it gives us a migration path away from sampledata.
SourcePackageRecipe
.TranslationTemplatesBuild
.Parameters | branch | The branch that the build should be for. If none is given, one will be created. |
Create a POTemplate for the given distroseries/sourcepackagename or productseries and create a POFile for each language. Returns the template.
POTMsgSet
in the given template.POFile
with a POTMsgSet
.If translations is already dict, it is returned unchanged. If translations is a sequence, it is enumerated into a dict. If translations is None, an arbitrary single translation is created.
TranslationMessage
in the given PO file.TranslationMessage
and make it current.
By default the message will only be current on the side (Ubuntu
or upstream) that pofile
is on.
Be careful: if the message is already translated, calling this method may violate database unique constraints.
Parameters | pofile | POFile to put translation in; if omitted, one
will be created. |
potmsgset | POTMsgSet to translate; if omitted, one will
be created (with sequence number 1). | |
translator | Person who created the translation. If
omitted, one will be created. | |
reviewer | Person who reviewed the translation. If
omitted, one will be created. | |
translations | Strings to translate the POTMsgSet
to. Can be either a list, or a dict mapping plural form
numbers to the forms' respective translations.
If omitted, will translate to a single random string. | |
diverged | Create a diverged message? | |
current_other | Should the message also be current on the
other translation side? (Cannot be combined with diverged ). | |
date_created | Force a specific creation date instead of 'now'. | |
date_reviewed | Force a specific review date instead of 'now'. | |
language | Language to use for the POFile | |
side | The TranslationSide this translation should be for. | |
potemplate | If provided, the POTemplate to use when creating the POFile. |
TranslationMessage
.TranslationImportQueueEntry
.Parameters | team_name | The new team's name. (type: string) |
owner_name | The name of the team's owner. | |
owner | (type: string) | |
visibility | The team's visibility. If it's None, the default
(public) will be used. (type: PersonVisibility ) | |
membership_policy | The membership policy of the team. (type: TeamMembershipPolicy ) | |
Returns | The new team and mailing list. (type: (ITeam , IMailingList )) |
Parameters | team_name | The name of the team to create. |
super_team | Make the team a member of the super_team. | |
auto_subscribe | Automatically subscribe members to the mailing list. | |
Returns | A tuple of team and the member user. |
The created message id is guaranteed not to exist in the
Message
table already.
This method encapsulates getOrCreateByName so that tests can be kept free of the getUtility(ISourcePackageNameSet) noise.
ISourcePackage
.Parameters | publish | if true, create a corresponding SourcePackagePublishingHistory. |
PackageUpload
with a PackageUploadSource
attached.PackageUpload
with a PackageUploadBuild
attached.PackageUpload
with a PackageUploadCustom
attached.PackageUpload
with a PackageCopyJob
attached.SourcePackageRelease
.Create a BinaryPackageBuild. If archive is not supplied, the source_package_release is used to determine archive. :param source_package_release: The SourcePackageRelease this binary build uses as its source. :param sourcepackagename: when source_package_release is None, the sourcepackagename from which the build will come. :param distroarchseries: The DistroArchSeries to use. Defaults to the one from the source_package_release, or a new one if not provided. :param archive: The Archive to use. Defaults to the one from the source_package_release, or the distro arch series main archive otherwise. :param builder: An optional builder to assign. :param status: The BuildStatus for the build.
Make a `SourcePackagePublishingHistory`. :param sourcepackagerelease: The source package release to publish If not provided, a new one will be created. :param distroseries: The distro series in which to publish. Default to the source package release one, or a new one will be created when not provided. :param archive: The archive to publish into. Default to the initial source package release upload archive, or to the distro series main archive. :param pocket: The pocket to publish into. Can be specified as a string. Defaults to the BACKPORTS pocket. :param status: The publication status. Defaults to PENDING. If set to PUBLISHED, the publisheddate will be set to now. :param dateremoved: The removal date. :param date_uploaded: The upload date. Defaults to now. :param scheduleddeletiondate: The date where the publication is scheduled to be removed. :param ancestor: The publication ancestor parameter. :param creator: The publication creator. :param **kwargs: All other parameters are passed through to the makeSourcePackageRelease call if needed.
BinaryPackagePublishingHistory
.SourcePackagePublishingHistory
to match bpph
.Parameters | bpph | A BinaryPackagePublishingHistory . |
Returns | A SourcePackagePublishingHistory stemming from the same
source package as bpph , published into the same distroseries,
pocket, and archive. |
IBinaryPackageName
or make a new one.
This method encapsulates getOrCreateByName so that tests can be kept free of the getUtility(IBinaryPackageNameSet) noise.
BinaryPackageRelease
.IPackageset
.DistroArchSeriesFilter
.Parameters | attachments | Should be an interable of tuples containing (filename, content-type, payload) |
Parameters | key_type | If specified, the type of SSH key to generate, as a public key algorithm name (https://www.iana.org/assignments/ssh-parameters/). Must be a member of SSH_TEXT_TO_KEY_TYPE. If unspecified, "ssh-rsa" is used. |
Parameters | person | If specified, the person to attach the key to. If unspecified, a person is created. |
key_type | If specified, the type of SSH key to generate, as a public key algorithm name (https://www.iana.org/assignments/ssh-parameters/). Must be a member of SSH_TEXT_TO_KEY_TYPE. If unspecified, "ssh-rsa" is used. |
It doesn't actually run the job. It fakes it, and uses a fake librarian file so as to work without the librarian.
PackageDiff
.PublisherConfig
record.PlainPackageCopyJob
.This can be useful while testing multipart form submission.