Skip to content

Commit c0b67bc

Browse files
committed
Add e2e test for hsql
1 parent 86bfe5e commit c0b67bc

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/end2end.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- { name: JavalinPostgres, test_file: end2end/javalin_postgres.py }
4646
- { name: JavalinMySQLKotlin, test_file: end2end/javalin_mysql_kotlin.py }
4747
- { name: SpringBoot2.7Postgres, test_file: end2end/spring_boot_2.7_postgres.py }
48+
- { name: SpringBootHyperSQL, test_file: end2end/spring_boot_hypersql.py }
4849
java-version: [17, 18, 19, 20, 21]
4950
distribution: ['adopt', 'corretto', 'oracle']
5051
steps:

end2end/spring_boot_hypersql.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from utils import App, Request
2+
3+
spring_boot_hsql_app = App(8108)
4+
5+
spring_boot_hsql_app.add_payload("sql",
6+
safe_request=Request("/api/pets/create", body={"name": "Bobby"}),
7+
unsafe_request=Request("/api/pets/create", body={"name": "Malicious Pet', 'Gru from the Minions') -- "})
8+
)
9+
10+
spring_boot_hsql_app.test_all_payloads()

0 commit comments

Comments
 (0)