From 8ec8da0491ad89604700b3e29a227966f6d84ba1 Mon Sep 17 00:00:00 2001 From: Perl Tidy Date: Wed, 5 Dec 2018 15:38:52 -0500 Subject: no bug - reformat all the code using the new perltidy rules --- qa/t/test_require_login.t | 64 +++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 30 deletions(-) (limited to 'qa/t/test_require_login.t') diff --git a/qa/t/test_require_login.t b/qa/t/test_require_login.t index 1cfd5b42f..f8d2629f9 100644 --- a/qa/t/test_require_login.t +++ b/qa/t/test_require_login.t @@ -18,61 +18,65 @@ my ($sel, $config) = get_selenium(); # Turn on 'requirelogin'. log_in($sel, $config, 'admin'); -set_parameters($sel, { "User Authentication" => {"requirelogin-on" => undef} }); +set_parameters($sel, {"User Authentication" => {"requirelogin-on" => undef}}); logout($sel); # We try to access each page. None of the ones listed below should # let you view it without being logged in. my @pages = qw(admin attachment buglist chart colchange describecomponents - describekeywords duplicates editclassifications editcomponents - editfields editflagtypes editgroups editkeywords editmilestones - editparams editproducts editsettings editusers editvalues - editversions editwhines editworkflow enter_bug long_list page - post_bug process_bug query quips report reports request - sanitycheck search_plugin show_activity show_bug showattachment - showdependencygraph showdependencytree summarize_time - userprefs votes xml); + describekeywords duplicates editclassifications editcomponents + editfields editflagtypes editgroups editkeywords editmilestones + editparams editproducts editsettings editusers editvalues + editversions editwhines editworkflow enter_bug long_list page + post_bug process_bug query quips report reports request + sanitycheck search_plugin show_activity show_bug showattachment + showdependencygraph showdependencytree summarize_time + userprefs votes xml); foreach my $page (@pages) { - $sel->open_ok("/$config->{bugzilla_installation}/${page}.cgi"); - if ($page ne 'votes' || $config->{test_extensions}) { - $sel->title_is("Log in to Bugzilla"); - } - else { - $sel->title_is("Extension Disabled"); - } + $sel->open_ok("/$config->{bugzilla_installation}/${page}.cgi"); + if ($page ne 'votes' || $config->{test_extensions}) { + $sel->title_is("Log in to Bugzilla"); + } + else { + $sel->title_is("Extension Disabled"); + } } # Those have parameters passed to the page, so we put them here separately. -@pages = ("query.cgi?format=report-table", "query.cgi?format=report-graph", - "votes.cgi?action=show_user", "votes.cgi?action=show_bug"); +@pages = ( + "query.cgi?format=report-table", "query.cgi?format=report-graph", + "votes.cgi?action=show_user", "votes.cgi?action=show_bug" +); foreach my $page (@pages) { - $sel->open_ok("/$config->{bugzilla_installation}/$page"); - if ($page !~ /^votes/ || $config->{test_extensions}) { - $sel->title_is("Log in to Bugzilla"); - } - else { - $sel->title_is("Extension Disabled"); - } + $sel->open_ok("/$config->{bugzilla_installation}/$page"); + if ($page !~ /^votes/ || $config->{test_extensions}) { + $sel->title_is("Log in to Bugzilla"); + } + else { + $sel->title_is("Extension Disabled"); + } } # These pages should still be accessible. -@pages = ("config.cgi", "createaccount.cgi", "index.cgi", "relogin.cgi", - "token.cgi?a=reqpw&loginname=" . $config->{unprivileged_user_login}); +@pages = ( + "config.cgi", "createaccount.cgi", "index.cgi", "relogin.cgi", + "token.cgi?a=reqpw&loginname=" . $config->{unprivileged_user_login} +); foreach my $page (@pages) { - $sel->open_ok("/$config->{bugzilla_installation}/$page"); - $sel->title_isnt("Log in to Bugzilla"); + $sel->open_ok("/$config->{bugzilla_installation}/$page"); + $sel->title_isnt("Log in to Bugzilla"); } # Turn off 'requirelogin'. log_in($sel, $config, 'admin'); -set_parameters($sel, { "User Authentication" => {"requirelogin-off" => undef} }); +set_parameters($sel, {"User Authentication" => {"requirelogin-off" => undef}}); logout($sel); # Make sure we can access random pages again. -- cgit v1.2.3-24-g4f1b