diff options
author | David Lawrence <dkl@mozilla.com> | 2015-07-17 03:00:39 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-07-17 03:03:29 +0200 |
commit | dc87344e0798f4d2826a5b790897ce7f6682437b (patch) | |
tree | 6cdd89eea6194adeb2c93dde27a409ed94b0f6e4 /qa/config | |
parent | 22d71ed7fe2599a9ee269bafe43df8094d34755d (diff) | |
download | bugzilla-dc87344e0798f4d2826a5b790897ce7f6682437b.tar.gz bugzilla-dc87344e0798f4d2826a5b790897ce7f6682437b.tar.xz |
Bug 1183524 - api bustage caused by bug 1173442
Diffstat (limited to 'qa/config')
-rw-r--r-- | qa/config/generate_test_data.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/config/generate_test_data.pl b/qa/config/generate_test_data.pl index d0281d181..4891d30bc 100644 --- a/qa/config/generate_test_data.pl +++ b/qa/config/generate_test_data.pl @@ -350,6 +350,7 @@ foreach my $class (@classifications) { undef, ( $class->{name}, $class->{description} )); } } + ########################################################################## # Create Products ########################################################################## @@ -562,6 +563,14 @@ my $canconfirm = Bugzilla::Group->new({ name => 'canconfirm' }); $dbh->do('INSERT INTO group_group_map VALUES (?, ?, 0)', undef, $editbugs->id, $canconfirm->id); +# BMO: Update default security group settings for new products +my $default_security_group = Bugzilla::Group->new({ name => 'core-security' }); +$default_security_group ||= Bugzilla::Group->new({ name => 'Master' }); +foreach my $product (@products) { + $dbh->do('UPDATE products SET security_group_id = ? WHERE name = ?', + undef, $default_security_group->id, $product->{product_name}); +} + ########################################################################## # Add Users to Groups ########################################################################## |