Skip to content

Commit 4e801f5

Browse files
committed
Updated with next idaithalam version 1.6.2
1 parent 5d658b8 commit 4e801f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+87
-59
lines changed

db/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>

demo-all/demo-all/cucumblan.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This is a cucumblan.properties properties file
2-
#Mon Mar 21 21:01:27 CDT 2022
2+
#Mon Mar 28 00:52:17 CDT 2022
33
virtualan.data.heading=Rest-Get - Workflow;Multi-Run - Workflow;
44
virtualan.data.type=VIRTUALAN
55
service.api.ep=https\://live.virtualandemo.com/api

demo-all/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>

examples/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#This is a cucumblan-env.properties properties file
2-
#Mon Mar 21 21:03:03 CDT 2022
2+
#Mon Mar 28 00:52:58 CDT 2022
33
password=1password
44

execute-feature-file/LakesideMutual/Customer-Self-Service/DB/cucumblan.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This is a cucumblan.properties properties file
2-
#Mon Mar 21 21:03:03 CDT 2022
2+
#Mon Mar 28 00:52:58 CDT 2022
33
css.cucumblan.jdbc.url=jdbc\:mysql\://microservices.virtualandemo.com\:3306/customerselfservice?allowPublicKeyRetrieval\=true&useSSL\=false
44
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;
55
virtualan.data.load=CSS-Accept-DB-0.json;CSS-Reject-DB-1.json;

execute-feature-file/LakesideMutual/Customer-Self-Service/DB/feature/CSS-Accept-DB-0.feature

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ Feature: CSS-Accept-DB - Workflow
108108

109109
@css
110110
Scenario: InsuranceQuoteByDB - database action
111-
Given as a user perform sql verify record action
112-
When select details with the given sql verify record on css
111+
Given as a user perform sql action
112+
When select details with the given sql on css
113113
| select iqr.id, iq.insurance_premium_amount, iq.insurance_premium_currency, iq.policy_limit_amount from insurancequotes iq INNER JOIN insurancequoterequests iqr on iq.id = iqr.insurance_quote_id and iqr.id = [quoteId] |
114-
Then verify details with the given sql verify record on css
114+
Then verify details with the given sql on css
115115
| select iqr.id, iq.insurance_premium_amount, iq.insurance_premium_currency, iq.policy_limit_amount from insurancequotes iq INNER JOIN insurancequoterequests iqr on iq.id = iqr.insurance_quote_id and iqr.id = [quoteId] |
116116
| id,insurance_premium_amount, insurance_premium_currency, policy_limit_amount |
117117
| i~[quoteId],d~500.00,CHF,d~50000.00 |

execute-feature-file/LakesideMutual/Customer-Self-Service/DB/feature/CSS-Reject-DB-1.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Feature: CSS-Reject-DB - Workflow
110110

111111
@css
112112
Scenario: InsuranceQuoteByDBReject - database action
113-
Given as a user perform sql Read information action
114-
When select details with the given sql Read information on css
113+
Given as a user perform sql action
114+
When select details with the given sql on css
115115
| select iqr.id, iq.insurance_premium_amount, iq.insurance_premium_currency, iq.policy_limit_amount from insurancequotes iq INNER JOIN insurancequoterequests iqr on iq.id = iqr.insurance_quote_id and iqr.id = [rejectQuoteId] |
116116
And store-sql's [0].policy_limit_amount value of the key as policy_limit_amount

execute-feature-file/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#This is a cucumblan-env.properties properties file
2-
#Mon Mar 21 21:02:58 CDT 2022
2+
#Mon Mar 28 00:52:55 CDT 2022
33
password=1password
44

