Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Schema
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Schema
Commits
4d5e2a79
Commit
4d5e2a79
authored
1 year ago
by
Shreya Shah
Browse files
Options
Downloads
Plain Diff
Merge branch 'az/ss-schema-refactor' into 'master'
Schema test refactoring See merge request
!529
parents
e0b718e8
c509141e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!529
Schema test refactoring
Pipeline
#203954
passed
1 year ago
Stage: build
Stage: scan
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NOTICE
+0
-0
0 additions, 0 deletions
NOTICE
schema-core/src/test/java/org/opengroup/osdu/schema/security/AuthorizationFilterSATest.java
+3
-4
3 additions, 4 deletions
...group/osdu/schema/security/AuthorizationFilterSATest.java
with
3 additions
and
4 deletions
NOTICE
→
NOTICE
+
0
−
0
View file @
4d5e2a79
File moved
This diff is collapsed.
Click to expand it.
schema-core/src/test/java/org/opengroup/osdu/schema/security/AuthorizationFilterSA
t
est.java
→
schema-core/src/test/java/org/opengroup/osdu/schema/security/AuthorizationFilterSA
T
est.java
+
3
−
4
View file @
4d5e2a79
package
org.opengroup.osdu.schema.security
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
...
...
@@ -12,13 +12,12 @@ import org.mockito.Mockito;
import
org.opengroup.osdu.core.common.entitlements.EntitlementsService
;
import
org.opengroup.osdu.core.common.entitlements.IEntitlementsFactory
;
import
org.opengroup.osdu.core.common.logging.JaxRsDpsLog
;
import
org.opengroup.osdu.core.common.model.entitlements.EntitlementsException
;
import
org.opengroup.osdu.core.common.model.http.DpsHeaders
;
import
org.opengroup.osdu.schema.exceptions.BadRequestException
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
public
class
AuthorizationFilterSA
t
est
{
public
class
AuthorizationFilterSA
T
est
{
@Mock
IEntitlementsFactory
entitlementsFactory
;
...
...
@@ -42,7 +41,7 @@ public class AuthorizationFilterSAtest {
@Test
public
void
testRuntimeException_when_DataPartitionIsPresentInSystemHeader
()
throws
BadRequestException
,
EntitlementsException
{
public
void
testRuntimeException_when_DataPartitionIsPresentInSystemHeader
()
{
Mockito
.
when
(
headers
.
getAuthorization
()).
thenReturn
(
"test"
);
Mockito
.
when
(
headers
.
getPartitionId
()).
thenReturn
(
"test"
);
...
...
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