Skip to content

Commit 58d98cb

Browse files
committed
Protobuf example added
1 parent 7f34d93 commit 58d98cb

File tree

15 files changed

+65
-71
lines changed

15 files changed

+65
-71
lines changed

db/src/test/resources/data-integrity-testing.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@ apiExecutor:
1010
employee.cucumblan.jdbc.driver-class-name: org.h2.Driver
1111
employee.cucumblan.jdbc.username: sa
1212
employee.cucumblan.jdbc.password: sa
13-
employee.cucumblan.jdbc.url: jdbc:h2:mem:myDb;DB_CLOSE_DELAY=-1
14-
css.cucumblan.jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
15-
css.cucumblan.jdbc.username: demo_user
16-
css.cucumblan.jdbc.password: demo_password
17-
css.cucumblan.jdbc.url: jdbc:mysql://microservices.virtualandemo.com:3306/customerselfservice?useSSL=false
13+
employee.cucumblan.jdbc.url: jdbc:h2:mem:myDb;DB_CLOSE_DELAY=-1
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#This is a cucumblan-env.properties properties file
2-
#Sat Feb 05 11:37:25 CST 2022
3-
2+
#Sat Feb 19 21:25:22 CST 2022
43
password=1password
4+
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#This is a cucumblan.properties properties file
2-
#Sat Feb 05 11:37:25 CST 2022
2+
#Sat Feb 19 21:25:22 CST 2022
3+
css.cucumblan.jdbc.url=jdbc\:mysql\://microservices.virtualandemo.com\:3306/customerselfservice?allowPublicKeyRetrieval\=true&useSSL\=false
4+
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;
35
virtualan.data.load=CSS-Accept-DB-0.json;CSS-Reject-DB-1.json;
6+
css.cucumblan.jdbc.username=demo_user
47
css.cucumblan.jdbc.password=demo_password
5-
css.cucumblan.jdbc.driver-class-name=com.mysql.cj.jdbc.Driver
6-
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;
7-
css.cucumblan.jdbc.url=jdbc\:mysql\://microservices.virtualandemo.com\:3306/customerselfservice?useSSL\=false
8-
service.api.css=http\://microservices.virtualandemo.com\:8080
98
virtualan.data.type=VIRTUALAN
10-
css.cucumblan.jdbc.username=demo_user
119
service.api.quote=http\://microservices.virtualandemo.com\:8090
10+
service.api.css=http\://microservices.virtualandemo.com\:8080
11+
css.cucumblan.jdbc.driver-class-name=com.mysql.cj.jdbc.Driver

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

+20-20
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ Feature: CSS-Accept-DB - Workflow
55

66
@css
77
Scenario: Customer Self-Service Auth - api call
8-
Given as a insurance user perform login api action
9-
And add content type with given header params
8+
Given a user perform a api action
9+
And add request with given header params
1010
| contentType | application/json |
11-
And create login information with given input
11+
And create api with given input
1212
| password | [password] |
1313
| email | [email] |
14-
When logging in using post application/json in /auth resource on css
14+
When a user post application/json in /auth resource on css
1515
Then the status code is 200
16-
And verify user email information includes following in the response
16+
And verify across response includes following in the response
1717
| email | [email] |
18-
And store token as key and api's token as value
18+
And store the token value of the key as token
1919

2020
@css
2121
Scenario: GetCustomerByLogin - api call
@@ -27,9 +27,9 @@ Feature: CSS-Accept-DB - Workflow
2727
Then the status code is 200
2828
And verify across response includes following in the response
2929
| email | [email] |
30-
And store customerId as key and api's customerId as value
31-
And evaluate key as expiryDate and SUBSTITUTE(TEXT(NOW()+365, "yyyy-mm-dd HH:mm:ss"), " ", "T") as function value
32-
And evaluate key as startDate and TEXT(TODAY(),"yyyy-mm-dd") as function value
30+
And store the customerId value of the key as customerId
31+
And evaluate the SUBSTITUTE(TEXT(NOW()+365, "yyyy-mm-dd HH:mm:ss"), " ", "T") function value of the key as expiryDate
32+
And evaluate the TEXT(TODAY(),"yyyy-mm-dd") function value of the key as startDate
3333

3434
@css
3535
Scenario: GetCustomerInfoByCustomerId - api call
@@ -41,12 +41,12 @@ Feature: CSS-Accept-DB - Workflow
4141
Then the status code is 200
4242
And verify across response includes following in the response
4343
| firstname | Max |
44-
And store customerId as key and api's customerId as value
45-
And store firstname as key and api's firstname as value
46-
And store lastname as key and api's lastname as value
47-
And store streetAddress as key and api's streetAddress as value
48-
And store postalCode as key and api's postalCode as value
49-
And store city as key and api's city as value
44+
And store the customerId value of the key as customerId
45+
And store the firstname value of the key as firstname
46+
And store the lastname value of the key as lastname
47+
And store the streetAddress value of the key as streetAddress
48+
And store the postalCode value of the key as postalCode
49+
And store the city value of the key as city
5050

