Merge branch 'tibor' into 'master'
introducing prod-test environment See merge request bossanyit/aitrainer_server!12
This commit is contained in:
commit
3f3d0668f1
@ -47,7 +47,7 @@ class ExerciseTypeController ( private val exerciseTypeRepository: ExerciseTypeR
|
||||
@GetMapping("exercise_type/active")
|
||||
fun getActiveExerciseType(): List<ExerciseType> {
|
||||
val list: List<ExerciseType> = exerciseTypeRepository.getActiveExerciseTypes()
|
||||
logger.info("-- Get Active Exercise Types with Images and Translation -- ")
|
||||
logger.info("-- Get Active Exercise Types with Images and Translation -- $list")
|
||||
return list
|
||||
}
|
||||
|
||||
|
21
src/main/resources/application-prodtest.properties
Normal file
21
src/main/resources/application-prodtest.properties
Normal file
@ -0,0 +1,21 @@
|
||||
spring.profiles.active=prod
|
||||
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
|
||||
spring.datasource.url = jdbc:mysql://62.171.188.119:33060/aitrainer_test?serverTimezone=CET&useSSL=false&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&allowMultiQueries=true
|
||||
spring.datasource.username = aitrainer
|
||||
spring.datasource.password = andio2009
|
||||
|
||||
|
||||
## Hibernate Properties
|
||||
|
||||
|
||||
# The SQL dialect makes Hibernate generate better SQL for the chosen database
|
||||
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
|
||||
|
||||
|
||||
logging.config=classpath:logback-spring.xml
|
||||
logging.file=logs
|
||||
|
||||
# if the database structure has been changed, increment this version number
|
||||
application.version=1.0.5application-prod.properties
|
||||
|
||||
jwt.secret=aitrainer
|
@ -50,7 +50,7 @@ class ExerciseTypeTest {
|
||||
@Test
|
||||
fun testInsert(){
|
||||
logger.info("Add 'Húzodszkodás 2")
|
||||
val newEx = ExerciseType( 0,"Húzodszkodás 2", " A legtöbb húzodszkodást 24 óra alatt John Ort érte el 7600-al 2016-ban. ", null, null, null ,true)
|
||||
val newEx = ExerciseType( 0,"Húzodszkodás 2", " A legtöbb húzodszkodást 24 óra alatt John Ort érte el 7600-al 2016-ban. ", null, null, null ,true, false)
|
||||
val savedEx: ExerciseType = exerciseTypeRepository.save(newEx)
|
||||
assertEquals(savedEx.name, "Húzodszkodás 2")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user