-
Notifications
You must be signed in to change notification settings - Fork 415
Add custer mode test in the CI #3943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3a46d11
Add cluster mode test in the CI
sbrunner 5b6b663
Separate error messages
sbrunner 026cf31
Add some information about the examples tests in CI
sbrunner d31aed3
Disable test failing in cluster mode
sbrunner 4ab4fc3
Add timeout on acceptance tests run
sbrunner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
core/extraConfigFor/acceptanceTests/mapfish-spring-application-context-override-db.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
| <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xmlns:security="http://www.springframework.org/schema/security" | ||
| xmlns="http://www.springframework.org/schema/beans" | ||
| xsi:schemaLocation=" | ||
| http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | ||
| http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd"> | ||
|
|
||
| <!-- Use hibernate instead of the registry to store the job queue. configure the data source as well --> | ||
| <bean id="jobQueue" class="org.mapfish.print.servlet.job.impl.hibernate.HibernateJobQueue"/> | ||
| <bean id="mfDataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> | ||
| <property name="driverClass" value="org.postgresql.Driver"/> | ||
| <property name="jdbcUrl" value="jdbc:postgresql://${db.host}:${db.port:5432}/${db.name}"/> | ||
| <property name="user" value="${db.username}"/> | ||
| <property name="password" value="${db.password}"/> | ||
| <property name="minPoolSize" value="1"/> | ||
| <property name="numHelperThreads" value="1"/> | ||
| <property name="maxIdleTime" value="30"/> | ||
| </bean> | ||
|
|
||
| <!-- Force the job manager the support clustering, by not taking submitted jobs automatically as its own. | ||
| This mode requires the hibernate job queue, the registry job queue is unsupported. | ||
| oldFileCleanUp should be turned off if hibernate is used for print job results (see below) --> | ||
| <bean class="org.springframework.beans.factory.config.PropertyOverrideConfigurer"> | ||
| <property name="ignoreResourceNotFound" value="true"/> | ||
| <property name="properties"> | ||
| <props> | ||
| <prop key="jobManager.clustered">true</prop> | ||
| <prop key="jobManager.oldFileCleanUp">false</prop> | ||
| </props> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <!-- Use hibernate to read and write print job results --> | ||
| <bean id="printJobPrototype" class="org.mapfish.print.servlet.job.impl.hibernate.HibernatePrintJob" | ||
| scope="prototype"/> | ||
| <bean id="fileReportLoader" class="org.mapfish.print.servlet.job.impl.hibernate.HibernateReportLoader"/> | ||
| <bean id="accounting" class="org.mapfish.print.servlet.job.HibernateAccounting" lazy-init="false"/> | ||
|
|
||
| <bean name="bcryptEncoder" | ||
| class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder"/> | ||
|
|
||
| <security:authentication-manager alias="authenticationManager"> | ||
| <security:authentication-provider> | ||
| <security:password-encoder ref="bcryptEncoder"/> | ||
| <security:user-service> | ||
| <!-- password is jimi --> | ||
| <security:user name="jimi" | ||
| password="$2a$10$OeKmMfVmL2IbF/3skK8l2.Gl3EqvvGhb.Pxr/K0dN7.ttPRHsOzVW" | ||
| authorities="ROLE_USER, ROLE_ADMIN"/> | ||
| <!-- password is bob --> | ||
| <security:user name="bob" | ||
| password="$2a$10$D5gwUewQQSpjfZPTcj9rpuTTfmxAqNEyJ19pzC7Z9.fHSCl3jtDj." | ||
| authorities="ROLE_USER"/> | ||
| </security:user-service> | ||
| </security:authentication-provider> | ||
| </security:authentication-manager> | ||
| </beans> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| services: | ||
| db: | ||
| image: postgres:15.15 | ||
| environment: | ||
| POSTGRES_DB: print | ||
| POSTGRES_USER: print | ||
| POSTGRES_PASSWORD: print | ||
|
|
||
| geoserver: | ||
| image: camptocamp/geoserver:16 | ||
| volumes: | ||
| - ./examples/geoserver-data/:/mnt/geoserver_datadir | ||
| - ./core/src/test/resources/map-data/:/mnt/geoserver_datadir/www/map-data | ||
|
|
||
| print: | ||
| image: mapfish_print_tester | ||
| user: ${USER_ID} | ||
| volumes: | ||
| - ./examples/src/test/resources/examples:/usr/local/tomcat/webapps/ROOT/print-apps:ro | ||
| ports: | ||
| - 8080:8080 | ||
| environment: | ||
| PRINT_YAML_MAX_ALIASES: '200' | ||
| LOG_LEVEL: DEBUG | ||
| JASPER_LOG_LEVEL: DEBUG | ||
| CATALINA_OPTS: '-Ddb.host=db -Ddb.username=print -Ddb.password=print -Ddb.name=print' | ||
| JAVA_OPTS: '-Dmapfish.image.plugins=true' | ||
|
|
||
| tests: | ||
| image: mapfish_print_builder | ||
| user: ${USER_ID} | ||
| command: tail --follow /dev/null | ||
| volumes: | ||
| - ./examples/src:/src/examples/src:ro | ||
| - ./examples/src/test/resources/examples:/src/examples/src/test/resources/examples | ||
| - ./examples/build/reports:/src/examples/build/reports | ||
| - ./examples/build/resources:/src/examples/build/resources | ||
| environment: | ||
| PRINT_YAML_MAX_ALIASES: '200' | ||
| GRADLE_USER_HOME: /home/gradle/.gradle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.