5151
@css
5252
Scenario: CreateInsuranceQuote - api call
@@ -70,7 +70,7 @@ Feature: CSS-Accept-DB - Workflow
7070
| insuranceOptions.startDate | 2021-06-20 |
7171
When a user post application/json in /insurance-quote-requests resource on css
7272
Then the status code is 200
73-
And store quoteId as key and api's id as value
73+
And store the id value of the key as quoteId
7474

7575
@quote
7676
Scenario: ReceiveInsuranceQuote - api call
@@ -108,11 +108,11 @@ Feature: CSS-Accept-DB - Workflow
108108

109109
@css
110110
Scenario: InsuranceQuoteByDB - database action
111-
Given as a user perform sql query action
112-
When read details on the given query on css
111+
Given as a user perform sql verify record action
112+
When select details with the given sql verify record 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 validate information on the given details on css
114+
Then verify details with the given sql verify record 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 |
118-
And store policy_limit_amount as key and query's [0].policy_limit_amount as value
118+
And store-sql's [0].policy_limit_amount value of the key as policy_limit_amount

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

+14-14
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Feature: CSS-Reject-DB - Workflow
1515
Then the status code is 200
1616
And verify across response includes following in the response
1717
| email | [email] |
18-
And store token as key and api's token as value
18+
And store the token value of the key as token
1919

2020
@css
2121
Scenario: GetCustomerByLogin - api call
@@ -27,9 +27,9 @@ Feature: CSS-Reject-DB - Workflow
2727
Then the status code is 200
2828
And verify across response includes following in the response
2929
| email | [email] |
30-
And store customerId as key and api's customerId as value
31-
And evaluate key as expiryDate and SUBSTITUTE(TEXT(NOW()+365, "yyyy-mm-dd HH:mm:ss"), " ", "T") as function value
32-
And evaluate key as startDate and TEXT(TODAY(),"yyyy-mm-dd") as function value
30+
And store the customerId value of the key as customerId
31+
And evaluate the SUBSTITUTE(TEXT(NOW()+365, "yyyy-mm-dd HH:mm:ss"), " ", "T") function value of the key as expiryDate
32+
And evaluate the TEXT(TODAY(),"yyyy-mm-dd") function value of the key as startDate
3333

3434
@css
3535
Scenario: GetCustomerInfoByCustomerId - api call
@@ -41,12 +41,12 @@ Feature: CSS-Reject-DB - Workflow
4141
Then the status code is 200
4242
And verify across response includes following in the response
4343
| firstname | Max |
44-
And store customerId as key and api's customerId as value
45-
And store firstname as key and api's firstname as value
46-
And store lastname as key and api's lastname as value
47-
And store streetAddress as key and api's streetAddress as value
48-
And store postalCode as key and api's postalCode as value
49-
And store city as key and api's city as value
44+
And store the customerId value of the key as customerId
45+
And store the firstname value of the key as firstname
46+
And store the lastname value of the key as lastname
47+
And store the streetAddress value of the key as streetAddress
48+
And store the postalCode value of the key as postalCode
49+
And store the city value of the key as city
5050

5151
@css
5252
Scenario: CreateInsuranceQuoteForReject - api call
@@ -70,7 +70,7 @@ Feature: CSS-Reject-DB - Workflow
7070
| insuranceOptions.startDate | 2021-09-20 |
7171
When a user post application/json in /insurance-quote-requests resource on css
7272
Then the status code is 200
73-
And store rejectQuoteId as key and api's id as value
73+
And store the id value of the key as rejectQuoteId
7474

7575
@quote
7676
Scenario: ReceiveInsuranceQuoteToReject - api call
@@ -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
114-
When read details on the given query on css
113+
Given as a user perform sql Read information action
114+
When select details with the given sql Read information 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] |
116-
And store policy_limit_amount as key and query's [0].policy_limit_amount as value
116+
And store-sql's [0].policy_limit_amount value of the key as policy_limit_amount

execute-feature-file/src/test/resources/Customer-Self-Service-xl-db.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ apiExecutor:
66
env: test
77
outputDir: LakesideMutual/Customer-Self-Service/DB
88
inputExcel: css/customer-self-service-with-db.xlsx
9-
execution: EXECUTE
109
cucumblanProperties:
1110
service.api.css: http://microservices.virtualandemo.com:8080
1211
service.api.quote: http://microservices.virtualandemo.com:8090
1312
css.cucumblan.jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
1413
css.cucumblan.jdbc.username: demo_user
1514
css.cucumblan.jdbc.password: demo_password
16-
css.cucumblan.jdbc.url: jdbc:mysql://microservices.virtualandemo.com:3306/customerselfservice?useSSL=false
15+
css.cucumblan.jdbc.url: jdbc:mysql://microservices.virtualandemo.com:3306/customerselfservice?allowPublicKeyRetrieval=true&useSSL=false
1716
cucumblanEnvProperties:
1817
1918
password: 1password

