Merge lp:~jtv/launchpad/bug-536769 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jelmer Vernooij | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~jtv/launchpad/bug-536769 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
59 lines (+12/-3) 2 files modified
database/schema/security.cfg (+2/-1) lib/lp/translations/tests/test_translationtemplatesbuildbehavior.py (+10/-2) |
||||
To merge this branch: | bzr merge lp:~jtv/launchpad/bug-536769 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | code | Approve | |
Jelmer Vernooij (community) | code mentat | Approve | |
Review via email: mp+21068@code.launchpad.net |
Commit message
Give buildd manager access to BranchJob.
Description of the change
= Bug 536769 =
The buildd master needs database access to TranslationTemp
This means giving SELECT and DELETE privileges on BranchJob to fiera.
An update to the TranslationTemp
To test:
{{{
./bin/test -vv -t test_translatio
}}}
To Q/A: go through the instructions at https:/
Note that this is not a schema change as such, and so does not need to go into db-devel.
No lint.
Jeroen
One minor comment:
19 === modified file 'lib/lp/ translations/ tests/test_ translationtemp latesbuildbehav ior.py' translations/ tests/test_ translationtemp latesbuildbehav ior.py 2010-03-06 04:57:40 +0000 translations/ tests/test_ translationtemp latesbuildbehav ior.py 2010-03-10 18:05:30 +0000 TemplatesBuildB ehavior( TestCaseWithFac tory): platesBuildBeha vior`." "" eLayer ssLayer ster(self) : commit( ) commit( ) really necessary here, would a Store.flush not work ?
20 --- lib/lp/
21 +++ lib/lp/
38 @@ -81,7 +83,12 @@
39 class TestTranslation
40 """Test `TranslationTem
41
42 - layer = ZopelessDatabas
43 + layer = LaunchpadZopele
44 +
45 + def _becomeBuilddMa
46 + """Log into the database as the buildd master."""
47 + transaction.
^^^ Is the transaction.
48 + self.layer. switchDbUser( config. builddmaster. dbuser) self): latesBuildBehav ior.
49
50 def _makeBehavior(
51 """Create a TranslationTemp