@@ -6,15 +6,9 @@ for a verinice database. The verinice REST service is a [Spring
66Boot] ( http://projects.spring.io/spring-boot/ ) application build with
77[ Maven] ( https://maven.apache.org/ ) .
88
9- ## Run
10-
11- call e.g.
12-
13- mvn spring-boot:run -Dlogging.level.org.springframework=TRACE -Drun.arguments="--server.port=8081"
14-
159## Modules
1610
17- The project consist of several modules to seperate concerns. This section
11+ The project consist of several modules to separate concerns. This section
1812describes the modules of the project.
1913
2014### verinice-interface
@@ -41,7 +35,9 @@ To build the application run
4135
4236 mvn install
4337
44- If want to start SpringBoot you can then run
38+ you can then install the * ./verinice-rest/target/verinice-rest-xxx.jar* .
39+
40+ If want to start SpringBoot in development you can then run
4541
4642 mvn -pl verinice-rest spring-boot:run
4743
@@ -51,21 +47,22 @@ assuming you have proper database setup up, see [application.properties](verinic
5147Integration tests are written in python using [ Requests] [ ]
5248and standard python [ unittest] [ py-unittest ] .
5349
54- Since no maven plugin has been found wich could start spring-boot and run the
50+ Since no maven plugin has been found which could start spring-boot and run the
5551test against a custom database a shell script has been written to batch several
5652steps. To run the integration tests execute
5753
5854 ./integration-test
5955
6056The script uses the following variables
6157
62- - ` VERINICEDB ` The database name to connect to at localhost.
63- - ` VERINICEUSER ` The user which spring should use for the database. Has to exists.
64- - ` VERINICEPASSWORD ` The password for the database ` $VERINICEUSER ` .
65- - ` VERINICEDUMP ` The location to a database dumb which shall be used to recreate the ` $VERINICEDB ` .
66- - ` SPRINGDELAY ` Time to sleep before running the tests to give spring time to boot.
58+ - ` VERINICEDBSERVER ` the database server URL
59+ - ` VERINICEDB ` the database name to connect to at $VERINICEDBSERVER
60+ - ` VERINICEUSER ` the user which spring should use for the database (has to exists)
61+ - ` VERINICEPASSWORD ` the password for the database ` $VERINICEUSER `
62+ - ` VERINICEDUMP ` the location to a database dumb which shall be used to recreate the ` $VERINICEDB `
63+ - ` SPRINGDELAY ` time to sleep before running the tests to give spring time to boot
6764
68- i.e. to run the test against a custom database with a special user run
65+ i. e. to run the test against a custom database with a special user run
6966
7067 VERINICEDB=databasename VERINICEUSER=user VERINICEPASSWORD=password ./integration-test
7168
@@ -135,25 +132,7 @@ To release a new version (here 0.1 is assumed) of the project, you should
135132 git merge --no-ff release/0.1
136133 git push origin develop
137134
138- ## Logging
139- Logging can be change and start time by setting the environment variable family
140- ` logging.level.* `
141-
142- ### Received Requests
143-
144- -Dlogging.level.org.springframework.web.servlet=DEBUG
145-
146- ### verinice specific logging
147-
148- -Dlogging.level.org.verinice=TRACE
149-
150- ## Misc
151- To run the created jar with customizations run, e. g.
152-
153- java -jar verinice-rest-0.1.0.jar --spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/verinicedb --server.port=8888
154-
155135## Troubleshooting
156-
157136### Could not resolve dependencies
158137If you get an error like this
159138
0 commit comments