Skip to content

Commit 74c5838

Browse files
committed
additional info and dockerfile
1 parent 29917fc commit 74c5838

File tree

7 files changed

+41
-2
lines changed

7 files changed

+41
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ For simplicity, all schemas are also available as JSON/YML files under the folde
7070
> **IMPORTANT**: More details (e.g., #LOCs and used databases) on these APIs can be found [in this table](statistics/table_emb.md).
7171
7272

73-
### REST: Java/Kotlin (32)
73+
### REST: Java/Kotlin (33)
7474

7575
* **Bibliothek** (MIT), [jdk_17_gradle/cs/rest/bibliothek](jdk_17_gradle/cs/rest/bibliothek), from [https://github.com/PaperMC/bibliothek](https://github.com/PaperMC/bibliothek)
7676

@@ -90,6 +90,8 @@ For simplicity, all schemas are also available as JSON/YML files under the folde
9090

9191
* **Gestao Hospital** (not-known license), [jdk_8_maven/cs/rest-gui/gestaohospital](jdk_8_maven/cs/rest-gui/gestaohospital), from [https://github.com/ValchanOficial/GestaoHospital](https://github.com/ValchanOficial/GestaoHospital)
9292

93+
* **HTTP Patch Spring** (MIT), [jdk_11_maven/cs/rest/http-patch-spring](jdk_11_maven/cs/rest/http-patch-spring), from [https://github.com/cassiomolin/http-patch-spring](https://github.com/cassiomolin/http-patch-spring)
94+
9395
* **Languagetool** (LGPL), [jdk_8_maven/cs/rest/original/languagetool](jdk_8_maven/cs/rest/original/languagetool), from [https://github.com/languagetool-org/languagetool](https://github.com/languagetool-org/languagetool)
9496

9597
* **Market** (MIT), [jdk_11_maven/cs/rest-gui/market](jdk_11_maven/cs/rest-gui/market), from [https://github.com/aleksey-lukyanets/market](https://github.com/aleksey-lukyanets/market)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM amazoncorretto:11-alpine-jdk
2+
3+
COPY ./dist/http-patch-spring-sut.jar .
4+
COPY ./dist/jacocoagent.jar .
5+
6+
7+
8+
#ENV TOOL="undefined"
9+
#ENV RUN="0"
10+
11+
ENTRYPOINT \
12+
java \
13+
# unfortunately dumponexit is completely unreliable in Docker :(
14+
# -javaagent:jacocoagent.jar=destfile=./jacoco/http-patch-spring__${TOOL}__${RUN}__jacoco.exec,append=false,dumponexit=true \
15+
-javaagent:jacocoagent.jar=output=tcpserver,address=*,port=6300,append=false,dumponexit=false \
16+
-jar http-patch-spring-sut.jar \
17+
--server.port=8080

dockerfiles/http-patch-spring.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
services:
2+
sut-http-patch-spring:
3+
build:
4+
dockerfile: ./dockerfiles/http-patch-spring.dockerfile
5+
context: ..
6+
# environment:
7+
# TOOL: ${TOOL:-undefined}
8+
# RUN: ${RUN:-0}
9+
ports:
10+
- "${HOST_PORT:-8080}:8080"
11+
- "${JACOCO_PORT:-6300}:6300"
12+
# volumes:
13+
# default env does not work on volumes
14+
# - ${JACOCODIR}:/jacoco
15+

scripts/dist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ def build_jdk_11_maven():
241241
copy(folder + "/cs/rest/pay-publicapi/target/pay-publicapi-sut.jar", DIST)
242242
copy(folder + "/em/external/rest/pay-publicapi/target/pay-publicapi-evomaster-runner.jar", DIST)
243243

244+
copy(folder + "/cs/rest/http-patch-spring/target/http-patch-spring-sut.jar", DIST)
245+
copy(folder + "/em/external/rest/http-patch-spring/target/http-patch-spring-evomaster-runner.jar", DIST)
244246

245247
ind1 = os.environ.get('SUT_LOCATION_IND1', '')
246248
if ind1 == '':

scripts/dockerize/data/sut.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ spring-rest-example,TRUE,"","--server.port=8080 --spring.datasource.username=roo
3030
erc20-rest-service,TRUE,"",--server.port=8080,http://localhost:8080/v2/api-docs,http://localhost:8080,FALSE,,,,,,FALSE,FALSE,
3131
spring-actuator-demo,TRUE,"",--server.port=8080,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,,,,,,FALSE,FALSE,
3232
webgoat,TRUE,"-Drunning.in.docker=true","--webgoat.port=8080 --webwolf.port=8081 --server.address=""0.0.0.0"" --spring.profiles.active=dev --spring.datasource.driver-class-name=org.h2.Driver --spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect --spring.jpa.properties.jakarta.persistence.schema-generation.scripts.action=none --spring.sql.init.mode=never --spring.datasource.url=""jdbc:h2:file:./test"" --spring.datasource.username=sa --spring.datasource.password",http://localhost:8080/WebGoat/v3/api-docs,http://localhost:8080,TRUE,,,,,,FALSE,FALSE,
33-
swagger-petstore,TRUE,"","8080",http://localhost:8080//api/v3/openapi.json,http://localhost:8080,TRUE,,,,,,FALSE,FALSE,
33+
swagger-petstore,TRUE,"","8080",http://localhost:8080/api/v3/openapi.json,http://localhost:8080,TRUE,,,,,,FALSE,FALSE,
34+
http-patch-spring,TRUE,"",--server.port=8080,http://localhost:8080/v3/api-docs,http://localhost:8080,FALSE,,,,,,FALSE,FALSE,

statistics/data.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ TRUE,cwa-verification,REST,Java,JDK 11,Maven,47,3955,H2,Apache,5,FALSE,https://g
1515
TRUE,erc20-rest-service,REST,Java,JDK 8,Gradle,7,1378,,UNDEFINED,13,FALSE,https://github.com/web3labs/erc20-rest-service
1616
TRUE,features-service,REST,Java,JDK 8,Maven,39,2275,H2,Apache,18,FALSE,https://github.com/JavierMF/features-service
1717
TRUE,gestaohospital,REST,Java,JDK 8,Maven,33,3506,MongoDB,UNDEFINED,20,FALSE,https://github.com/ValchanOficial/GestaoHospital
18+
TRUE,http-patch-spring,REST,Java,JDK 11,Maven,30,1450,,MIT,6,FALSE,https://github.com/cassiomolin/http-patch-spring
1819
TRUE,languagetool,REST,Java,JDK 8,Maven,1385,174781,,LGPL,2,FALSE,https://github.com/languagetool-org/languagetool
1920
TRUE,ocvn,REST,Java,JDK 8,Maven,526,45521,H2;MongoDB,MIT,258,TRUE,https://github.com/devgateway/ocvn
2021
TRUE,ohsome-api,REST,Java,JDK 17,Maven,87,14166,OSHDB,AGPL-3.0,134,FALSE,https://github.com/GIScience/ohsome-api

statistics/table_emb.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
|__reservations-api__|REST|1853|39|7|Java|JDK 11|Gradle|MongoDB|✓|
3030
|__swagger-petstore__|REST|1631|23|19|Java|JDK 8|Maven|||
3131
|__session-service__|REST|1471|15|8|Java|JDK 8|Maven|MongoDB||
32+
|__http-patch-spring__|REST|1450|30|6|Java|JDK 11|Maven|||
3233
|__spring-rest-example__|REST|1426|32|9|Java|JDK 17|Maven|MySQL||
3334
|__erc20-rest-service__|REST|1378|7|13|Java|JDK 8|Gradle|||
3435
|__person-controller__|REST|1112|16|12|Java|JDK 21|Maven|MongoDB||

0 commit comments

Comments
 (0)