l.c.x.t.t.TestGitAPIMixin : class documentation

Part of lp.code.xmlrpc.tests.test_git View In Hierarchy

Known subclasses: lp.code.xmlrpc.tests.test_git.TestGitAPI, lp.code.xmlrpc.tests.test_git.TestGitAPISecurity

Helper methods for IGitAPI tests, and security-relevant tests.
Method setUp Undocumented
Method assertFault Assert that a call raises the expected fault.
Method assertGitRepositoryNotFound Assert that the given path cannot be translated.
Method assertPermissionDenied Assert that looking at the given path returns PermissionDenied.
Method assertUnauthorized Assert that looking at the given path returns Unauthorized.
Method assertNotFound Assert that looking at the given path returns NotFound.
Method assertInvalidSourcePackageName Assert that looking at the given path returns
Method assertInvalidBranchName Assert that looking at the given path returns InvalidBranchName.
Method assertOopsOccurred Assert that looking at the given path OOPSes.
Method assertTranslates Undocumented
Method assertCreates Undocumented
Method assertCreatesFromClone Undocumented
Method assertHasRefPermissions Undocumented
Method test_translatePath_private_repository Undocumented
Method test_translatePath_cannot_see_private_repository Undocumented
Method test_translatePath_anonymous_cannot_see_private_repository Undocumented
Method test_translatePath_team_unowned Undocumented
Method test_translatePath_imported Undocumented
Method test_translatePath_create_personal_team_denied Undocumented
Method test_translatePath_create_other_user Undocumented
Method test_translatePath_create_project_not_owner Undocumented
Method test_translatePath_grant_to_other Undocumented
Method test_translatePath_grant_but_no_access Undocumented
Method test_translatePath_grant_to_other_private Undocumented
Method test_checkRefPermissions_scenario_one_user_a Undocumented
Method test_checkRefPermissions_scenario_one_user_b Undocumented
Method test_checkRefPermissions_scenario_one_user_c Undocumented
Method test_checkRefPermissions_scenario_one_user_d Undocumented
Method test_checkRefPermissions_scenario_two_user_a Undocumented
Method test_checkRefPermissions_scenario_two_user_b Undocumented
Method test_checkRefPermissions_scenario_two_user_c Undocumented
Method test_checkRefPermissions_bytes Undocumented
Method test_checkRefPermissions_nonexistent_repository Undocumented
Method _make_scenario_one_repository Undocumented
Method _make_scenario_two_repository Undocumented
def setUp(self):
Undocumented
def assertFault(self, expected_fault, func, *args, **kwargs):
Assert that a call raises the expected fault.
def assertGitRepositoryNotFound(self, requester, path, permission='read', can_authenticate=False, macaroon_raw=None):
Assert that the given path cannot be translated.
def assertPermissionDenied(self, requester, path, message='Permission denied.', permission='read', can_authenticate=False, macaroon_raw=None):
Assert that looking at the given path returns PermissionDenied.
def assertUnauthorized(self, requester, path, message='Authorisation required.', permission='read', can_authenticate=False, macaroon_raw=None):
Assert that looking at the given path returns Unauthorized.
def assertNotFound(self, requester, path, message, permission='read', can_authenticate=False):
Assert that looking at the given path returns NotFound.
def assertInvalidSourcePackageName(self, requester, path, name, permission='read', can_authenticate=False):
Assert that looking at the given path returns InvalidSourcePackageName.
def assertInvalidBranchName(self, requester, path, message, permission='read', can_authenticate=False):
Assert that looking at the given path returns InvalidBranchName.
def assertOopsOccurred(self, requester, path, permission='read', can_authenticate=False):
Assert that looking at the given path OOPSes.
def assertTranslates(self, requester, path, repository, writable, permission='read', can_authenticate=False, macaroon_raw=None, trailing='', private=False):
Undocumented
def assertCreates(self, requester, path, can_authenticate=False, private=False):
Undocumented
def assertCreatesFromClone(self, requester, path, cloned_from, can_authenticate=False):
Undocumented
def assertHasRefPermissions(self, requester, repository, ref_paths, permissions, macaroon_raw=None):
Undocumented
def test_translatePath_private_repository(self):
Undocumented
def test_translatePath_cannot_see_private_repository(self):
Undocumented
def test_translatePath_anonymous_cannot_see_private_repository(self):
Undocumented
def test_translatePath_team_unowned(self):
Undocumented
def test_translatePath_imported(self):
Undocumented
def test_translatePath_create_personal_team_denied(self):
Undocumented
def test_translatePath_create_other_user(self):
Undocumented
def test_translatePath_create_project_not_owner(self):
Undocumented
def test_translatePath_grant_to_other(self):
Undocumented
def test_translatePath_grant_but_no_access(self):
Undocumented
def test_translatePath_grant_to_other_private(self):
Undocumented
def _make_scenario_one_repository(self):
Undocumented
def test_checkRefPermissions_scenario_one_user_a(self):
Undocumented
def test_checkRefPermissions_scenario_one_user_b(self):
Undocumented
def test_checkRefPermissions_scenario_one_user_c(self):
Undocumented
def test_checkRefPermissions_scenario_one_user_d(self):
Undocumented
def _make_scenario_two_repository(self):
Undocumented
def test_checkRefPermissions_scenario_two_user_a(self):
Undocumented
def test_checkRefPermissions_scenario_two_user_b(self):
Undocumented
def test_checkRefPermissions_scenario_two_user_c(self):
Undocumented
def test_checkRefPermissions_bytes(self):
Undocumented
def test_checkRefPermissions_nonexistent_repository(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-10-22 00:00:06.