Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[type: Feature] add logging kafka e2e test #5540

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
[type: Feature] polish
ray committed Apr 10, 2024
commit 9fc73609bdad755903595b2143fa19e6b0b856db
Original file line number Diff line number Diff line change
@@ -60,6 +60,8 @@ public class DividePluginCases implements ShenYuScenarioProvider {

private static final String CONSUMERGROUP = "shenyu-plugin-logging-rocketmq";

private static final String KAFKA_CONSUMER = "shenyu-plugin-logging-kafka";

private static final String TOPIC = "shenyu-access-logging";

private static final String TEST = "/http/order/findById?id=123";
@@ -203,7 +205,7 @@ private KafkaConsumer<String, String> defaultKafkaConsumer() {
consumerProperties.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, KAFKA_BROKER);
consumerProperties.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
consumerProperties.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());
consumerProperties.put(ConsumerConfig.GROUP_ID_CONFIG, CONSUMERGROUP);
consumerProperties.put(ConsumerConfig.GROUP_ID_CONFIG, KAFKA_CONSUMER);
return new KafkaConsumer<>(consumerProperties);
}
}