Skip to content

Commit

Permalink
Fix test failure- Unrestricted schema compatibility checks
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiRajAnand committed Jan 13, 2025
1 parent 1205056 commit 2f67450
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.reactivemessaging.http</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<!-- Used to enable the proto generation set in the data-index -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive-jackson</artifactId>
<artifactId>quarkus-rest-client-jackson</artifactId>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
Expand All @@ -101,7 +101,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive</artifactId>
<artifactId>quarkus-rest-client</artifactId>
</dependency>
<dependency>
<groupId>io.cloudevents</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ version: '2.1'
services:

infinispan:
image: infinispan/server:14.0.4.Final
image: infinispan/server:15.0.8.Final
container_name: infinispan
ports:
- 11222:11222
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-->
<infinispan>
<cache-container shutdown-hook="DEFAULT">
<serialization schema-compatibility="UNRESTRICTED"/>
{#let template=config:property('kogito.cache.domain.template')}
{#if template is null}
<local-cache name="{cache_name}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ services:
LOG_DIR: "/tmp/logs"

infinispan:
image: infinispan/server:14.0.4.Final
image: infinispan/server:15.0.8.Final
container_name: data-index-infinispan
ports:
- "11222:11222"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
-->
<infinispan>
<cache-container shutdown-hook="DEFAULT">
<serialization schema-compatibility="UNRESTRICTED"/>
{#let template=config:property('kogito.cache.domain.template')}
{#if template is null}
<local-cache name="{cache_name}">
Expand Down
2 changes: 1 addition & 1 deletion explainability/explainability-service-messaging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
Expand Down
2 changes: 1 addition & 1 deletion jobs-service/jobs-service-messaging-kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.smallrye.reactive</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class ProtoIndexParser implements AnnotationMetadataCreator<EntityIndexDescripto

static Configuration.Builder configureBuilder() {
Configuration.Builder builder = Configuration.builder();
builder.annotationsConfig()
builder.schemaValidation(Configuration.SchemaValidation.UNRESTRICTED)
.annotationsConfig()
.annotation(INDEXED_ANNOTATION, AnnotationElement.AnnotationTarget.MESSAGE)
.attribute(INDEXED_INDEX_ATTRIBUTE)
.type(AnnotationElement.AttributeType.STRING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void onFileDescriptorRegistered() {

static FileDescriptor getTestFileDescriptor() {
String content = TestUtils.getTestFileContent();
SerializationContext ctx = new SerializationContextImpl(Configuration.builder().build());
SerializationContext ctx = new SerializationContextImpl(Configuration.builder().schemaValidation(Configuration.SchemaValidation.UNRESTRICTED).build());
ctx.registerProtoFiles(FileDescriptorSource.fromString(DOMAIN_MODEL_PROTO_NAME, content));
return ctx.getFileDescriptors().get(DOMAIN_MODEL_PROTO_NAME);
}
Expand Down
2 changes: 1 addition & 1 deletion trusty/trusty-service/trusty-service-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
Expand Down

0 comments on commit 2f67450

Please sign in to comment.