Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Access Check - Account manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN Access Check - Account manager
Commits
50035bce
Commit
50035bce
authored
6 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
update expected results
parent
c10ccf73
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
t/cgi.t
+9
-32
9 additions, 32 deletions
t/cgi.t
with
9 additions
and
32 deletions
t/cgi.t
+
9
−
32
View file @
50035bce
...
...
@@ -8,7 +8,7 @@ use File::Temp;
use
IPC::
Run
qw(run)
;
use
Test::
More
;
plan
tests
=>
5
;
plan
tests
=>
4
;
my
$log
=
File::
Temp
->
new
(
UNLINK
=>
$ENV
{
TEST_DEBUG
}
?
0
:
1
);
diag
("
log file:
$log
")
if
$ENV
{
TEST_DEBUG
};
...
...
@@ -20,7 +20,10 @@ templates_dir = templates
templates_theme = edugain
[federations]
edugain = t/edugain.xml
list = edugain
[edugain]
metadata = t/edugain.xml
[app]
url = https://my.fqdn/accountmanager
...
...
@@ -67,44 +70,18 @@ subtest "index page" => sub {
);
like
(
$out
,
qr{<a href="\?action=s
tart
" class="button">Get started</a>}
,
qr{<a href="\?action=s
elect_sp
" class="button">Get started</a>}
,
'
start button
'
);
is
(
$err
,
'',
'
empty stderr
');
};
subtest
"
SP selection page, implicit federation selection
"
=>
sub
{
plan
tests
=>
4
;
local
$ENV
{
REQUEST_METHOD
}
=
'
GET
';
local
$ENV
{
QUERY_STRING
}
=
'
action=start
';
my
(
$out
,
$err
,
$rc
)
=
run_executable
('
access-check-manager.cgi
');
like
(
$out
,
qr{^Content-Type: text/html; charset=utf8\r\n\r\n}
m,
'HTTP headers'
);
like(
$out,
qr{<title>eduGAIN Access Check</title>}
,
'
page title
'
);
like
(
$out
,
qr{<select id="entityid" name="entityid" class="required">}
,
'
page content contains SP list
'
);
is
(
$err
,
'',
'
empty stderr
');
};
subtest
"
SP selection page, explicit federation selection
"
=>
sub
{
subtest
"
SP selection page
"
=>
sub
{
plan
tests
=>
4
;
local
$ENV
{
REQUEST_METHOD
}
=
'
GET
';
local
$ENV
{
QUERY_STRING
}
=
'
action=select_sp
&federation=edugain
';
local
$ENV
{
QUERY_STRING
}
=
'
action=select_sp
';
my
(
$out
,
$err
,
$rc
)
=
run_executable
('
access-check-manager.cgi
');
like
(
...
...
@@ -119,7 +96,7 @@ subtest "SP selection page, explicit federation selection" => sub {
);
like
(
$out
,
qr{<select id="e
ntityid
" name="e
ntityid" class="required
">}
,
qr{<select id="e
dugain
" name="e
dugain
">}
,
'
page content contains SP list
'
);
is
(
$err
,
'',
'
empty stderr
');
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment