Skip to content
Snippets Groups Projects
Commit eefaf82e authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

useless parameter

parent b24e3d0d
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment