Skip to content

Commit

Permalink
#1013 [Search] Test for module Search (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
nashtech-tuannguyenhuu1 authored Sep 12, 2024
1 parent 46b0258 commit 3ff9e7a
Show file tree
Hide file tree
Showing 10 changed files with 4,402 additions and 10 deletions.
27 changes: 27 additions & 0 deletions search/src/it/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Setting Spring context path & port
server.servlet.context-path=/v1
server.port=8092

spring.jpa.hibernate.ddl-auto=update

# Setting Spring profile
spring.profiles.active=test
springdoc.swagger-ui.enabled=true
springdoc.api-docs.enabled=true

# swagger-ui custom path
springdoc.swagger-ui.path=/swagger-ui.html
springdoc.packagesToScan=com.yas.search

keycloak.auth-server-url=http://identity
keycloak.realm=Yas
keycloak.resource=customer-management
keycloak.credentials.secret=NKAr3rnjwm9jlakgKpelukZGFaHYqIWE #gitleaks:allow

spring.security.oauth2.resourceserver.jwt.issuer-uri=test
springdoc.oauthflow.authorization-url=test
springdoc.oauthflow.token-url=test

elasticsearch.url=elasticsearch
elasticsearch.username=
elasticsearch.password=
16 changes: 16 additions & 0 deletions search/src/it/resources/logback-spring.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml" />
<springProperty scope="context" name="appName" source="spring.application.name"/>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
</configuration>

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mock-maker-inline

Loading

0 comments on commit 3ff9e7a

Please sign in to comment.