Initial application generated by JHipster-5.8.2
This commit is contained in:
		
							
								
								
									
										107
									
								
								src/test/resources/config/application.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								src/test/resources/config/application.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,107 @@
 | 
			
		||||
# ===================================================================
 | 
			
		||||
# Spring Boot configuration.
 | 
			
		||||
#
 | 
			
		||||
# This configuration is used for unit/integration tests.
 | 
			
		||||
#
 | 
			
		||||
# More information on profiles: https://www.jhipster.tech/profiles/
 | 
			
		||||
# More information on configuration properties: https://www.jhipster.tech/common-application-properties/
 | 
			
		||||
# ===================================================================
 | 
			
		||||
 | 
			
		||||
# ===================================================================
 | 
			
		||||
# Standard Spring Boot properties.
 | 
			
		||||
# Full reference is available at:
 | 
			
		||||
# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
 | 
			
		||||
# ===================================================================
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
spring:
 | 
			
		||||
    application:
 | 
			
		||||
        name: hsadminNg
 | 
			
		||||
    cache:
 | 
			
		||||
        type: simple
 | 
			
		||||
    datasource:
 | 
			
		||||
        type: com.zaxxer.hikari.HikariDataSource
 | 
			
		||||
        url: jdbc:h2:mem:hsadminNg;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
 | 
			
		||||
        name:
 | 
			
		||||
        username:
 | 
			
		||||
        password:
 | 
			
		||||
        hikari:
 | 
			
		||||
            auto-commit: false
 | 
			
		||||
    jpa:
 | 
			
		||||
        database-platform: io.github.jhipster.domain.util.FixedH2Dialect
 | 
			
		||||
        database: H2
 | 
			
		||||
        open-in-view: false
 | 
			
		||||
        show-sql: false
 | 
			
		||||
        hibernate:
 | 
			
		||||
            ddl-auto: none
 | 
			
		||||
            naming:
 | 
			
		||||
                physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
 | 
			
		||||
                implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
 | 
			
		||||
        properties:
 | 
			
		||||
            hibernate.id.new_generator_mappings: true
 | 
			
		||||
            hibernate.connection.provider_disables_autocommit: true
 | 
			
		||||
            hibernate.cache.use_second_level_cache: false
 | 
			
		||||
            hibernate.cache.use_query_cache: false
 | 
			
		||||
            hibernate.generate_statistics: false
 | 
			
		||||
            hibernate.hbm2ddl.auto: validate
 | 
			
		||||
            hibernate.jdbc.time_zone: UTC
 | 
			
		||||
    liquibase:
 | 
			
		||||
        contexts: test
 | 
			
		||||
    mail:
 | 
			
		||||
        host: localhost
 | 
			
		||||
    messages:
 | 
			
		||||
        basename: i18n/messages
 | 
			
		||||
    mvc:
 | 
			
		||||
        favicon:
 | 
			
		||||
            enabled: false
 | 
			
		||||
    thymeleaf:
 | 
			
		||||
        mode: HTML
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
server:
 | 
			
		||||
    port: 10344
 | 
			
		||||
    address: localhost
 | 
			
		||||
 | 
			
		||||
# ===================================================================
 | 
			
		||||
# JHipster specific properties
 | 
			
		||||
#
 | 
			
		||||
# Full reference is available at: https://www.jhipster.tech/common-application-properties/
 | 
			
		||||
# ===================================================================
 | 
			
		||||
 | 
			
		||||
jhipster:
 | 
			
		||||
    async:
 | 
			
		||||
        core-pool-size: 1
 | 
			
		||||
        max-pool-size: 50
 | 
			
		||||
        queue-capacity: 10000
 | 
			
		||||
    # To test logstash appender
 | 
			
		||||
    logging:
 | 
			
		||||
        logstash:
 | 
			
		||||
            enabled: true
 | 
			
		||||
            host: localhost
 | 
			
		||||
            port: 5000
 | 
			
		||||
            queue-size: 512
 | 
			
		||||
    mail:
 | 
			
		||||
        from: test@localhost
 | 
			
		||||
        base-url: http://127.0.0.1:8080
 | 
			
		||||
    security:
 | 
			
		||||
        authentication:
 | 
			
		||||
            jwt:
 | 
			
		||||
                # This token must be encoded using Base64 (you can type `echo 'secret-key'|base64` on your command line)
 | 
			
		||||
                base64-secret: ZDFlMDUzODIzMTUzZDEwZjExN2E5ZjAzY2VhZmYzNDE1YjhlYWUxZGRhMGU3ODZiNjRkNjVlNzEwZjExYWY4YzczM2NlYzI5YWE1OTRkNWM0YThlYjZjZjA5Zjc5YWJkOTgzYjdhZjQxZWQyZGUyYjFlYjI5ZDE3NmE4M2UzYjQ=
 | 
			
		||||
                # Token is valid 24 hours
 | 
			
		||||
                token-validity-in-seconds: 86400
 | 
			
		||||
    metrics:
 | 
			
		||||
        logs: # Reports metrics in the logs
 | 
			
		||||
            enabled: true
 | 
			
		||||
            report-frequency: 60 # in seconds
 | 
			
		||||
 | 
			
		||||
