Skip to content

Commit

Permalink
Upgraded to the latest kiota (#5008)
Browse files Browse the repository at this point in the history
* Upgraded to the latest kiota

* Debug kafkasql failure
  • Loading branch information
EricWittmann authored Aug 9, 2024
1 parent 43b5f2d commit 08846fc
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 78 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.apicurio.tests.serdes.apicurio;

import com.google.protobuf.DynamicMessage;
import io.apicurio.registry.rest.client.models.Error;
import io.apicurio.registry.rest.client.models.VersionMetaData;
import io.apicurio.registry.serde.SerdeConfig;
import io.apicurio.registry.serde.protobuf.ProtobufKafkaDeserializer;
Expand Down Expand Up @@ -285,12 +286,20 @@ public void testFindLatestSpecificProtobufType() throws Exception {

ProtobufTestMessageFactory schema = new ProtobufTestMessageFactory();

new SimpleSerdesTesterBuilder<ProtobufTestMessage, ProtobufTestMessage>().withTopic(topicName)
.withSerializer(serializer).withDeserializer(deserializer)
.withStrategy(SimpleTopicIdStrategy.class).withDataGenerator(schema::generateMessage)
.withDataValidator(schema::validateMessage)
.withProducerProperty(SerdeConfig.FIND_LATEST_ARTIFACT, "true")
.withProducerProperty(SerdeConfig.EXPLICIT_ARTIFACT_GROUP_ID, topicName).build().test();
try {
new SimpleSerdesTesterBuilder<ProtobufTestMessage, ProtobufTestMessage>().withTopic(topicName)
.withSerializer(serializer).withDeserializer(deserializer)
.withStrategy(SimpleTopicIdStrategy.class).withDataGenerator(schema::generateMessage)
.withDataValidator(schema::validateMessage)
.withProducerProperty(SerdeConfig.FIND_LATEST_ARTIFACT, "true")
.withProducerProperty(SerdeConfig.EXPLICIT_ARTIFACT_GROUP_ID, topicName).build().test();
} catch (Error e) {
java.lang.System.out.println("---------->>>");
java.lang.System.out.println("Code: " + e.getResponseStatusCode());
java.lang.System.out.println("Msg: " + e.getMessageEscaped());
java.lang.System.out.println("Detail: " + e.getDetail());
throw e;
}

}

Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 24 additions & 24 deletions typescript-sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions typescript-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
},
"peerDependencies": {
"@microsoft/kiota-abstractions": "1.0.0-preview.58",
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.57",
"@microsoft/kiota-serialization-form": "1.0.0-preview.47",
"@microsoft/kiota-serialization-json": "1.0.0-preview.58",
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.36",
"@microsoft/kiota-serialization-text": "1.0.0-preview.55"
"@microsoft/kiota-abstractions": "1.0.0-preview.59",
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.58",
"@microsoft/kiota-serialization-form": "1.0.0-preview.48",
"@microsoft/kiota-serialization-json": "1.0.0-preview.59",
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.37",
"@microsoft/kiota-serialization-text": "1.0.0-preview.56"
},
"devDependencies": {
"@apicurio/eslint-config": "0.2.0",
Expand Down
12 changes: 6 additions & 6 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 30 additions & 30 deletions ui/ui-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions ui/ui-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
"@apicurio/common-ui-components": "2.0.2",
"@apicurio/apicurio-registry-sdk": "file:../../typescript-sdk",
"@apicurio/data-models": "1.1.27",
"@microsoft/kiota-abstractions": "1.0.0-preview.58",
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.57",
"@microsoft/kiota-serialization-form": "1.0.0-preview.47",
"@microsoft/kiota-serialization-json": "1.0.0-preview.58",
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.36",
"@microsoft/kiota-serialization-text": "1.0.0-preview.55",
"@microsoft/kiota-abstractions": "1.0.0-preview.59",
"@microsoft/kiota-http-fetchlibrary": "1.0.0-preview.58",
"@microsoft/kiota-serialization-form": "1.0.0-preview.48",
"@microsoft/kiota-serialization-json": "1.0.0-preview.59",
"@microsoft/kiota-serialization-multipart": "1.0.0-preview.37",
"@microsoft/kiota-serialization-text": "1.0.0-preview.56",
"@patternfly/patternfly": "5.3.1",
"@patternfly/react-code-editor": "5.3.4",
"@patternfly/react-core": "5.3.4",
Expand Down

0 comments on commit 08846fc

Please sign in to comment.