generate-feature-file/LakesideMutual/Customer-Self-Service/DB/cucumblan.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This is a cucumblan.properties properties file
2-
#Mon Mar 21 21:02:58 CDT 2022
2+
#Mon Mar 28 00:52:55 CDT 2022
33
css.cucumblan.jdbc.url=jdbc\:mysql\://microservices.virtualandemo.com\:3306/customerselfservice?useSSL\=false
44
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;
55
virtualan.data.load=CSS-Accept-DB-0.json;CSS-Reject-DB-1.json;

generate-feature-file/LakesideMutual/Customer-Self-Service/DB/feature/CSS-Accept-DB-0.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Feature: CSS-Accept-DB - Workflow
108108

109109
@css
110110
Scenario: InsuranceQuoteByDB - database action
111-
Given as a user perform sql query action
111+
Given as a user perform sql verify record action
112112
When read details on the given query on css
113113
| select iqr.id, iq.insurance_premium_amount, iq.insurance_premium_currency, iq.policy_limit_amount from insurancequotes iq INNER JOIN insurancequoterequests iqr on iq.id = iqr.insurance_quote_id and iqr.id = [quoteId] |
114114
Then validate information on the given details on css

generate-feature-file/LakesideMutual/Customer-Self-Service/DB/feature/CSS-Reject-DB-1.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Feature: CSS-Reject-DB - Workflow
110110

111111
@css
112112
Scenario: InsuranceQuoteByDBReject - database action
113-
Given as a user perform sql query action
113+
Given as a user perform sql Read information action
114114
When read details on the given query on css
115115
| select iqr.id, iq.insurance_premium_amount, iq.insurance_premium_currency, iq.policy_limit_amount from insurancequotes iq INNER JOIN insurancequoterequests iqr on iq.id = iqr.insurance_quote_id and iqr.id = [rejectQuoteId] |
116116
And store policy_limit_amount as key and query's [0].policy_limit_amount as value

generate-feature-file/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>

graphql/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>

rest-db-kafka-protobuf/pom.xml

+11-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<junit.version>5.5.2</junit.version>
1111
<cucumber.version>6.7.0</cucumber.version>
1212
<virtualan.version>1.3.0</virtualan.version>
13-
<idaithalam.version>1.6.2</idaithalam.version>
13+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
1616
<description>
@@ -331,7 +331,15 @@
331331
</exclusions>
332332
</dependency>
333333

334-
335-
334+
<dependency>
335+
<groupId>com.google.protobuf</groupId>
336+
<artifactId>protobuf-java-util</artifactId>
337+
<version>3.19.4</version>
338+
</dependency>
339+
<dependency>
340+
<groupId>com.google.protobuf</groupId>
341+
<artifactId>protobuf-java</artifactId>
342+
<version>3.19.4</version>
343+
</dependency>
336344
</dependencies>
337345
</project>

rest-db-kafka-protobuf/src/test/java/io/virtualan/cucumblan/standard/KafkaMessageAggregator.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package io.virtualan.cucumblan.standard;
22

33
import io.virtualan.cucumblan.standard.StandardProcessing;
4-
import io.virtualan.cucumblan.message.typeimpl.JSONMessage;
54

65

