~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/security-teams.txt

[testfix][r=allenap][bug=871596][no-qa] Use pgbouncer 0.0.7 and storm
 0.19.0.99-lpwithnodatetime-r402.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
    >>> subscriber_names(bug)
203
203
    [u'name12', u'name16']
204
204
 
 
205
We are moving away from allowing private bugs to affect multiple projects.
 
206
This is required still for some teams until they update their tools and
 
207
processes. So we need to use a feature flag to perform the next tests.
 
208
 
 
209
    >>> from lp.services.features.testing import FeatureFixture
 
210
    >>> feature_flag = {
 
211
    ...     'disclosure.allow_multipillar_private_bugs.enabled': 'on'}
 
212
    >>> privacy_flags = FeatureFixture(feature_flag)
 
213
    >>> privacy_flags.setUp()
 
214
 
205
215
    >>> bug_in_evolution = bugtaskset.createTask(bug, foobar, evolution)
206
 
 
207
216
    >>> subscriber_names(bug)
208
217
    [u'name12', u'name16']
209
218
 
286
295
We currently use a feature flag to control who is subscribed when a bug is
287
296
made security related.
288
297
 
289
 
    >>> from lp.services.features.testing import FeatureFixture
290
298
    >>> feature_flag = {
291
299
    ...     'disclosure.enhanced_private_bug_subscriptions.enabled': 'on'}
292
 
    >>> flags = FeatureFixture(feature_flag)
293
 
    >>> flags.setUp()
 
300
    >>> security_flags = FeatureFixture(feature_flag)
 
301
    >>> security_flags.setUp()
294
302
 
295
303
    >>> from zope.event import notify
296
304
    >>> from lazr.lifecycle.event import ObjectModifiedEvent
318
326
    Distribution Security Contact
319
327
    Product Security Contact
320
328
 
321
 
Clean up the feature flag.
 
329
Clean up the feature flags.
322
330
 
323
 
    >>> flags.cleanUp()
 
331
    >>> security_flags.cleanUp()
 
332
    >>> privacy_flags.cleanUp()
324
333
 
325
334
And once more without the feature flag.
326
335