Skip to content

Commit 35ddbc7

Browse files
committed
Update test file
1 parent bf38cee commit 35ddbc7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/test/java/com/apiflows/parser/OpenAPIWorkflowParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void parseFromFile() {
1414

1515
OpenAPIWorkflowParserResult result = parser.parse(WORKFLOWS_SPEC_FILE);
1616
assertNotNull(result.getOpenAPIWorkflow());
17-
assertEquals("1.0.0", result.getOpenAPIWorkflow().getWorkflowsSpec());
17+
assertEquals("1.0.0-prerelease", result.getOpenAPIWorkflow().getWorkflowsSpec());
1818
assertNotNull(result.getOpenAPIWorkflow().getInfo());
1919
assertEquals("Petstore - Apply Coupons", result.getOpenAPIWorkflow().getInfo().getTitle());
2020
assertNotNull(result.getOpenAPIWorkflow().getComponents());

src/test/resources/1.0.0/pet-coupons.workflow.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
workflowsSpec: 1.0.0
1+
workflowsSpec: 1.0.0-prerelease
22
info:
33
title: Petstore - Apply Coupons
44
version: 1.0.0
@@ -116,22 +116,22 @@ workflows:
116116
parameters:
117117
- name: pet_id
118118
in: body
119-
target: $request.body#/petId
119+
target: /petId
120120
value: $inputs.pet_id
121121
- name: coupon_code
122122
in: body
123-
target: $request.body#/couponCode
123+
target: /couponCode
124124
value: $inputs.coupon_code
125125
- name: quantity
126126
in: body
127127
value: $inputs.quantity
128128
- name: status
129129
in: body
130-
target: $request.body#/status
130+
target: /status
131131
value: "placed"
132132
- name: complete
133133
in: body
134-
target: $request.body#/complete
134+
target: /complete
135135
value: false
136136
successCriteria:
137137
- condition: $statusCode == 200
@@ -165,4 +165,4 @@ components:
165165
format: int32
166166
pageSize:
167167
type: integer
168-
format: int32
168+
format: int32

0 commit comments

Comments
 (0)