Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dbp-relay-auth-bundle
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Relay API Gateway
dbp-relay-auth-bundle
Commits
ce556a11
Commit
ce556a11
authored
Nov 2, 2021
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Fix the tests
parent
057d9607
No related branches found
No related tags found
No related merge requests found
Pipeline
#59843
passed
Nov 2, 2021
Stage: test
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/Authenticator/BearerUserProviderTest.php
+2
-0
2 additions, 0 deletions
tests/Authenticator/BearerUserProviderTest.php
with
2 additions
and
0 deletions
tests/Authenticator/BearerUserProviderTest.php
+
2
−
0
View file @
ce556a11
...
@@ -8,6 +8,7 @@ use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
...
@@ -8,6 +8,7 @@ use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
use
Dbp\Relay\AuthBundle\Authenticator\BearerUserProvider
;
use
Dbp\Relay\AuthBundle\Authenticator\BearerUserProvider
;
use
Dbp\Relay\AuthBundle\OIDC\OIDProvider
;
use
Dbp\Relay\AuthBundle\OIDC\OIDProvider
;
use
Dbp\Relay\AuthBundle\Tests\DummyUserSession
;
use
Dbp\Relay\AuthBundle\Tests\DummyUserSession
;
use
Psr\Log\NullLogger
;
use
Symfony\Component\Security\Core\Exception\AuthenticationException
;
use
Symfony\Component\Security\Core\Exception\AuthenticationException
;
class
BearerUserProviderTest
extends
ApiTestCase
class
BearerUserProviderTest
extends
ApiTestCase
...
@@ -37,6 +38,7 @@ class BearerUserProviderTest extends ApiTestCase
...
@@ -37,6 +38,7 @@ class BearerUserProviderTest extends ApiTestCase
$oid
=
new
OIDProvider
();
$oid
=
new
OIDProvider
();
$udprov
=
new
DummyUserSession
(
'foo'
,
[
'role'
]);
$udprov
=
new
DummyUserSession
(
'foo'
,
[
'role'
]);
$prov
=
new
BearerUserProvider
(
$udprov
,
$oid
);
$prov
=
new
BearerUserProvider
(
$udprov
,
$oid
);
$prov
->
setLogger
(
new
NullLogger
());
$prov
->
setConfig
([
$prov
->
setConfig
([
'remote_validation'
=>
false
,
'remote_validation'
=>
false
,
'local_validation_leeway'
=>
0
,
'local_validation_leeway'
=>
0
,
...
...
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