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
fee7b6d2
Commit
fee7b6d2
authored
3 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
sp_entityid -> entityid
parent
fa9a9c44
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
t/cli.t
+5
-5
5 additions, 5 deletions
t/cli.t
with
5 additions
and
5 deletions
t/cli.t
+
5
−
5
View file @
fee7b6d2
...
...
@@ -113,7 +113,7 @@ EOF
# creation success
(
$out
,
$err
,
$rc
)
=
run_executable
(
'
access-check-manager.pl
',
"
--config
$config_file
add_account --profile foo --
sp_
entityid bar
"
"
--config
$config_file
add_account --profile foo --entityid bar
"
);
ok
(
$rc
==
0
,
'
add account with mandatory option exit status
');
like
(
$out
,
qr/Account created/
,
'
add account with mandatory option stdin output
');
...
...
@@ -148,14 +148,14 @@ EOF
is
(
$out
,
'',
'
add service without mandatory option stdin output
');
like
(
$err
,
qr/missing
sp_
entityid option, aborting/
,
qr/missing entityid option, aborting/
,
'
add service without mandatory option stderr output
'
);
# creation success
(
$out
,
$err
,
$rc
)
=
run_executable
(
'
access-check-manager.pl
',
"
--config
$config_file
add_service --
sp_
entityid bar --contacts joe,bob
"
"
--config
$config_file
add_service --entityid bar --contacts joe,bob
"
);
ok
(
$rc
==
0
,
'
add service with mandatory option exit status
');
like
(
$out
,
qr/Service Provider created/
,
'
add service with mandatory option stdin output
');
...
...
@@ -197,7 +197,7 @@ EOF
# creation success
(
$out
,
$err
,
$rc
)
=
run_executable
(
'
access-check-manager.pl
',
"
--config
$config_file
add_token --
sp_
entityid bar --email_address joe
"
"
--config
$config_file
add_token --entityid bar --email_address joe
"
);
ok
(
$rc
==
0
,
'
add token with mandatory option exit status
');
like
(
$out
,
qr/Authentication token created/
,
'
add token with mandatory option stdin output
');
...
...
@@ -209,7 +209,7 @@ EOF
"
--config
$config_file
list_tokens
"
);
ok
(
$rc
==
0
,
'
list tokens exit status
');
like
(
$out
,
qr/Token ID=\d+; token=\w+; email_address=joe;
sp_
entityid=bar/
,
'
list tokens stdin output
');
like
(
$out
,
qr/Token ID=\d+; token=\w+; email_address=joe; entityid=bar/
,
'
list tokens stdin output
');
is
(
$err
,
'',
'
list tokens stderr output
');
}
...
...
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