~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/stories/bug-also-affects/xx-bug-also-affects.txt

[r=wgrant][ui=huwshimi][bug=878605] We don't want to support
 multi-tenanted private bugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
    ...>pmount (Debian)</a>...
185
185
    ...
186
186
 
 
187
We cannot allow private bugs to affect more than one pillar.
 
188
 
 
189
    >>> from zope.component import getUtility
 
190
    >>> from canonical.launchpad.webapp import canonical_url
 
191
    >>> from canonical.launchpad.webapp.interfaces import ILaunchBag
 
192
    >>> from lp.bugs.interfaces.bug import CreateBugParams
 
193
    >>> from lp.registry.interfaces.product import IProductSet
 
194
 
 
195
    >>> def current_user():
 
196
    ...     return getUtility(ILaunchBag).user
 
197
 
 
198
    >>> login("foo.bar@canonical.com")
 
199
    >>> productset = getUtility(IProductSet)
 
200
    >>> firefox = productset.get(4)
 
201
    >>> params = CreateBugParams(
 
202
    ...     title="a test private bug",
 
203
    ...     comment="a description of the bug",
 
204
    ...     owner=current_user())
 
205
    >>> private_bug = firefox.createBug(params)
 
206
    >>> private_bug.setPrivate(True, current_user())
 
207
    True
 
208
    >>> logout()
 
209
 
 
210
    >>> browser.open(canonical_url(private_bug, rootsite='bugs'))
 
211
    >>> browser.getLink(url='+distrotask').click()
 
212
    >>> browser.getControl(name='field.distribution').value = ['debian']
 
213
    >>> browser.getControl('Continue').click()
 
214
    >>> browser.url
 
215
    'http://bugs.launchpad.dev/firefox/+bug/16/+distrotask'
 
216
    >>> print get_feedback_messages(browser.contents)
 
217
    [u'There is 1 error.',
 
218
     u'This private bug already affects Mozilla Firefox.
 
219
       Private bugs cannot affect multiple projects.']
 
220
 
 
221
 
187
222
= Forwarding bugs upstream =
188
223
 
189
224
The +choose-affected-product page is, in fact, a wizard-like page which