76
public class KafkaMessageAggregator implements StandardProcessing {
@@ -14,11 +13,11 @@ public String getType() {
1413

1514
@Override
1615
public Object responseEvaluator() {
17-
java.util.Map<String, Object> mapAggregator = io.virtualan.cucumblan.core.msg.kafka.MessageContext.getEventContextMap("TEST");
16+
java.util.Map<String, Object> mapAggregator = io.virtualan.cucumblan.core.msg.kafka.MessageContext.getEventContextMap("DemoEvent");
1817
int count = 0;
1918
if(mapAggregator != null) {
2019
for (java.util.Map.Entry<String, Object> entry : mapAggregator.entrySet()) {
21-
io.virtualan.cucumblan.message.typeimpl.JSONMessage jsonmsg = (io.virtualan.cucumblan.message.typeimpl.JSONMessage) entry.getValue();
20+
io.virtualan.cucumblan.message.typeimpl.JSONMessageType jsonmsg = (io.virtualan.cucumblan.message.typeimpl.JSONMessageType) entry.getValue();
2221
if ("doggie".equals(jsonmsg.getMessageAsJson().getString("name"))) {
2322
count++;
2423
}

rest-db-kafka-protobuf/src/test/resources/consumer-demo.properties

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
bootstrap.servers=localhost:9092
2-
group.id=cucumblan-proto-consumer-group-test-1
32
key.deserializer=org.apache.kafka.common.serialization.StringDeserializer
43
value.deserializer=io.virtualan.kafka.CallbackDeserializer
54
enable.auto.commit=true

rest-db-kafka-protobuf/src/test/resources/consumer-pet.properties

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
bootstrap.servers=localhost:9092
2-
group.id=cucumblan-consumer-group-test-1
3-
key.deserializer=org.apache.kafka.common.serialization.IntegerDeserializer
2+
key.deserializer=org.apache.kafka.common.serialization.StringDeserializer
43
value.deserializer=org.apache.kafka.common.serialization.StringDeserializer
54
enable.auto.commit=true
65
auto.commit.interval.ms=1000
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DemoEvent=id
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
bootstrap.servers=localhost:9092
2-
key.serializer=org.apache.kafka.common.serialization.IntegerSerializer
2+
key.serializer=org.apache.kafka.common.serialization.StringSerializer
33
value.serializer=org.apache.kafka.common.serialization.StringSerializer
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
TEST=virtualan.output
1+
DemoEvent=virtualan.output
22
DEMO=virtualan.proto.buff.input.demo

rest-db-kafka/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<properties>
99
<maven.compiler.source>8</maven.compiler.source>
1010
<maven.compiler.target>8</maven.compiler.target>
11-
<idaithalam.version>1.6.2</idaithalam.version>
11+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1212
<testng.ver>7.4.0</testng.ver>
1313
</properties>
1414
<description>

rest-db-kafka/src/main/proto/cucumblan.proto

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ option java_outer_classname = "CucumblanProto";
66

77
package cucumblan;
88

9-
message NewUser {
10-
uint64 id = 1;
11-
string firstName = 2;
12-
string lastName = 3;
9+
message Customer {
10+
uint64 customerId = 1;
11+
string firstname = 2;
12+
string lastname = 3;
1313
}
1414

15+
message Product {
16+
uint64 productId = 1;
17+
string productName = 2;
18+
string productDesc = 3;
19+
}

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

+10-10
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ public void execute_orderEvent_workflow() {
1616
}
1717
}
1818

19-
// @org.testng.annotations.Test
20-
// public void execute_orderEvent_protobuff_workflow() {
21-
// try {
22-
// boolean isSuccess = VirtualanTestPlanExecutor.invoke("work-flow-proto.yaml");
23-
// org.junit.Assert.assertTrue(isSuccess);
24-
//
25-
// } catch (Exception e) {
26-
// e.printStackTrace();
27-
// }
28-
// }
19+
@org.testng.annotations.Test
20+
public void execute_orderEvent_protobuff_workflow() {
21+
try {
22+
boolean isSuccess = VirtualanTestPlanExecutor.invoke("work-flow-proto.yaml");
23+
org.junit.Assert.assertTrue(isSuccess);
24+
25+
} catch (Exception e) {
26+
e.printStackTrace();
27+
}
28+
}
2929
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
bootstrap.servers=microservices.virtualandemo.com:9092
2+
key.deserializer=org.apache.kafka.common.serialization.StringDeserializer
3+
value.deserializer=org.apache.kafka.common.serialization.ByteArrayDeserializer
4+
enable.auto.commit=true
5+
auto.commit.interval.ms=1000
6+
session.timeout.ms=30000
7+
auto.offset.reset=earliest
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
OrderCreated=io.virtualan.proto.cucumblan.NewUser
1+
ProductCreated=io.virtualan.proto.cucumblan.Product;productId_
2+
CustomerCreated=io.virtualan.proto.cucumblan.Customer;customerId_
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
OrderCreated=dev01.orderCreated
1+
OrderCreated=dev01.orderCreated
2+
CustomerCreated=dev01.customerCreated
3+
ProductCreated=dev01.productCreated
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
parallelExecution: 4
22
timeout: 30000
33
apiExecutor:
4-
- reportTitle: "API with Kafka Event Testing"
4+
- reportTitle: "1. API with Kafka Event Testing With ProtoBuff"
55
env: dev
66
outputJsonDir: target/idaithalam
7-
outputDir: target/message-proto
8-
inputExcel: createOrder_API_with_OrderCreated_Event-Protobuff.xlsx
7+
outputDir: target/message/customer-proto
8+
inputExcel: CreateCustomer-Event.xlsx
99
cucumblanProperties:
10-
service.api.orderservice-proto: http://localhost:8800
10+
service.api.apiservice: http://microservices.virtualandemo.com:9001
11+
- reportTitle: "2. API with Kafka Event Testing With ProtoBuff"
12+
env: dev
13+
outputJsonDir: target/idaithalam
14+
outputDir: target/message/product-proto
15+
inputExcel: CreateProduct-Event.xlsx
16+
cucumblanProperties:
17+
service.api.apiservice: http://microservices.virtualandemo.com:9001

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ apiExecutor:
55
env: dev
66
outputJsonDir: target/idaithalam
77
outputDir: target/message
8-
inputExcel: createOrder_API_with_OrderCreated_Event.xlsx
8+
inputExcel: CreateOrder-Event.xlsx
99
cucumblanProperties:
1010
service.api.orderservice: http://microservices.virtualandemo.com:9001

rest-get/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>

rest-post/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<testng.ver>7.4.0</testng.ver>
1414
<aspectj.version>1.8.10</aspectj.version>
1515
</properties>

rest-with-db/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#This is a cucumblan-env.properties properties file
2-
#Mon Mar 21 21:03:27 CDT 2022
2+
#Mon Mar 28 00:53:18 CDT 2022
33
password=1password
44

workflow-rest/LakesideMutual/Customer-Self-Service/DB/cucumblan.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#This is a cucumblan.properties properties file
2-
#Mon Mar 21 21:03:27 CDT 2022
2+
#Mon Mar 28 00:53:18 CDT 2022
33
service.api.quoteapi=http\://microservices.virtualandemo.com\:8090
44
cssdb.cucumblan.jdbc.username=demo_user
55
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;

workflow-rest/LakesideMutual/Customer-Self-Service/DB/feature/CSS-Accept-DB-0.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Feature: CSS-Accept-DB - Workflow
108108

109109
@sql_select @sql_validate @store_sql_response @cssdb
110110
Scenario: InsuranceQuoteByDB - database action
111-
Given as a user perform sql query action
111+
Given as a user perform sql verify record action
112112
When read details on the given query on cssdb
113113
| select iqr.id, iq.insurance_premium_amount, iq.insurance_premium_currency, iq.policy_limit_amount from insurancequotes iq INNER JOIN insurancequoterequests iqr on iq.id = iqr.insurance_quote_id and iqr.id = [quoteId] |
114114
Then validate information on the given details on cssdb

workflow-rest/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>

workflow-virtualan-collection-rest/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<properties>
1010
<maven.compiler.source>8</maven.compiler.source>
1111
<maven.compiler.target>8</maven.compiler.target>
12-
<idaithalam.version>1.6.2</idaithalam.version>
12+
<idaithalam.version>1.6.3-SNAPSHOT</idaithalam.version>
1313
<mysql.version>8.0.13</mysql.version>
1414
<testng.ver>7.4.0</testng.ver>
1515
</properties>

0 commit comments

Comments
 (0)