Skip to content

Commit d7e2d0e

Browse files
committed
Updated with 1.7.0 release
1 parent 635fa95 commit d7e2d0e

23 files changed

+80
-44
lines changed

rest-db-kafka/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<maven.compiler.target>8</maven.compiler.target>
1111
<idaithalam.version>1.7.0</idaithalam.version>
1212
<testng.ver>7.4.0</testng.ver>
13-
<avro.version>1.9.2</avro.version>
13+
<avro.version>1.11.0</avro.version>
1414
</properties>
1515
<description>
1616
This project demonstrate Idaithalam can be integrated with REST API and Kafka message validation.
@@ -139,7 +139,7 @@
139139
<plugin>
140140
<groupId>org.apache.avro</groupId>
141141
<artifactId>avro-maven-plugin</artifactId>
142-
<version>1.9.1</version>
142+
<version>${avro.version}</version>
143143
<executions>
144144
<execution>
145145
<phase>generate-sources</phase>

rest-db-kafka/src/test/java/io/virtualan/cucumblan/message/typeimpl/AvroType.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
import org.apache.avro.generic.GenericDatumWriter;
1212
import org.apache.avro.generic.GenericRecord;
1313
import org.apache.avro.io.*;
14-
import org.apache.avro.reflect.ReflectDatumWriter;
1514
import org.codehaus.plexus.util.StringOutputStream;
1615

1716
import java.io.*;
1817
import java.nio.file.Files;
19-
import java.nio.file.Path;
2018
import java.util.Map.Entry;
2119

2220
public class AvroType implements

rest-db-kafka/src/test/java/io/virtualan/test/KafkaTestPlanExecutor.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ public void execute_orderEvent_protobuff_workflow() {
2727
}
2828
}
2929

30-
// @org.testng.annotations.Test
31-
// public void execute_userEvent_avro_workflow() {
32-
// try {
33-
// boolean isSuccess = VirtualanTestPlanExecutor.invoke("workflow/work-flow-avro.yaml");
34-
// Assert.assertTrue(isSuccess);
35-
// } catch (Exception e) {
36-
// e.printStackTrace();
37-
// }
38-
// }
30+
@org.testng.annotations.Test
31+
public void execute_userEvent_avro_workflow() {
32+
try {
33+
boolean isSuccess = VirtualanTestPlanExecutor.invoke("workflow/work-flow-avro.yaml");
34+
Assert.assertTrue(isSuccess);
35+
} catch (Exception e) {
36+
e.printStackTrace();
37+
}
38+
}
3939
}
2.43 KB
Binary file not shown.

rest-db-kafka/src/test/resources/workflow/work-flow-proto.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ apiExecutor:
1818
session.timeout.ms: 30000
1919
auto.offset.reset: earliest
2020
topicProperties:
21-
OrderCreated: dev01.orderCreated
2221
CustomerCreated: dev01.customerCreated
23-
ProductCreated: dev01.productCreated
24-
UserCreated: dev01.userCreated
2522
- reportTitle: "2. API with Kafka Event Testing With ProtoBuff"
2623
env: dev
2724
outputJsonDir: target/idaithalam
@@ -39,7 +36,4 @@ apiExecutor:
3936
session.timeout.ms: 30000
4037
auto.offset.reset: earliest
4138
topicProperties:
42-
OrderCreated: dev01.orderCreated
43-
CustomerCreated: dev01.customerCreated
4439
ProductCreated: dev01.productCreated
45-
UserCreated: dev01.userCreated

rest-db-kafka/src/test/resources/workflow/work-flow.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,3 @@ apiExecutor:
2424
value.serializer: org.apache.kafka.common.serialization.StringSerializer
2525
topicProperties:
2626
OrderCreated: dev01.orderCreated
27-
CustomerCreated: dev01.customerCreated
28-
ProductCreated: dev01.productCreated
29-
StudentCreated: dev01.studentCreated
30-
UserCreated: dev01.userCreated

rest-db-kafka/testscript-generated/customer-proto/consumer-proto.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This is a consumer-proto.properties properties file
2-
#Tue May 24 08:40:37 CDT 2022
2+
#Tue May 24 10:19:50 CDT 2022
33
key.deserializer=org.apache.kafka.common.serialization.StringDeserializer
44
value.deserializer=org.apache.kafka.common.serialization.ByteArrayDeserializer
55
bootstrap.servers=microservices.virtualandemo.com\:9092

rest-db-kafka/testscript-generated/customer-proto/cucumblan.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This is a cucumblan.properties properties file
2-
#Tue May 24 08:40:37 CDT 2022
2+
#Tue May 24 10:19:50 CDT 2022
33
service.api.apiservice=http\://microservices.virtualandemo.com\:9001
44
virtualan.data.heading=CustomerCreated-Event - Workflow;
55
virtualan.data.type=VIRTUALAN

rest-db-kafka/testscript-generated/customer-proto/topic.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This is a topic.properties properties file
2-
#Tue May 24 08:40:37 CDT 2022
2+
#Tue May 24 10:19:50 CDT 2022
33
ProductCreated=dev01.productCreated
44
UserCreated=dev01.userCreated
55
CustomerCreated=dev01.customerCreated

rest-db-kafka/testscript-generated/order/consumer-json.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This is a consumer-json.properties properties file
2-
#Tue May 24 07:57:26 CDT 2022
2+
#Tue May 24 10:19:56 CDT 2022
33
key.deserializer=org.apache.kafka.common.serialization.StringDeserializer
44
value.deserializer=org.apache.kafka.common.serialization.StringDeserializer
55
bootstrap.servers=microservices.virtualandemo.com\:9092

0 commit comments

Comments
 (0)