Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
Unit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Reference and Helper Services
Unit
Commits
4e40c9ce
Commit
4e40c9ce
authored
1 year ago
by
Rustam Lotsmanenko (EPAM)
Committed by
David Diederich
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Updated assertion
(cherry picked from commit
2a4c93e9
)
parent
19f8c319
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!291
Cherry-pick 'Upgrade First Party Library Dependencies for Release 0.22' into release/0.22
Pipeline
#199541
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unit-core/src/test/java/org/opengroup/osdu/unitservice/middleware/AuthenticationServiceTest.java
+4
-3
4 additions, 3 deletions
...sdu/unitservice/middleware/AuthenticationServiceTest.java
with
4 additions
and
3 deletions
unit-core/src/test/java/org/opengroup/osdu/unitservice/middleware/AuthenticationServiceTest.java
+
4
−
3
View file @
4e40c9ce
...
...
@@ -51,9 +51,10 @@ public class AuthenticationServiceTest {
boolean
result
=
authenticationService
.
isAuthorized
(
httpServletRequest
,
httpServletResponse
);
Assert
.
assertFalse
(
result
);
Mockito
.
verify
(
jaxRsDpsLog
).
error
(
"User not authenticated. Response: HttpResponse(headers=null,"
+
" body=, contentType=, responseCode=0, exception=java.net.MalformedURLException: no protocol:"
+
" entitlementsUrl/groups, request=entitlementsUrl/groups, httpMethod=GET, latency=0)"
);
Mockito
.
verify
(
jaxRsDpsLog
)
.
error
(
"User not authenticated. Response: HttpResponse(headers=null,"
+
" body=, contentType=, responseCode=0, exception=org.apache.http.client.ClientProtocolException, "
+
"request=entitlementsUrl/groups, httpMethod=GET, latency=0)"
);
Mockito
.
verify
(
handlerExceptionResolver
).
resolveException
(
Mockito
.
eq
(
httpServletRequest
),
Mockito
.
eq
(
httpServletResponse
),
Mockito
.
eq
(
null
),
Mockito
.
any
(
AppException
.
class
));
}
...
...
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