diff --git a/t/app.t b/t/app.t index 37096ea3fad6007727b4621beef706b6eaea976b..c8240dc2fc64b6ab199580dff8998c604817e638 100755 --- a/t/app.t +++ b/t/app.t @@ -193,7 +193,7 @@ named_subtest "SP selection page" => sub { named_subtest "email selection page, missing entityid" => sub { my $t = get_test_object(test => $_[0]); - $t->get_ok('/step2' => form => {federation => 'edugain'}) + $t->get_ok('/step2') ->status_is(200) ->text_is('html head title' => 'eduGAIN Access Check', 'expected title') ->content_like(qr/Error:[\n\s]+missing parameter 'entityid'/, 'expected error message'); @@ -205,7 +205,7 @@ named_subtest "email selection page, missing entityid" => sub { named_subtest "email selection page, invalid entityid" => sub { my $t = get_test_object(test => $_[0]); - $t->get_ok('/step2' => form => {federation => 'edugain', entityid => 'foo'}) + $t->get_ok('/step2' => form => {entityid => 'foo'}) ->status_is(200) ->text_is('html head title' => 'eduGAIN Access Check', 'expected title') ->content_like(qr/Error:[\n\s]+invalid parameter 'entityid'/, 'expected error message'); @@ -217,7 +217,7 @@ named_subtest "email selection page, invalid entityid" => sub { named_subtest "email selection page, valid entityid" => sub { my $t = get_test_object(test => $_[0]); - $t->get_ok('/step2' => form => {federation => 'edugain', entityid => 'https://sp.renater.fr/'}) + $t->get_ok('/step2' => form => {entityid => 'https://sp.renater.fr/'}) ->status_is(200) ->text_is('html head title' => 'eduGAIN Access Check', 'expected title') ->element_exists('input[name=email][value=contact1@renater.fr]', 'email selection widget'); @@ -229,7 +229,7 @@ named_subtest "email selection page, valid entityid" => sub { named_subtest "challenge page, missing entityid" => sub { my $t = get_test_object(test => $_[0]); - $t->get_ok('/step3' => form => {federation => 'edugain'}) + $t->get_ok('/step3') ->status_is(200) ->text_is('html head title' => 'eduGAIN Access Check', 'expected title') ->content_like(qr/Error:[\n\s]+missing parameter 'entityid'/, 'expected error message'); @@ -241,7 +241,7 @@ named_subtest "challenge page, missing entityid" => sub { named_subtest "challenge page, invalid entityid" => sub { my $t = get_test_object(test => $_[0]); - $t->get_ok('/step3' => form => {federation => 'edugain', entityid => 'foo'}) + $t->get_ok('/step3' => form => {entityid => 'foo'}) ->status_is(200) ->text_is('html head title' => 'eduGAIN Access Check', 'expected title') ->content_like(qr/Error:[\n\s]+invalid parameter 'entityid'/, 'expected error message'); @@ -253,7 +253,7 @@ named_subtest "challenge page, invalid entityid" => sub { named_subtest "challenge page, valid entityid, missing email" => sub { my $t = get_test_object(test => $_[0]); - $t->get_ok('/step3' => form => {federation => 'edugain', entityid => 'https://sp.renater.fr/'}) + $t->get_ok('/step3' => form => {entityid => 'https://sp.renater.fr/'}) ->status_is(200) ->text_is('html head title' => 'eduGAIN Access Check', 'expected title') ->content_like(qr/Error:[\n\s]+missing parameter 'email'/, 'expected error message'); @@ -265,7 +265,7 @@ named_subtest "challenge page, valid entityid, missing email" => sub { named_subtest "challenge page, valid entityid, invalid email" => sub { my $t = get_test_object(test => $_[0]); - $t->get_ok('/step3' => form => {federation => 'edugain', entityid => 'https://sp.renater.fr/', email => 'foo'}) + $t->get_ok('/step3' => form => {entityid => 'https://sp.renater.fr/', email => 'foo'}) ->status_is(200) ->text_is('html head title' => 'eduGAIN Access Check', 'expected title') ->content_like(qr/Error:[\n\s]+invalid parameter 'email'/, 'expected error message');