From db0ab06a1dcf573ffb97107eaf056393e8e71902 Mon Sep 17 00:00:00 2001 From: Will Reichert Date: Tue, 2 Apr 2019 09:57:17 -0500 Subject: [PATCH 1/2] add dependencies for jdk11 --- model/pom.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/model/pom.xml b/model/pom.xml index df3e39f8..8251680e 100644 --- a/model/pom.xml +++ b/model/pom.xml @@ -9,6 +9,16 @@ Performance Result Repository Model + + javax.annotation + javax.annotation-api + 1.3.2 + + + javax.xml.bind + jaxb-api + 2.3.0 + javax.validation validation-api From 58fa14e2d0cd0ea0fddac23c59dd8da75ba7bff8 Mon Sep 17 00:00:00 2001 From: Will Reichert Date: Tue, 2 Apr 2019 15:22:04 -0500 Subject: [PATCH 2/2] changes to deploy on WF-16 --- README.md | 4 ++++ model/src/main/sql/db_schema_creation.sql | 8 ++++---- .../main/webapp/WEB-INF/jboss-deployment-structure.xml | 7 +++++++ 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml diff --git a/README.md b/README.md index fe2567cc..1dbff036 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,10 @@ Older JAAS/PicketLink configuration can be still used, but you have to place it * password: `perfrepouser1.` * If you need more users, you have to add them manually into database. +``` +insert into public.user (id, username, first_name, last_name, email, password) values (nextVal('user_sequence'), 'userName', 'first', 'last', 'email', encode(decode(md5('password'),'hex'),'base64')); +insert into user_group (user_id, group_id) values ((select id from public.user where username='userName'), (select id from public.group where name='perfrepouser')); +``` # Running tests diff --git a/model/src/main/sql/db_schema_creation.sql b/model/src/main/sql/db_schema_creation.sql index 81faa09f..d26656d9 100644 --- a/model/src/main/sql/db_schema_creation.sql +++ b/model/src/main/sql/db_schema_creation.sql @@ -374,7 +374,7 @@ ALTER TABLE ONLY test_execution -- ALTER TABLE ONLY test_execution_tag - ADD CONSTRAINT test_execution_tag_pkey PRIMARY KEY (id); + ADD CONSTRAINT test_execution_tag_pkey PRIMARY KEY (tag_id); -- @@ -382,7 +382,7 @@ ALTER TABLE ONLY test_execution_tag -- ALTER TABLE ONLY test_metric - ADD CONSTRAINT test_metric_pkey PRIMARY KEY (id); + ADD CONSTRAINT test_metric_pkey PRIMARY KEY (metric_id); -- @@ -542,8 +542,8 @@ ALTER TABLE ONLY user_property -- REVOKE ALL ON SCHEMA public FROM PUBLIC; -REVOKE ALL ON SCHEMA public FROM postgres; -GRANT ALL ON SCHEMA public TO postgres; +--REVOKE ALL ON SCHEMA public FROM postgres; +--GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO PUBLIC; ----------------------------------------------------------------------------------------------- diff --git a/web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml b/web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml new file mode 100644 index 00000000..65ac8f1a --- /dev/null +++ b/web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file