Skip to content

Commit 5612da4

Browse files
authored
chore(deps): Update dependency versions (#101)
- Quarkus 3.26.0 - Apache Camel 4.14.0 - Citrus 4.8.0
1 parent 94fff7c commit 5612da4

File tree

9 files changed

+36
-28
lines changed

9 files changed

+36
-28
lines changed

aws-ddb-streams-source/src/test/java/dev/knative/eventing/connector/AwsDdbStreamsSourceTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import io.quarkus.test.junit.QuarkusTest;
2323
import org.citrusframework.TestCaseRunner;
24+
import org.citrusframework.actions.testcontainers.aws2.AwsService;
2425
import org.citrusframework.annotations.CitrusResource;
2526
import org.citrusframework.context.TestContext;
2627
import org.citrusframework.http.endpoint.builder.HttpEndpoints;
@@ -48,7 +49,7 @@
4849

4950
@QuarkusTest
5051
@CitrusSupport
51-
@LocalStackContainerSupport(services = LocalStackContainer.Service.DYNAMODB, containerLifecycleListener = AwsDdbStreamsSourceTest.class)
52+
@LocalStackContainerSupport(services = AwsService.DYNAMODB, containerLifecycleListener = AwsDdbStreamsSourceTest.class)
5253
public class AwsDdbStreamsSourceTest implements ContainerLifecycleListener<LocalStackContainer> {
5354

5455
@CitrusResource
@@ -121,15 +122,15 @@ private void putItem(TestContext context) {
121122
item.put("year", AttributeValue.builder().n("1977").build());
122123
item.put("title", AttributeValue.builder().s("Star Wars IV").build());
123124

124-
DynamoDbClient ddbClient = localStackContainer.getClient(LocalStackContainer.Service.DYNAMODB);
125+
DynamoDbClient ddbClient = localStackContainer.getClient(AwsService.DYNAMODB);
125126
ddbClient.putItem(b -> b.tableName(ddbTableName)
126127
.item(item)
127128
.returnValues(ReturnValue.ALL_OLD));
128129
}
129130

130131
@Override
131132
public Map<String, String> started(LocalStackContainer container) {
132-
DynamoDbClient ddbClient = container.getClient(LocalStackContainer.Service.DYNAMODB);
133+
DynamoDbClient ddbClient = container.getClient(AwsService.DYNAMODB);
133134

134135
ddbClient.createTable(b -> {
135136
b.tableName(ddbTableName);

aws-eventbridge-sink/src/test/java/dev/knative/eventing/connector/AwsEventBridgeSinkTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import io.quarkus.test.junit.QuarkusTest;
2424
import org.citrusframework.TestCaseRunner;
25+
import org.citrusframework.actions.testcontainers.aws2.AwsService;
2526
import org.citrusframework.annotations.CitrusResource;
2627
import org.citrusframework.context.TestContext;
2728
import org.citrusframework.exceptions.CitrusRuntimeException;
@@ -52,7 +53,7 @@
5253

5354
@QuarkusTest
5455
@CitrusSupport
55-
@LocalStackContainerSupport(services = { LocalStackContainer.Service.EVENT_BRIDGE, LocalStackContainer.Service.SQS }, containerLifecycleListener = AwsEventBridgeSinkTest.class)
56+
@LocalStackContainerSupport(services = { AwsService.EVENT_BRIDGE, AwsService.SQS }, containerLifecycleListener = AwsEventBridgeSinkTest.class)
5657
public class AwsEventBridgeSinkTest implements ContainerLifecycleListener<LocalStackContainer> {
5758

5859
@CitrusResource
@@ -123,7 +124,7 @@ public void shouldOverwriteCloudEventAttributes() {
123124
}
124125

125126
private void verifySqsEvent(TestContext context) {
126-
SqsClient sqsClient = localStackContainer.getClient(LocalStackContainer.Service.SQS);
127+
SqsClient sqsClient = localStackContainer.getClient(AwsService.SQS);
127128

128129
ListQueuesResponse listQueuesResult = sqsClient.listQueues(b ->
129130
b.maxResults(100).queueNamePrefix(sqsQueueName));
@@ -157,7 +158,7 @@ private void verifySqsEvent(TestContext context) {
157158

158159
@Override
159160
public Map<String, String> started(LocalStackContainer container) {
160-
EventBridgeClient eventBridgeClient = container.getClient(LocalStackContainer.Service.EVENT_BRIDGE);
161+
EventBridgeClient eventBridgeClient = container.getClient(AwsService.EVENT_BRIDGE);
161162

162163
// Add an EventBridge rule on the event
163164
PutRuleResponse putRuleResponse = eventBridgeClient.putRule(b -> b.name("events-cdc")
@@ -170,7 +171,7 @@ public Map<String, String> started(LocalStackContainer container) {
170171
"""));
171172

172173
// Create SQS queue acting as an EventBridge notification endpoint
173-
SqsClient sqsClient = container.getClient(LocalStackContainer.Service.SQS);
174+
SqsClient sqsClient = container.getClient(AwsService.SQS);
174175
CreateQueueResponse createQueueResponse = sqsClient.createQueue(b -> b.queueName(sqsQueueName));
175176

176177
// Modify access policy for the queue just created, so EventBridge rule is allowed to send messages

aws-s3-sink/src/test/java/dev/knative/eventing/connector/AwsS3SinkTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import io.quarkus.test.junit.QuarkusTest;
2525
import org.citrusframework.TestCaseRunner;
26+
import org.citrusframework.actions.testcontainers.aws2.AwsService;
2627
import org.citrusframework.annotations.CitrusResource;
2728
import org.citrusframework.context.TestContext;
2829
import org.citrusframework.exceptions.CitrusRuntimeException;
@@ -44,7 +45,7 @@
4445

4546
@QuarkusTest
4647
@CitrusSupport
47-
@LocalStackContainerSupport(services = LocalStackContainer.Service.S3, containerLifecycleListener = AwsS3SinkTest.class)
48+
@LocalStackContainerSupport(services = AwsService.S3, containerLifecycleListener = AwsS3SinkTest.class)
4849
public class AwsS3SinkTest implements ContainerLifecycleListener<LocalStackContainer> {
4950

5051
@CitrusResource
@@ -87,7 +88,7 @@ public void shouldConsumeEvents() {
8788
}
8889

8990
private void verifyS3File(TestContext context) {
90-
S3Client s3Client = localStackContainer.getClient(LocalStackContainer.Service.S3);
91+
S3Client s3Client = localStackContainer.getClient(AwsService.S3);
9192

9293
ResponseInputStream<GetObjectResponse> getObjectResponse = s3Client.getObject(b -> b.bucket(s3BucketName).key(s3Key));
9394
try {
@@ -101,7 +102,7 @@ private void verifyS3File(TestContext context) {
101102

102103
@Override
103104
public Map<String, String> started(LocalStackContainer container) {
104-
S3Client s3Client = container.getClient(LocalStackContainer.Service.S3);
105+
S3Client s3Client = container.getClient(AwsService.S3);
105106

106107
s3Client.createBucket(b -> b.bucket(s3BucketName));
107108

aws-s3-source/src/test/java/dev/knative/eventing/connector/AwsS3SourceTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import io.quarkus.test.junit.QuarkusTest;
2424
import org.citrusframework.TestCaseRunner;
25+
import org.citrusframework.actions.testcontainers.aws2.AwsService;
2526
import org.citrusframework.annotations.CitrusResource;
2627
import org.citrusframework.context.TestContext;
2728
import org.citrusframework.http.endpoint.builder.HttpEndpoints;
@@ -43,7 +44,7 @@
4344

4445
@QuarkusTest
4546
@CitrusSupport
46-
@LocalStackContainerSupport(services = LocalStackContainer.Service.S3, containerLifecycleListener = AwsS3SourceTest.class)
47+
@LocalStackContainerSupport(services = AwsService.S3, containerLifecycleListener = AwsS3SourceTest.class)
4748
public class AwsS3SourceTest implements ContainerLifecycleListener<LocalStackContainer> {
4849

4950
@CitrusResource
@@ -88,7 +89,7 @@ public void shouldProduceEvents() {
8889
}
8990

9091
private void uploadS3File(TestContext context) {
91-
S3Client s3Client = localStackContainer.getClient(LocalStackContainer.Service.S3);
92+
S3Client s3Client = localStackContainer.getClient(AwsService.S3);
9293

9394
CreateMultipartUploadResponse initResponse = s3Client.createMultipartUpload(b -> b.bucket(s3BucketName).key(s3Key));
9495
String etag = s3Client.uploadPart(b -> b.bucket(s3BucketName)
@@ -107,7 +108,7 @@ private void uploadS3File(TestContext context) {
107108

108109
@Override
109110
public Map<String, String> started(LocalStackContainer container) {
110-
S3Client s3Client = container.getClient(LocalStackContainer.Service.S3);
111+
S3Client s3Client = container.getClient(AwsService.S3);
111112

112113
s3Client.createBucket(b -> b.bucket(s3BucketName));
113114

aws-s3-source/src/test/java/dev/knative/eventing/connector/ssl/AwsS3SourceSSLTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import io.quarkus.test.junit.QuarkusTest;
2424
import org.citrusframework.TestCaseRunner;
25+
import org.citrusframework.actions.testcontainers.aws2.AwsService;
2526
import org.citrusframework.annotations.CitrusResource;
2627
import org.citrusframework.context.TestContext;
2728
import org.citrusframework.http.endpoint.builder.HttpEndpoints;
@@ -47,7 +48,7 @@
4748

4849
@QuarkusTest
4950
@CitrusSupport
50-
@LocalStackContainerSupport(services = LocalStackContainer.Service.S3, containerLifecycleListener = AwsS3SourceSSLTest.class)
51+
@LocalStackContainerSupport(services = AwsService.S3, containerLifecycleListener = AwsS3SourceSSLTest.class)
5152
public class AwsS3SourceSSLTest implements ContainerLifecycleListener<LocalStackContainer> {
5253

5354
@CitrusResource

aws-sns-sink/src/test/java/dev/knative/eventing/connector/AwsSnsSinkTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import io.quarkus.test.junit.QuarkusTest;
2424
import org.citrusframework.TestCaseRunner;
25+
import org.citrusframework.actions.testcontainers.aws2.AwsService;
2526
import org.citrusframework.annotations.CitrusResource;
2627
import org.citrusframework.context.TestContext;
2728
import org.citrusframework.exceptions.CitrusRuntimeException;
@@ -47,7 +48,7 @@
4748
import static org.citrusframework.http.actions.HttpActionBuilder.http;
4849

4950
@QuarkusTest
50-
@LocalStackContainerSupport(services = { LocalStackContainer.Service.SNS, LocalStackContainer.Service.SQS },
51+
@LocalStackContainerSupport(services = { AwsService.SNS, AwsService.SQS },
5152
containerLifecycleListener = AwsSnsSinkTest.class)
5253
@CitrusSupport
5354
public class AwsSnsSinkTest implements ContainerLifecycleListener<LocalStackContainer> {
@@ -95,7 +96,7 @@ public void shouldConsumeEvents() {
9596
}
9697

9798
private void verifySnsData(TestContext context) {
98-
SqsClient sqsClient = localStackContainer.getClient(LocalStackContainer.Service.SQS);
99+
SqsClient sqsClient = localStackContainer.getClient(AwsService.SQS);
99100
ListQueuesResponse listQueuesResult = sqsClient.listQueues(b ->
100101
b.maxResults(100).queueNamePrefix(sqsQueueName));
101102

@@ -118,12 +119,12 @@ private void verifySnsData(TestContext context) {
118119
@Override
119120
public Map<String, String> started(LocalStackContainer container) {
120121
// Create SQS queue acting as a SNS notification endpoint
121-
SqsClient sqsClient = container.getClient(LocalStackContainer.Service.SQS);
122+
SqsClient sqsClient = container.getClient(AwsService.SQS);
122123

123124
sqsClient.createQueue(b -> b.queueName(sqsQueueName));
124125

125126
// Create SNS topic
126-
SnsClient snsClient = container.getClient(LocalStackContainer.Service.SNS);
127+
SnsClient snsClient = container.getClient(AwsService.SNS);
127128

128129
CreateTopicResponse topicResponse = snsClient.createTopic(b -> b.name(snsTopicName));
129130

aws-sqs-sink/src/test/java/dev/knative/eventing/connector/AwsSqsSinkTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import io.quarkus.test.junit.QuarkusTest;
2323
import org.citrusframework.TestCaseRunner;
24+
import org.citrusframework.actions.testcontainers.aws2.AwsService;
2425
import org.citrusframework.annotations.CitrusResource;
2526
import org.citrusframework.context.TestContext;
2627
import org.citrusframework.exceptions.CitrusRuntimeException;
@@ -42,7 +43,7 @@
4243

4344
@QuarkusTest
4445
@CitrusSupport
45-
@LocalStackContainerSupport(services = LocalStackContainer.Service.SQS, containerLifecycleListener = AwsSqsSinkTest.class)
46+
@LocalStackContainerSupport(services = AwsService.SQS, containerLifecycleListener = AwsSqsSinkTest.class)
4647
public class AwsSqsSinkTest implements ContainerLifecycleListener<LocalStackContainer> {
4748

4849
@CitrusResource
@@ -84,7 +85,7 @@ public void shouldConsumeEvents() {
8485
}
8586

8687
private void verifySqsEvent(TestContext context) {
87-
SqsClient sqsClient = localStackContainer.getClient(LocalStackContainer.Service.SQS);
88+
SqsClient sqsClient = localStackContainer.getClient(AwsService.SQS);
8889

8990
ListQueuesResponse listQueuesResult = sqsClient.listQueues(b ->
9091
b.maxResults(100).queueNamePrefix(sqsQueueName));
@@ -104,7 +105,7 @@ private void verifySqsEvent(TestContext context) {
104105
@Override
105106
public Map<String, String> started(LocalStackContainer container) {
106107
// Create SQS queue acting as a SNS notification endpoint
107-
SqsClient sqsClient = container.getClient(LocalStackContainer.Service.SQS);
108+
SqsClient sqsClient = container.getClient(AwsService.SQS);
108109
sqsClient.createQueue(b -> b.queueName(sqsQueueName));
109110

110111
Map<String, String> conf = new HashMap<>();

aws-sqs-source/src/test/java/dev/knative/eventing/connector/AwsSqsSourceTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import io.quarkus.test.junit.QuarkusTest;
2323
import org.citrusframework.TestCaseRunner;
24+
import org.citrusframework.actions.testcontainers.aws2.AwsService;
2425
import org.citrusframework.annotations.CitrusResource;
2526
import org.citrusframework.context.TestContext;
2627
import org.citrusframework.exceptions.CitrusRuntimeException;
@@ -40,7 +41,7 @@
4041

4142
@QuarkusTest
4243
@CitrusSupport
43-
@LocalStackContainerSupport(services = LocalStackContainer.Service.SQS, containerLifecycleListener = AwsSqsSourceTest.class)
44+
@LocalStackContainerSupport(services = AwsService.SQS, containerLifecycleListener = AwsSqsSourceTest.class)
4445
public class AwsSqsSourceTest implements ContainerLifecycleListener<LocalStackContainer> {
4546

4647
@CitrusResource
@@ -84,7 +85,7 @@ public void shouldProduceEvents() {
8485
}
8586

8687
private void sendSqsEvent(TestContext context) {
87-
SqsClient sqsClient = localStackContainer.getClient(LocalStackContainer.Service.SQS);
88+
SqsClient sqsClient = localStackContainer.getClient(AwsService.SQS);
8889

8990
ListQueuesResponse listQueuesResult = sqsClient.listQueues(b ->
9091
b.maxResults(100).queueNamePrefix(sqsQueueName));
@@ -100,7 +101,7 @@ private void sendSqsEvent(TestContext context) {
100101
@Override
101102
public Map<String, String> started(LocalStackContainer container) {
102103
// Create SQS queue acting as a SNS notification endpoint
103-
SqsClient sqsClient = container.getClient(LocalStackContainer.Service.SQS);
104+
SqsClient sqsClient = container.getClient(AwsService.SQS);
104105
sqsClient.createQueue(b -> b.queueName(sqsQueueName));
105106

106107
Map<String, String> conf = new HashMap<>();

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1818
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1919

20-
<camel.version>4.12.0</camel.version>
21-
<camel.quarkus.platform.version>3.24.0</camel.quarkus.platform.version>
22-
<citrus.version>4.7.0</citrus.version>
20+
<camel.version>4.14.0</camel.version>
21+
<camel.quarkus.platform.version>3.26.0</camel.quarkus.platform.version>
22+
<citrus.version>4.8.0</citrus.version>
2323
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
24-
<quarkus.platform.version>3.24.2</quarkus.platform.version>
24+
<quarkus.platform.version>3.26.0</quarkus.platform.version>
2525
<quarkus.kubernetes-client.generate-rbac>false</quarkus.kubernetes-client.generate-rbac>
2626
<quarkus.container-image.insecure>true</quarkus.container-image.insecure>
2727
<quarkus.container-image.registry>localhost:5001</quarkus.container-image.registry>

0 commit comments

Comments
 (0)