summaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/application.properties11
-rw-r--r--src/test/resources/schema.sql14
2 files changed, 25 insertions, 0 deletions
diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties
new file mode 100644
index 0000000..8161d6c
--- /dev/null
+++ b/src/test/resources/application.properties
@@ -0,0 +1,11 @@
+spring.datasource.driver-class-name=org.h2.Driver
+spring.datasource.jdbc-url=jdbc:h2:mem:pubshweb;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false
+spring.jpa.show-sql=true
+spring.jpa.generate-ddl=true
+# This is a bogus endpoint, the results are mocked, but the Keycloak library does not know that:
+keycloak.auth-server-url=http://127.0.0.9:98765/
+keycloak.realm=local-devel
+keycloak.resource=portal-app
+keycloak.public-client=true
+### VERY BAD, TO-DO: mock Docker results:
+lysergic.docker.endpoint=tcp://sweetsuse:2375 \ No newline at end of file
diff --git a/src/test/resources/schema.sql b/src/test/resources/schema.sql
new file mode 100644
index 0000000..a369f62
--- /dev/null
+++ b/src/test/resources/schema.sql
@@ -0,0 +1,14 @@
+CREATE TABLE scheduled_tasks (
+ task_name varchar(40) not null,
+ task_instance varchar(100) not null,
+ task_data blob,
+ execution_time timestamp(6) not null,
+ picked BOOLEAN not null,
+ picked_by varchar(50),
+ last_success timestamp(6) null,
+ last_failure timestamp(6) null,
+ consecutive_failures INT,
+ last_heartbeat timestamp(6) null,
+ version BIGINT not null,
+ PRIMARY KEY (task_name, task_instance)
+); \ No newline at end of file