@@ -85,10 +85,10 @@ mvn clean package -Drevision=$(git describe --tags --always)
8585
8686#### Integration Tests with Docker Compose
8787
88- To execute the integration tests (requires [ Docker] ( https://docker.com/ ) ) run:
88+ To execute the integration tests (requires [ Docker] ( https://docker.com/ ) with [ compose ] ( https://github.com/docker/compose ) plugin ) run:
8989
9090``` bash
91- export KAFKA_VERSION=4.0 .0
91+ export KAFKA_VERSION=4.1 .0
9292export COMPOSE_FILE=e2e/docker_compose.yaml
9393mvn clean verify -Drevision=$( git describe --tags --always)
9494```
@@ -116,9 +116,6 @@ locally e.g., to create the local environment:
116116``` bash
117117# create the JAR which will be loaded into Kafka Connect (Docker Volume)
118118mvn clean package -Drevision=$( git describe --tags --always)
119-
120- # move to the e2e directory
121- cd e2e
122119```
123120
124121Skip the next step if you already have these credentials configured in your environment:
@@ -139,7 +136,7 @@ export AWS_SESSION_TOKEN=ABCDEFGHIJKLMNOPQRST
139136The following command removes any previous resources and creates the local test environment:
140137
141138``` bash
142- docker compose -f docker_compose.yaml down --remove-orphans -v && docker compose -f docker_compose.yaml up
139+ docker compose -f e2e/ docker_compose.yaml down --remove-orphans -v && docker compose -f e2e/ docker_compose.yaml up
143140```
144141
145142> [ !NOTE]
@@ -153,10 +150,10 @@ e2e-connect-1 | [2023-07-12 09:07:29,263] INFO Kafka Connect started (org.ap
153150```
154151
155152Change the JSON configuration example ` connect-config.json ` (uses LocalStack defaults) according to your
156- environment. In a separate terminal (within the ` e2e ` folder) deploy the connector:
153+ environment. In a separate terminal (within the project root folder) deploy the connector:
157154
158155``` bash
159- curl -i --fail-with-body -X POST -H " Accept:application/json" -H " Content-Type:application/json" http://$( docker compose -f docker_compose.yaml port connect 8083) /connectors/ -d @connect-config.json
156+ curl -i --fail-with-body -X POST -H " Accept:application/json" -H " Content-Type:application/json" http://$( docker compose -f e2e/ docker_compose.yaml port connect 8083) /connectors/ -d @e2e/ connect-config.json
160157```
161158
162159The output should look like:
@@ -184,7 +181,7 @@ Produce a Kafka record to invoke the EventBridge sink connector:
184181
185182``` bash
186183# open a shell in the Kafka broker container
187- docker compose -f docker_compose.yaml exec -w /opt/kafka/bin kafka /bin/bash
184+ docker compose -f e2e/ docker_compose.yaml exec -w /opt/kafka/bin kafka /bin/bash
188185
189186# produce an event
190187# replace the topic with your connector settings if needed
@@ -231,7 +228,7 @@ The output event should look similar to the below:
231228To tear down the environment run:
232229
233230``` bash
234- docker compose -f docker_compose.yaml down --remove-orphans -v
231+ docker compose -f e2e/ docker_compose.yaml down --remove-orphans -v
235232```
236233
237234##### Remote Debug the Connector
0 commit comments