execute-feature-file/src/test/resources/idaithalam.properties

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#This is a cucumblan-env.properties properties file
2-
#Sat Feb 05 11:37:22 CST 2022
3-
2+
#Sat Feb 19 21:25:19 CST 2022
43
password=1password
4+
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#This is a cucumblan.properties properties file
2-
#Sat Feb 05 11:37:22 CST 2022
2+
#Sat Feb 19 21:25:19 CST 2022
3+
css.cucumblan.jdbc.url=jdbc\:mysql\://microservices.virtualandemo.com\:3306/customerselfservice?useSSL\=false
4+
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;
35
virtualan.data.load=CSS-Accept-DB-0.json;CSS-Reject-DB-1.json;
6+
css.cucumblan.jdbc.username=demo_user
47
css.cucumblan.jdbc.password=demo_password
5-
css.cucumblan.jdbc.driver-class-name=com.mysql.cj.jdbc.Driver
6-
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;
7-
css.cucumblan.jdbc.url=jdbc\:mysql\://microservices.virtualandemo.com\:3306/customerselfservice?useSSL\=false
8-
service.api.css=http\://microservices.virtualandemo.com\:8080
98
virtualan.data.type=VIRTUALAN
10-
css.cucumblan.jdbc.username=demo_user
119
service.api.quote=http\://microservices.virtualandemo.com\:8090
10+
service.api.css=http\://microservices.virtualandemo.com\:8080
11+
css.cucumblan.jdbc.driver-class-name=com.mysql.cj.jdbc.Driver

rest-with-db/src/test/resources/Customer-Self-Service-xl-db.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ apiExecutor:
1212
css.cucumblan.jdbc.driver-class-name: com.mysql.cj.jdbc.Driver
1313
css.cucumblan.jdbc.username: demo_user
1414
css.cucumblan.jdbc.password: demo_password
15-
css.cucumblan.jdbc.url: jdbc:mysql://microservices.virtualandemo.com:3306/customerselfservice?useSSL=false
15+
css.cucumblan.jdbc.url: jdbc:mysql://microservices.virtualandemo.com:3306/customerselfservice?allowPublicKeyRetrieval=true&useSSL=false
1616
cucumblanEnvProperties:
1717
1818
password: 1password
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#This is a cucumblan-env.properties properties file
2-
#Sat Feb 05 11:37:46 CST 2022
2+
#Sat Feb 19 21:25:42 CST 2022
33
password=1password
44
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#This is a cucumblan.properties properties file
2-
#Sat Feb 05 11:37:46 CST 2022
2+
#Sat Feb 19 21:25:42 CST 2022
3+
css.cucumblan.jdbc.url=jdbc\:mysql\://microservices.virtualandemo.com\:3306/customerselfservice?useSSL\=false
4+
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;
35
virtualan.data.load=CSS-Accept-DB-0.json;CSS-Reject-DB-1.json;
6+
css.cucumblan.jdbc.username=demo_user
47
css.cucumblan.jdbc.password=demo_password
5-
css.cucumblan.jdbc.driver-class-name=com.mysql.cj.jdbc.Driver
6-
virtualan.data.heading=CSS-Accept-DB - Workflow;CSS-Reject-DB - Workflow;
7-
css.cucumblan.jdbc.url=jdbc\:mysql\://microservices.virtualandemo.com\:3306/customerselfservice?useSSL\=false
8-
service.api.css=http\://microservices.virtualandemo.com\:8080
98
virtualan.data.type=VIRTUALAN
10-
css.cucumblan.jdbc.username=demo_user
119
service.api.quote=http\://microservices.virtualandemo.com\:8090
10+
service.api.css=http\://microservices.virtualandemo.com\:8080
11+
css.cucumblan.jdbc.driver-class-name=com.mysql.cj.jdbc.Driver
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#This is a cucumblan-env.properties properties file
2-
#Sat Feb 05 11:37:46 CST 2022
2+
#Sat Feb 19 21:25:42 CST 2022
33
password=1password
44
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#This is a cucumblan.properties properties file
2-
#Sat Feb 05 11:37:46 CST 2022
3-
virtualan.data.load=Customer_Self_Service-Accept-0.json;Customer_Self-Service-Reject-1.json;
4-
service.api.css=http\://microservices.virtualandemo.com\:8080
5-
service.api.quote=http\://microservices.virtualandemo.com\:8090
2+
#Sat Feb 19 21:25:42 CST 2022
63
virtualan.data.heading=Customer Self Service-Accept - Workflow;Customer Self-Service-Reject - Workflow;
74
virtualan.data.type=VIRTUALAN
5+
service.api.quote=http\://microservices.virtualandemo.com\:8090
6+
service.api.css=http\://microservices.virtualandemo.com\:8080
7+
virtualan.data.load=Customer_Self_Service-Accept-0.json;Customer_Self-Service-Reject-1.json;

0 commit comments

Comments
 (0)