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
0abbc2c5
Commit
0abbc2c5
authored
1 year ago
by
Jiman Kim
Browse files
Options
Downloads
Patches
Plain Diff
unit tests back up
parent
f06da6d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!324
Sonar unit test
Pipeline
#229907
failed
1 year ago
Stage: review
Stage: build
Stage: coverage
Stage: containerize
Stage: scan
Stage: deploy
Stage: integration
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
provider/unit-aws/pom.xml
+12
-6
12 additions, 6 deletions
provider/unit-aws/pom.xml
provider/unit-aws/src/test/java/org/opengroup/osdu/unitservice/security/AuthSecurityConfigTest.java
+4
-6
4 additions, 6 deletions
...oup/osdu/unitservice/security/AuthSecurityConfigTest.java
with
16 additions
and
12 deletions
provider/unit-aws/pom.xml
+
12
−
6
View file @
0abbc2c5
...
...
@@ -104,13 +104,14 @@
<groupId>
org.mockito
</groupId>
<artifactId>
mockito-all
</artifactId>
</exclusion>
<exclusion>
<groupId>
org.junit.vintage
</groupId>
<artifactId>
junit-vintage-engine
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
<version>
4.0.1
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-webmvc
</artifactId>
...
...
@@ -125,6 +126,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.junit.vintage
</groupId>
<artifactId>
junit-vintage-engine
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
...
...
@@ -187,7 +193,7 @@
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.8.
3
</version>
<version>
0.8.
10
</version>
<executions>
<execution>
<goals>
...
...
This diff is collapsed.
Click to expand it.
provider/unit-aws/src/test/java/org/opengroup/osdu/unitservice/security/AuthSecurityConfigTest.java
+
4
−
6
View file @
0abbc2c5
...
...
@@ -14,9 +14,8 @@ limitations under the License. */
package
org.opengroup.osdu.unitservice.security
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.jupiter.api.BeforeEach
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.mock.mockito.MockBean
;
...
...
@@ -33,7 +32,6 @@ import org.opengroup.osdu.unitservice.api.UnitApiV3;
import
org.opengroup.osdu.unitservice.middleware.AuthenticationRequestFilter
;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
{
UnitApiV3
.
class
,
AuthenticationRequestFilter
.
class
,
...
...
@@ -52,8 +50,8 @@ public class AuthSecurityConfigTest {
@Autowired
private
WebApplicationContext
context
;
@Before
public
void
set
u
p
()
{
@Before
Each
public
void
set
U
p
()
{
mockMvc
=
MockMvcBuilders
.
webAppContextSetup
(
context
).
build
();
}
...
...
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