diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-12-16 20:17:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-16 20:17:05 +0100 |
commit | 334bead74bc9c5e819f14946726eaad40986d636 (patch) | |
tree | e7ecf8d4eba2e6a046da8a9dc8828f35b75c7428 /qa/t/test_security.t | |
parent | 49e0df0d4e1b2f25be4ab36660dac5e47768c9a1 (diff) | |
download | bugzilla-334bead74bc9c5e819f14946726eaad40986d636.tar.gz bugzilla-334bead74bc9c5e819f14946726eaad40986d636.tar.xz |
Bug 1403777 - Migrate urlbase from params to localconfig
Diffstat (limited to 'qa/t/test_security.t')
-rw-r--r-- | qa/t/test_security.t | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/qa/t/test_security.t b/qa/t/test_security.t index 56fba4b01..757c33d06 100644 --- a/qa/t/test_security.t +++ b/qa/t/test_security.t @@ -35,8 +35,7 @@ my $bug1_id = create_bug($sel, $bug_summary); # No alternate host for attachments; cookies will be accessible. -set_parameters($sel, { "Attachments" => {"allow_attachment_display-on" => undef, - "reset-attachment_base" => undef} }); +set_parameters($sel, { "Attachments" => {"allow_attachment_display-on" => undef } }); go_to_bug($sel, $bug1_id); $sel->click_ok("link=simple patch, v1"); @@ -51,24 +50,22 @@ $sel->go_back_ok(); $sel->wait_for_page_to_load_ok(WAIT_TIME); $sel->title_like(qr/^$bug1_id /); -# Alternate host for attachments; no cookie should be accessible. - -set_parameters($sel, { "Attachments" => {"attachment_base" => {type => "text", - value => "$config->{browser_ip_url}/$urlbase/"}} }); -go_to_bug($sel, $bug1_id); -$sel->click_ok("link=simple patch, v1"); -$sel->wait_for_page_to_load_ok(WAIT_TIME); -$sel->title_is(""); -@cookies = split(/[\s;]+/, $sel->get_cookie()); -$nb_cookies = scalar @cookies; -ok(!$nb_cookies, "No cookies found"); -ok(!$sel->is_cookie_present("Bugzilla_login"), "Bugzilla_login not accessible"); -ok(!$sel->is_cookie_present("Bugzilla_logincookie"), "Bugzilla_logincookie not accessible"); -$sel->go_back_ok(); -$sel->wait_for_page_to_load_ok(WAIT_TIME); -$sel->title_like(qr/^$bug1_id /); - -set_parameters($sel, { "Attachments" => {"reset-attachment_base" => undef} }); +# # Alternate host for attachments; no cookie should be accessible. + +# set_parameters($sel, { "Attachments" => {"attachment_base" => {type => "text", +# value => "$config->{browser_ip_url}/$urlbase/"}} }); +# go_to_bug($sel, $bug1_id); +# $sel->click_ok("link=simple patch, v1"); +# $sel->wait_for_page_to_load_ok(WAIT_TIME); +# $sel->title_is(""); +# @cookies = split(/[\s;]+/, $sel->get_cookie()); +# $nb_cookies = scalar @cookies; +# ok(!$nb_cookies, "No cookies found"); +# ok(!$sel->is_cookie_present("Bugzilla_login"), "Bugzilla_login not accessible"); +# ok(!$sel->is_cookie_present("Bugzilla_logincookie"), "Bugzilla_logincookie not accessible"); +# $sel->go_back_ok(); +# $sel->wait_for_page_to_load_ok(WAIT_TIME); +# $sel->title_like(qr/^$bug1_id /); ####################################################################### # Security bug 472362. |