From e11ce68ffa773c99ad963268856537bf6738b79f Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 10 Mar 2018 16:39:31 -0500 Subject: add test product group --- Bugzilla/Install.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm index 8e6d21d52..d004ac6ba 100644 --- a/Bugzilla/Install.pm +++ b/Bugzilla/Install.pm @@ -283,6 +283,12 @@ use constant DEFAULT_PRODUCT => { defaultmilestone => DEFAULT_MILESTONE, }; +use constant DEFAULT_PRODUCT_GROUP => { + name => 'test-product-security', + description => "Security Sensitive TestProduct Bug", + isbuggroup => 1, +}; + use constant DEFAULT_COMPONENT => { name => 'TestComponent', description => 'This is a test component in the test product database.' @@ -361,7 +367,8 @@ sub create_default_product { print get_text('install_default_product', { name => DEFAULT_PRODUCT->{name} }) . "\n"; - my $product = Bugzilla::Product->create(DEFAULT_PRODUCT); + my $group = Bugzilla::Group->create(DEFAULT_PRODUCT_GROUP); + my $product = Bugzilla::Product->create({ %{DEFAULT_PRODUCT()}, security_group_id => $group->id }); # Get the user who will be the owner of the Component. # We pick the admin with the lowest id, which is probably the -- cgit v1.2.3-24-g4f1b