Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TEHIK
TEIS
office-api-gateway
Commits
4089413a
Commit
4089413a
authored
Mar 19, 2021
by
Jyrgen Hannus
Browse files
TEIS-2073: fixed office api gateway MockMvc dependencies
parent
96b18290
Changes
2
Hide whitespace changes
Inline
Side-by-side
api-gateway/build.gradle
View file @
4089413a
...
...
@@ -17,6 +17,7 @@ dependencies {
integTestImplementation
"ee.sm.ti.teis:service-common-lib:${commonsVersion}"
integTestImplementation
"ee.sm.ti.teis:gateway-common-lib:${commonsVersion}"
integTestImplementation
"ee.sm.ti.teis:common-api-gateway-lib:${commonApiGatewayVersion}"
integTestImplementation
'org.springframework.security:spring-security-test:5.4.1'
compile
project
(
':office-api-gateway-lib'
)
}
...
...
api-gateway/src/integTest/java/ee/sm/ti/teis/officegateway/OfficeApiGatewayTestBase.java
View file @
4089413a
package
ee.sm.ti.teis.officegateway
;
import
ee.sm.ti.teis.OfficeApiGateway
;
import
ee.sm.ti.teis.gatewaycommon.config.JacksonIntegTestConfig
;
import
org.junit.jupiter.api.extension.ExtendWith
;
import
org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.util.TestPropertyValues
;
import
org.springframework.context.ApplicationContextInitializer
;
...
...
@@ -14,9 +16,10 @@ import org.testcontainers.junit.jupiter.Testcontainers;
@ExtendWith
(
SpringExtension
.
class
)
@SpringBootTest
(
classes
=
OfficeApiGateway
.
class
)
@AutoConfigureMockMvc
@ActiveProfiles
({
"mockauth"
,
"integtest"
,
"no_keycloak"
})
@Testcontainers
@ContextConfiguration
(
initializers
=
{
OfficeApiGatewayTestBase
.
Initializer
.
class
})
@ContextConfiguration
(
initializers
=
{
OfficeApiGatewayTestBase
.
Initializer
.
class
}
,
classes
=
JacksonIntegTestConfig
.
class
)
public
abstract
class
OfficeApiGatewayTestBase
{
private
static
final
GenericContainer
<?>
rabbitMQContainer
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment