l.s.t.t.TestSnapWebservice(TestCaseWithFactory) : class documentation

Part of lp.snappy.tests.test_snap View In Hierarchy

No class docstring
Method setUp Undocumented
Method getURL Undocumented
Method makeSnap Undocumented
Method getCollectionLinks Return a list of self_link attributes of entries in a collection.
Method test_new_bzr Undocumented
Method test_new_git Undocumented
Method test_new_private Undocumented
Method test_new_store_options Undocumented
Method test_duplicate Undocumented
Method test_not_owner Undocumented
Method test_cannot_make_snap_with_private_components_public Undocumented
Method test_cannot_set_private_components_of_public_snap Undocumented
Method test_cannot_set_git_path_for_bzr Undocumented
Method test_cannot_set_git_path_to_None Undocumented
Method test_set_git_path Undocumented
Method test_set_git_path_external Undocumented
Method test_getByName Undocumented
Method test_getByName_missing Undocumented
Method test_findByOwner Undocumented
Method test_findByURL Undocumented
Method test_findByURLPrefix Undocumented
Method test_findByURLPrefixes Undocumented
Method test_findByStoreName Undocumented
Method setProcessors Undocumented
Method assertProcessors Undocumented
Method test_setProcessors_admin An admin can add a new processor to the enabled restricted set.
Method test_setProcessors_non_owner_forbidden Only PPA admins and snap owners can call setProcessors.
Method test_setProcessors_owner The snap owner can enable/disable unrestricted processors.
Method test_setProcessors_owner_restricted_forbidden The snap owner cannot enable/disable restricted processors.
Method assertBeginsAuthorization Undocumented
Method test_beginAuthorization Undocumented
Method test_beginAuthorization_unauthorized Undocumented
Method test_completeAuthorization Undocumented
Method test_completeAuthorization_without_beginAuthorization Undocumented
Method test_completeAuthorization_unauthorized Undocumented
Method test_completeAuthorization_both_macaroons Undocumented
Method test_completeAuthorization_only_root_macaroon Undocumented
Method test_completeAuthorization_encrypted Undocumented
Method makeBuildableDistroArchSeries Undocumented
Method test_requestBuild Undocumented
Method test_requestBuild_rejects_repeats Undocumented
Method test_requestBuild_not_owner Undocumented
Method test_requestBuild_archive_disabled Undocumented
Method test_requestBuild_archive_private_owners_match Undocumented
Method test_requestBuild_archive_private_owners_mismatch Undocumented
Method test_requestBuilds Undocumented
Method test_requestBuilds_failure Undocumented
Method test_requestBuilds_not_owner Undocumented
Method test_requestAutoBuilds Undocumented
Method test_requestAutoBuilds_requires_auto_build_archive Undocumented
Method test_requestAutoBuilds_requires_auto_build_pocket Undocumented
Method test_requestAutoBuilds_requires_all_requests_to_succeed Undocumented
Method test_requestAutoBuilds_allows_already_pending Undocumented
Method test_getBuilds Undocumented
Method test_query_count Undocumented
Method test_builds_query_count 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.
def setUp(self):
Undocumented
def getURL(self, obj):
Undocumented
def makeSnap(self, owner=None, distroseries=None, branch=None, git_ref=None, processors=None, webservice=None, private=False, auto_build_archive=None, auto_build_pocket=None, **kwargs):
Undocumented
def getCollectionLinks(self, entry, member):
Return a list of self_link attributes of entries in a collection.
def test_new_bzr(self):
Undocumented
def test_new_git(self):
Undocumented
def test_new_private(self):
Undocumented
def test_new_store_options(self):
Undocumented
def test_duplicate(self):
Undocumented
def test_not_owner(self):
Undocumented
def test_cannot_make_snap_with_private_components_public(self):
Undocumented
def test_cannot_set_private_components_of_public_snap(self):
Undocumented
def test_cannot_set_git_path_for_bzr(self):
Undocumented
def test_cannot_set_git_path_to_None(self):
Undocumented
def test_set_git_path(self):
Undocumented
def test_set_git_path_external(self):
Undocumented
def test_getByName(self):
Undocumented
def test_getByName_missing(self):
Undocumented
def test_findByOwner(self):
Undocumented
def test_findByURL(self):
Undocumented
def test_findByURLPrefix(self):
Undocumented
def test_findByURLPrefixes(self):
Undocumented
def test_findByStoreName(self):
Undocumented
def setProcessors(self, user, snap, names):
Undocumented
def assertProcessors(self, user, snap, names):
Undocumented
def test_setProcessors_admin(self):
An admin can add a new processor to the enabled restricted set.
def test_setProcessors_non_owner_forbidden(self):
Only PPA admins and snap owners can call setProcessors.
def test_setProcessors_owner(self):
The snap owner can enable/disable unrestricted processors.
def test_setProcessors_owner_restricted_forbidden(self):
The snap owner cannot enable/disable restricted processors.
def assertBeginsAuthorization(self, snap, **kwargs):
Undocumented
def test_beginAuthorization(self):
Undocumented
def test_beginAuthorization_unauthorized(self):
Undocumented
def test_completeAuthorization(self):
Undocumented
def test_completeAuthorization_without_beginAuthorization(self):
Undocumented
def test_completeAuthorization_unauthorized(self):
Undocumented
def test_completeAuthorization_both_macaroons(self):
Undocumented
def test_completeAuthorization_only_root_macaroon(self):
Undocumented
def test_completeAuthorization_encrypted(self):
Undocumented
def makeBuildableDistroArchSeries(self, **kwargs):
Undocumented
def test_requestBuild(self):
Undocumented
def test_requestBuild_rejects_repeats(self):
Undocumented
def test_requestBuild_not_owner(self):
Undocumented
def test_requestBuild_archive_disabled(self):
Undocumented
def test_requestBuild_archive_private_owners_match(self):
Undocumented
def test_requestBuild_archive_private_owners_mismatch(self):
Undocumented
def test_requestBuilds(self):
Undocumented
def test_requestBuilds_failure(self):
Undocumented
def test_requestBuilds_not_owner(self):
Undocumented
def test_requestAutoBuilds(self):
Undocumented
def test_requestAutoBuilds_requires_auto_build_archive(self):
Undocumented
def test_requestAutoBuilds_requires_auto_build_pocket(self):
Undocumented
def test_requestAutoBuilds_requires_all_requests_to_succeed(self):
Undocumented
def test_requestAutoBuilds_allows_already_pending(self):
Undocumented
def test_getBuilds(self):
Undocumented
def test_query_count(self):
Undocumented
def test_builds_query_count(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.