Skip to content

Commit

Permalink
#322 get rid of redundant test connections
Browse files Browse the repository at this point in the history
  • Loading branch information
mgramin committed May 18, 2019
1 parent 3c51437 commit fb4f8be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@ internal class EndpointListTest {
lateinit var endpointList: EndpointList

@ParameterizedTest
@ValueSource(strings = ["test", "dev", "prod"])
@ValueSource(strings = ["h2"])
fun getConnectionByName(connectionName: String) {
assertEquals(connectionName, endpointList.getByName(connectionName).name())
}

@ParameterizedTest
@ValueSource(strings = ["test", "dev", "prod"])
@ValueSource(strings = ["h2"])
fun getConnectionsByMask(connectionMask: String) {
assertEquals(connectionMask, endpointList.getByMask(connectionMask).first().name())
}

@Test
fun getConnections() {
assertEquals(4, endpointList.endpoints.count())
assertEquals(1, endpointList.endpoints.count())
}

}
39 changes: 0 additions & 39 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,6 @@ conf:
"visible": false,
"description": "Embedded db for unit tests only"
}
- name: dev
host: 127.0.0.1
dialect: h2
baseFolder: file:conf/h2/md/database
driverClassName: org.h2.Driver
properties: >
{
"url": "jdbc:h2:mem:;INIT=RUNSCRIPT FROM 'classpath:schema.sql';",
"visible": false,
"color": "green",
"description": "Develop demo db",
"css_class": "fas fa-fw fa-2x fa-tools"
}
- name: test
host: 127.0.0.1
dialect: h2
baseFolder: file:conf/h2/md/database
driverClassName: org.h2.Driver
properties: >
{
"url": "jdbc:h2:mem:;INIT=RUNSCRIPT FROM 'classpath:schema.sql';",
"visible": false,
"color": "orange",
"description": "Testing demo db",
"css_class": "fas fa-fw fa-2x fa-bug"
}
- name: prod
host: 127.0.0.1
dialect: h2
baseFolder: file:conf/h2/md/database
driverClassName: org.h2.Driver
properties: >
{
"url": "jdbc:h2:mem:;INIT=RUNSCRIPT FROM 'classpath:schema.sql';",
"visible": false,
"color": "red",
"description": "Production demo db",
"css_class": "fas fa-fw fa-2x fa-bicycle"
}
spring:
jmx:
Expand Down

0 comments on commit fb4f8be

Please sign in to comment.