Skip to content

Commit

Permalink
[Karate-Tools] Update to JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
teresamib committed Jan 10, 2025
1 parent 19d1d47 commit e549cbc
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void when_item_does_not_exist_expect_throw_not_found_exception() {
}

@Nested
class deleteAllItems {
class DeleteAllItems {
@Test
void when_items_exist_expect_no_content_all_items_deleted() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ basic.auth.user.info: "schemaregistry:schemaregistry-pwd"
# Kafka Producer properties - must start with "producer."
#
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS
# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
# producer.key.serializer: Serializer class for key that implements the 'org.apache.kafka.common.serialization.Serializer' interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schema.registry.url: http://localhost:38081

# Kafka Producer properties - must start with "producer."
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS
# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
# producer.key.serializer: Serializer class for key that implements the 'org.apache.kafka.common.serialization.Serializer' interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schema.registry.url: http://localhost:38081

# Kafka Producer properties - must start with "producer."
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS
# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
# producer.key.serializer: Serializer class for key that implements the 'org.apache.kafka.common.serialization.Serializer' interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ basic.auth.user.info: "schemaregistry:schemaregistry-pwd"
# Kafka Producer properties - must start with "producer."
#
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS
# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
# producer.key.serializer: Serializer class for key that implements the 'org.apache.kafka.common.serialization.Serializer' interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ schema.registry.url: http://localhost:38081
# Kafka Producer properties - must start with "producer."
#
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS
# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
# producer.key.serializer: Serializer class for key that implements the 'org.apache.kafka.common.serialization.Serializer' interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ basic.auth.user.info: "schemaregistry:schemaregistry-pwd"
# Kafka Producer properties - must start with "producer."
#
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS
# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
# producer.key.serializer: Serializer class for key that implements the 'org.apache.kafka.common.serialization.Serializer' interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ schema.registry.url: http://localhost:38081
# Kafka Producer properties - must start with "producer."
#
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS
# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
# producer.key.serializer: Serializer class for key that implements the 'org.apache.kafka.common.serialization.Serializer' interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import dev.inditex.karate.openapi.data.OpenApiParser.OperationPath;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import io.swagger.v3.oas.models.OpenAPI;
Expand Down Expand Up @@ -312,6 +313,7 @@ public boolean accept(final File file) {
*/
protected boolean isOpenApi(final File dir, final String name) {
final ObjectMapper yamlMapper = new ObjectMapper(new YAMLFactory());
yamlMapper.configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true);
if (name.endsWith(".yml")) {
final File file = new File(dir.getAbsolutePath() + File.separator + name);
try {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/clients/examples/kafka-config-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ basic.auth.user.info: "schemaregistry:schemaregistry-pwd"
# Kafka Producer properties - must start with "producer."
#
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS

# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ basic.auth.user.info: "schemaregistry:schemaregistry-pwd"
# Kafka Producer properties - must start with "producer."
#
# producer.client.id: An id string to pass to the server when making requests.
producer.client.id: KARATETOOLS
producer.client.id: KARATELABSS

# producer.auto.register.schemas: Specify if the Serializer should attempt to register the Schema with Schema Registry
producer.auto.register.schemas: true
Expand Down

0 comments on commit e549cbc

Please sign in to comment.