Browse Source

DATAJDBC-320 - Removed container-license-acceptance.txt.

This file accepted the license condition of Microsoft for there Docker image when running tests.
Very likely without the person using this knowing that she is accepting a license.
The file now has to be explicitly provided.

The Travis CI build adds the container-license-acceptance.txt for the build only.
pull/112/head
Jens Schauder 7 years ago
parent
commit
7204eaf0b3
  1. 3
      .gitignore
  2. 1
      .travis.yml
  3. 8
      spring-data-jdbc/README.adoc
  4. 1
      spring-data-jdbc/src/test/resources/container-license-acceptance.txt

3
.gitignore vendored

@ -8,3 +8,6 @@ target/ @@ -8,3 +8,6 @@ target/
.sonar4clipse
*.sonar4clipseExternals
*.graphml
#prevent license accapting file to get accidentially commited to git
container-license-acceptance.txt

1
.travis.yml

@ -27,5 +27,6 @@ services: @@ -27,5 +27,6 @@ services:
install: true
script:
- "echo 'microsoft/mssql-server-linux:2017-CU6' > spring-data-jdbc/src/test/resources/container-license-acceptance.txt"
- "mvn -version"
- "mvn clean dependency:list test -Pall-dbs${NO_JACOCO:+',no-jacoco'} -Dsort -U"

8
spring-data-jdbc/README.adoc

@ -62,6 +62,14 @@ Currently the following _databasetypes_ are available: @@ -62,6 +62,14 @@ Currently the following _databasetypes_ are available:
* mysql
* postgres
* mariadb
* mssql
Testing with Microsoft SQL Server requires you to accept the EULA of the Microsoft SQL Server Docker image, so the build may download and run it for you.
In order to accept the EULA please add a file named `container-license-acceptance.txt` to the classpath, i.e. `src/test/resources` with the content:
```
microsoft/mssql-server-linux:2017-CU6
```
=== Run tests with all databases

1
spring-data-jdbc/src/test/resources/container-license-acceptance.txt

@ -1 +0,0 @@ @@ -1 +0,0 @@
microsoft/mssql-server-linux:2017-CU6
Loading…
Cancel
Save