Skip to content

Commit 01732ce

Browse files
authored
fix all the tests
1 parent c56e7e3 commit 01732ce

File tree

15 files changed

+20
-31
lines changed

15 files changed

+20
-31
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ defaults:
6565
command: |
6666
mv /opt/bmo/local /app/local
6767
perl -MSys::Hostname -i -pE 's/bmo.test/hostname() . ":$ENV{PORT}"/ges' $BZ_QA_CONF_FILE
68-
perl checksetup.pl --no-database --default-localconfig
68+
/app/scripts/entrypoint.pl checksetup_gen_files --default-localconfig
6969
mkdir artifacts
7070
7171
jobs:
@@ -171,7 +171,7 @@ jobs:
171171
- checkout
172172
- run: |
173173
mv /opt/bmo/local /app/local
174-
perl checksetup.pl --no-database
174+
/app/scripts/entrypoint.pl checksetup_gen_files
175175
/app/scripts/entrypoint.pl load_test_data
176176
mkdir artifacts
177177
- run: /app/scripts/entrypoint.pl test_bmo -q -f t/bmo/*.t

Bugzilla/Install/Filesystem.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ sub HTTPD_ENV_CONF {
117117

118118
sub _error_page {
119119
my ($code, $title, $description) = @_;
120+
warn "urlbase: ", Bugzilla->urlbase, "\n";
120121
my $host = Bugzilla->urlbase->host;
121122

122123
return <<EOT;

Bugzilla/Product.pm

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ use constant VALIDATORS => {
6464
description => \&_check_description,
6565
version => \&_check_version,
6666
defaultmilestone => \&_check_default_milestone,
67-
security_group_id => \&_check_security_group_id,
6867
isactive => \&Bugzilla::Object::check_boolean,
6968
create_series => \&Bugzilla::Object::check_boolean
7069
};
@@ -417,16 +416,6 @@ sub _check_version {
417416
return $version;
418417
}
419418

420-
sub _check_security_group_id {
421-
my ($invocant, $id) = @_;
422-
423-
$id = trim($id);
424-
425-
ThrowUserError('product_must_have_security_group') unless $id;
426-
427-
return $id;
428-
}
429-
430419
sub _check_default_milestone {
431420
my ($invocant, $milestone) = @_;
432421

Bugzilla/Template.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ sub create {
581581
# if a packager has modified bz_locations() to contain absolute
582582
# paths.
583583
ABSOLUTE => 1,
584-
RELATIVE => 0,
584+
RELATIVE => 1,
585585

586586
COMPILE_DIR => bz_locations()->{'template_cache'},
587587

Bugzilla/WebService/Constants.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ use constant WS_ERROR_CODE => {
207207
product_must_have_description => 703,
208208
product_must_have_version => 704,
209209
product_must_define_defaultmilestone => 705,
210-
product_must_have_security_group => 706,
211210

212211
# Group errors are 800-900
213212
empty_group_name => 800,

extensions/BMO/template/en/default/bug/create/create-mozpr.html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function validate_form() {
297297
<input type="hidden" name="version" value="unspecified">
298298
<input type="hidden" name="bug_severity" value="normal">
299299
<input type="hidden" name="group" value="pr-private">
300-
<input type="hidden" name="assigned_to" id="assigned_to" value="[% Bugzilla.params.nobody_user %]">
300+
<input type="hidden" name="assigned_to" id="assigned_to" value="[% Param('nobody_user') FILTER html %]">
301301
<input type="hidden" name="token" value="[% token FILTER html %]">
302302

303303
<div class="head">

extensions/BMO/template/en/default/bug/create/create-poweredby.html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ please provide some information about your application or product.</p>
4343
<input type="hidden" name="priority" value="--">
4444
<input type="hidden" name="op_sys" value="Other">
4545
<input type="hidden" name="version" value="unspecified">
46-
<input type="hidden" name="assigned_to" value="[% Bugzilla.params.nobody_user %]">
46+
<input type="hidden" name="assigned_to" value="[% Param('nobody_user') FILTER html %]">
4747
<input type="hidden" name="cc" value="[email protected]">
4848
<input type="hidden" name="groups" value="marketing-private">
4949
<input type="hidden" name="token" value="[% token FILTER html %]">

extensions/BMO/template/en/default/pages/bug-writing.html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
#%]
88

99
[% PROCESS global/redirect.html.tmpl
10-
url = "[% terms.BugWritingGuidelinesURL %]"
10+
url = terms.BugWritingGuidelinesURL
1111
%]

extensions/BMO/template/en/default/pages/group_admins.html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
[% group.name FILTER html %]</span>
4040
</td>
4141
<td nowrap>
42-
[% IF group.owner.login == Bugzilla.params.nobody_user %]
42+
[% IF group.owner.login == Param('nobody_user') %]
4343
&ndash;
4444
[% ELSE %]
4545
[% INCLUDE global/user.html.tmpl who = group.owner %]

extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
# these are used in a few places
2121
is_cced = bug.cc.contains(user.login);
22-
unassigned = (bug.assigned_to.login == Bugzilla.params.nobody_user)
22+
unassigned = (bug.assigned_to.login == Param('nobody_user'))
2323
|| (bug.assigned_to.login.search('\.bugs$'));
2424

2525
# custom fields that have custom rendering, or should not be rendered

0 commit comments

Comments
 (0)