Skip to content

Commit 82ff6c2

Browse files
committed
Fixing tests problems with swagger pet api and post call
1 parent 521052c commit 82ff6c2

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

impl/http/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,10 @@
4141
<artifactId>assertj-core</artifactId>
4242
<scope>test</scope>
4343
</dependency>
44+
<dependency>
45+
<groupId>ch.qos.logback</groupId>
46+
<artifactId>logback-classic</artifactId>
47+
<scope>test</scope>
48+
</dependency>
4449
</dependencies>
4550
</project>

impl/http/src/test/java/io/serverlessworkflow/impl/HTTPWorkflowDefinitionTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private static Stream<Arguments> provideParameters() {
9898
"call-http-query-parameters-external-schema.yaml", starTrekInput, starTrekCondition),
9999
Arguments.of(
100100
"callPostHttp.yaml",
101-
Map.of("name", "Javierito", "status", "available"),
101+
Map.of("name", "Javierito", "surname", "Unknown"),
102102
new Condition<>(o -> o.equals("Javierito"), "CallHttpPostCondition")));
103103
}
104104
}

impl/http/src/test/resources/callPostHttp.yaml

+4-15
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,9 @@ do:
99
with:
1010
method: post
1111
endpoint:
12-
uri: https://petstore.swagger.io/v2/pet
12+
uri: https://fakerestapi.azurewebsites.net/api/v1/Authors
1313
body:
14-
name: ${.name}
15-
status: ${.status}
14+
firstName: ${.name}
15+
lastName: ${.surname }
1616
output:
17-
as: .id
18-
- getPet:
19-
call: http
20-
with:
21-
method: get
22-
endpoint:
23-
uri: https://petstore.swagger.io/v2/pet/{petId}
24-
input:
25-
from:
26-
petId: ${.}
27-
output:
28-
as: .name
17+
as: .firstName

0 commit comments

Comments
 (0)