Hi Mark, thanks for the update... maybe that should be in a README for the module, indicated as a suggestion. Thinking out loud about our current predicament... one way to solve it, would be to add a gihub action running a oracle VM, and running the tests, similar to the one I recently added for PostGIS:
https://github.com/geotools/geotools/blob/master/.github/workflows/postgis_online.yml I cannot find an action spinning up Oracle, but this SO entry seems to suggest one can run random docker images too: https://stackoverflow.com/questions/57549439/how-do-i-use-docker-with-github-actions This one could be useful too: https://help.github.com/en/actions/building-actions/creating-a-docker-container-action If something like this could be setup, it would solve all future issues regarding running Oracle tests for PRs. Cheers Andrea On Thu, Apr 16, 2020 at 10:41 AM Mark Prins <mc.pr...@gmail.com> wrote: > > Op wo 15 apr. 2020 om 16:07 schreef Mark Prins <mc.pr...@gmail.com>: > >> I will post a quick note on how to set up the Oracle schema, at least for >> 12.2, tomorrow when I get back in the office. >> I currently have this module set up on our in-house Jenkins. >> >> > something along the following should do for creating an integration test > schema for Geotools (your DBA may disagree with this, it's what they do, > especially when it comes to Oracle DBA's): > > -- create user GEOTOOLS with password "geotools" using defined tablespaces > CREATE USER "GEOTOOLS" IDENTIFIED BY "geotools" > DEFAULT TABLESPACE "DATA_TS" > TEMPORARY TABLESPACE "TEMP" > > -- grant roles > GRANT "CONNECT" TO "GEOTOOLS" > GRANT "RESOURCE" TO "GEOTOOLS" > > -- system grants > GRANT CREATE SESSION TO "GEOTOOLS" > GRANT ALTER SESSION TO "GEOTOOLS" > GRANT UNLIMITED TABLESPACE TO "GEOTOOLS" > GRANT CREATE TABLE TO "GEOTOOLS" > GRANT CREATE SYNONYM TO "GEOTOOLS" > GRANT CREATE VIEW TO "GEOTOOLS" > GRANT CREATE SEQUENCE TO "GEOTOOLS" > GRANT CREATE PROCEDURE TO "GEOTOOLS" > GRANT CREATE TRIGGER TO "GEOTOOLS" > GRANT CREATE MATERIALIZED VIEW TO "GEOTOOLS" > GRANT CREATE OPERATOR TO "GEOTOOLS" > > > And then in your ~/.geotools a file called "oracle.properties" with the > following content: > > user=geotools > username=geotools > password=geotools > schema=GEOTOOLS > dbtype=Oracle > database=orcl > host=192.168.1.11 > port=1521 > url=jdbc\:oracle\:thin\:@192.168.1.11\:1521\:orcl > driver=oracle.jdbc.OracleDriver > > You'll need to change the IPadress and database instance in there ofcourse > > running the test locally can be accompished using: > mvn clean install -Dall -pl :gt-jdbc-oracle -Ponline -Doracle=true (for > master branch) > and > mvn clean install -Dall -pl :gt-jdbc-oracle -Ponline (for feature branch, > as the oracle property was removed) > > > -- > Disclaimer; > This message is just a reflection of what I thought at the time of > sending. The message may contain information that is not intended for you > or that you don't understand. > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users