diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-03-10 22:39:31 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-03-10 22:39:31 +0100 |
commit | e11ce68ffa773c99ad963268856537bf6738b79f (patch) | |
tree | db0cee8f37c16d4be3fbb67787ba9917652c2e12 | |
parent | 1451b7e05c1bc51fb193d1c828e493242286e14c (diff) | |
download | bugzilla-e11ce68ffa773c99ad963268856537bf6738b79f.tar.gz bugzilla-e11ce68ffa773c99ad963268856537bf6738b79f.tar.xz |
add test product group
-rw-r--r-- | Bugzilla/Install.pm | 9 |
1 files changed, 8 insertions, 1 deletions
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 |