# ===================================================================
 | 
			
		||||
# Application specific properties
 | 
			
		||||
# Add your own application properties here, see the ApplicationProperties class
 | 
			
		||||
# to have type-safe configuration, like in the JHipsterProperties above
 | 
			
		||||
#
 | 
			
		||||
# More documentation is available at:
 | 
			
		||||
# https://www.jhipster.tech/common-application-properties/
 | 
			
		||||
# ===================================================================
 | 
			
		||||
 | 
			
		||||
# application:
 | 
			
		||||
							
								
								
									
										1
									
								
								src/test/resources/i18n/messages_en.properties
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/test/resources/i18n/messages_en.properties
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
email.test.title=test title
 | 
			
		||||
							
								
								
									
										44
									
								
								src/test/resources/logback.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								src/test/resources/logback.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
<!DOCTYPE configuration>
 | 
			
		||||
 | 
			
		||||
<configuration scan="true">
 | 
			
		||||
    <include resource="org/springframework/boot/logging/logback/base.xml"/>
 | 
			
		||||
 | 
			
		||||
    <logger name="org.hostsharing.hsadminng" level="INFO"/>
 | 
			
		||||
 | 
			
		||||
    <logger name="io.github.jhipster" level="WARN"/>
 | 
			
		||||
 | 
			
		||||
    <logger name="javax.activation" level="WARN"/>
 | 
			
		||||
    <logger name="javax.mail" level="WARN"/>
 | 
			
		||||
    <logger name="javax.xml.bind" level="WARN"/>
 | 
			
		||||
    <logger name="ch.qos.logback" level="WARN"/>
 | 
			
		||||
    <logger name="com.ryantenney" level="WARN"/>
 | 
			
		||||
    <logger name="com.sun" level="WARN"/>
 | 
			
		||||
    <logger name="com.zaxxer" level="WARN"/>
 | 
			
		||||
    <logger name="io.undertow" level="WARN"/>
 | 
			
		||||
    <logger name="io.undertow.websockets.jsr" level="ERROR"/>
 | 
			
		||||
    <logger name="org.ehcache" level="WARN"/>
 | 
			
		||||
    <logger name="org.apache" level="WARN"/>
 | 
			
		||||
    <logger name="org.apache.catalina.startup.DigesterFactory" level="OFF"/>
 | 
			
		||||
    <logger name="org.bson" level="WARN"/>
 | 
			
		||||
    <logger name="org.hibernate.validator" level="WARN"/>
 | 
			
		||||
    <logger name="org.hibernate" level="WARN"/>
 | 
			
		||||
    <logger name="org.hibernate.ejb.HibernatePersistence" level="OFF"/>
 | 
			
		||||
    <logger name="org.postgresql.jdbc" level="WARN"/>
 | 
			
		||||
    <logger name="org.springframework" level="WARN"/>
 | 
			
		||||
    <logger name="org.springframework.web" level="WARN"/>
 | 
			
		||||
    <logger name="org.springframework.security" level="WARN"/>
 | 
			
		||||
    <logger name="org.springframework.cache" level="WARN"/>
 | 
			
		||||
    <logger name="org.thymeleaf" level="WARN"/>
 | 
			
		||||
    <logger name="org.xnio" level="WARN"/>
 | 
			
		||||
    <logger name="springfox" level="WARN"/>
 | 
			
		||||
    <logger name="sun.rmi" level="WARN"/>
 | 
			
		||||
    <logger name="liquibase" level="WARN"/>
 | 
			
		||||
    <logger name="LiquibaseSchemaResolver" level="INFO"/>
 | 
			
		||||
    <logger name="sun.rmi.transport" level="WARN"/>
 | 
			
		||||
 | 
			
		||||
    <root level="WARN">
 | 
			
		||||
        <appender-ref ref="CONSOLE"/>
 | 
			
		||||
    </root>
 | 
			
		||||
 | 
			
		||||
</configuration>
 | 
			
		||||
							
								
								
									
										1
									
								
								src/test/resources/templates/mail/testEmail.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/test/resources/templates/mail/testEmail.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
<html xmlns:th="http://www.thymeleaf.org" th:text="|#{email.test.title}, ${baseUrl}, ${user.login}|"></html>
 | 
			
		||||
		Reference in New Issue
	
	Block a user