Skip to content
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

Create the integration-tests/config-sync initial project #257

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ docker-compose_datadir*
/.metadata/

.vscode
datadir
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: deps install test docker

# run `make build-image[-*] PUSH=true` to push the images to dockerhub
PUSH?="false"
# run `make build-image[-*] SKIP_PUSH=true` to push the images to dockerhub
SKIP_PUSH?="true"

check:
./mvnw -f src/ -P-geoserver fmt:check -DskipTests -ntp -T4
Expand All @@ -21,19 +21,19 @@ build-image-openj9: build-image-infrastructure-openj9 build-image-geoserver-open

build-image-infrastructure:
./mvnw clean package -f src/apps/infrastructure \
-Ddocker -P-geoserver -Ddockerfile.push.skip=$(PUSH) -ntp -Dfmt.skip -DskipTests
-Ddocker -P-geoserver -Ddockerfile.push.skip=$(SKIP_PUSH) -ntp -Dfmt.skip -DskipTests

build-image-infrastructure-openj9:
./mvnw clean package -f src/apps/infrastructure \
-Dopenj9 -P-geoserver -Ddockerfile.push.skip=$(PUSH) -ntp -Dfmt.skip -DskipTests
-Dopenj9 -P-geoserver -Ddockerfile.push.skip=$(SKIP_PUSH) -ntp -Dfmt.skip -DskipTests

build-image-geoserver:
./mvnw clean package -f src/apps/geoserver \
-Ddocker -P-geoserver -Ddockerfile.push.skip=$(PUSH) -ntp -Dfmt.skip -DskipTests
-Ddocker -P-geoserver -Ddockerfile.push.skip=$(SKIP_PUSH) -ntp -Dfmt.skip -DskipTests

build-image-geoserver-openj9:
./mvnw clean package -f src/apps/geoserver \
-Dopenj9 -P-geoserver -Ddockerfile.push.skip=$(PUSH) -ntp -Dfmt.skip -DskipTests
-Dopenj9 -P-geoserver -Ddockerfile.push.skip=$(SKIP_PUSH) -ntp -Dfmt.skip -DskipTests

build-config-native-image:
./mvnw -pl :gs-cloud-config-service package -am -Dfmt.action=check -ntp -P-geoserver
Expand Down
4 changes: 0 additions & 4 deletions src/apps/geoserver/gwc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
<start-class>org.geoserver.cloud.gwc.app.GeoWebCacheApplication</start-class>
</properties>
<dependencies>
<dependency>
<groupId>org.geoserver.cloud</groupId>
<artifactId>gs-cloud-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.geoserver.cloud</groupId>
<artifactId>gs-cloud-starter-webmvc</artifactId>
Expand Down
8 changes: 0 additions & 8 deletions src/apps/geoserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,10 @@
<!-- <module>catalog</module>-->
</modules>
<dependencies>
<dependency>
<groupId>org.geoserver.cloud</groupId>
<artifactId>gs-cloud-starter-event-bus</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
Expand Down
5 changes: 0 additions & 5 deletions src/catalog/event-bus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<artifactId>gs-cloud-catalog-event-bus</artifactId>
<packaging>jar</packaging>
<description>Event bus catalog notification support</description>
<properties>
<testcontainers.version>1.15.1</testcontainers.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
Expand Down Expand Up @@ -59,13 +56,11 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>rabbitmq</artifactId>
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 0 additions & 4 deletions src/catalog/event-bus/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ spring:
allow-bean-definition-overriding: true
allow-circular-references: true # false by default since spring-boot 2.6.0, breaks geoserver initialization
cloud.bus.enabled: true
geoserver:
bus:
send-object: false
send-diff: false

logging:
level:
Expand Down
2 changes: 1 addition & 1 deletion src/integration-tests/catalog-service-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.geoserver.cloud</groupId>
<groupId>org.geoserver.cloud.it</groupId>
<artifactId>integration-tests</artifactId>
<version>${revision}</version>
</parent>
Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions src/integration-tests/config-sync/config
79 changes: 79 additions & 0 deletions src/integration-tests/config-sync/docker-compose-it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
version: "3.8"

services:
rabbitmq:
image: rabbitmq:3.9-management
user: ${GS_USER}
deploy:
resources:
limits:
cpus: '2.0'
memory: 1G

gateway:
image: geoservercloud/geoserver-cloud-gateway:1.0-SNAPSHOT
user: ${GS_USER}
environment:
SPRING_PROFILES_ACTIVE: standalone
RETRY_MAX_ATTEMPTS: 100
# eat our own dogfood and set a base path
GEOSERVER_BASE_PATH: /geoserver/cloud
volumes:
- ./config:/etc/gscloud
ports:
- 7777:8080
deploy:
resources:
limits:
cpus: '4.0'
memory: 1G
wfs:
image: geoservercloud/geoserver-cloud-wfs:1.0-SNAPSHOT
user: ${GS_USER}
depends_on:
- rabbitmq
environment:
SPRING_PROFILES_ACTIVE: standalone,datadir
RETRY_MAX_ATTEMPTS: 100
volumes:
- ./config:/etc/gscloud
- ${TMP_DATADIR}:/opt/app/data_directory
deploy:
resources:
limits:
cpus: '2.0'
memory: 1G

wms:
image: geoservercloud/geoserver-cloud-wms:1.0-SNAPSHOT
user: ${GS_USER}
depends_on:
- rabbitmq
environment:
SPRING_PROFILES_ACTIVE: standalone,datadir
RETRY_MAX_ATTEMPTS: 100
volumes:
- ./config:/etc/gscloud
- ${TMP_DATADIR}:/opt/app/data_directory
deploy:
resources:
limits:
cpus: '2.0'
memory: 1G

webui:
image: geoservercloud/geoserver-cloud-webui:1.0-SNAPSHOT
user: ${GS_USER}
depends_on:
- rabbitmq
environment:
SPRING_PROFILES_ACTIVE: standalone,datadir
RETRY_MAX_ATTEMPTS: 100
volumes:
- ./config:/etc/gscloud
- ${TMP_DATADIR}:/opt/app/data_directory
deploy:
resources:
limits:
cpus: '2.0'
memory: 1G
65 changes: 65 additions & 0 deletions src/integration-tests/config-sync/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.geoserver.cloud.it</groupId>
<artifactId>integration-tests</artifactId>
<version>${revision}</version>
</parent>
<artifactId>gs-cloud-config-sync-it</artifactId>
<packaging>jar</packaging>
<description>Cluster config synchronization integration tests</description>
<dependencies>
<dependency>
<groupId>org.geoserver.cloud</groupId>
<artifactId>gs-cloud-starter-webmvc</artifactId>
</dependency>
<dependency>
<groupId>org.geoserver.cloud</groupId>
<artifactId>gs-cloud-starter-vector-formats</artifactId>
</dependency>
<dependency>
<groupId>org.geoserver.cloud</groupId>
<artifactId>gs-cloud-starter-raster-formats</artifactId>
</dependency>
<dependency>
<groupId>org.geoserver.cloud.catalog</groupId>
<artifactId>gs-cloud-catalog-plugin</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>rabbitmq</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>
</plugins>
</build>
</project>