@@ -15,14 +15,13 @@ Feature: Call Task
1515 namespace: default
1616 name: http-call-with-content-output
1717 do:
18- getFirstAvailablePet:
19- call: http
20- with:
21- method: get
22- endpoint:
23- uri: https://petstore.swagger.io/v2/pet/findByStatus?status={status}
24- output:
25- from: .[0]
18+ call: http
19+ with:
20+ method: get
21+ endpoint:
22+ uri: https://petstore.swagger.io/v2/pet/findByStatus?status={status}
23+ output:
24+ from: .[0]
2625 """
2726 And given the workflow input is:
2827 """yaml
@@ -43,13 +42,12 @@ Feature: Call Task
4342 namespace: default
4443 name: http-call-with-response-output
4544 do:
46- getPetById:
47- call: http
48- with:
49- method: get
50- endpoint:
51- uri: https://petstore.swagger.io/v2/pet/{petId}
52- output: response
45+ call: http
46+ with:
47+ method: get
48+ endpoint:
49+ uri: https://petstore.swagger.io/v2/pet/{petId}
50+ output: response
5351 """
5452 And given the workflow input is:
5553 """yaml
@@ -70,16 +68,15 @@ Feature: Call Task
7068 namespace: default
7169 name: http-call-with-basic-auth
7270 do:
73- getSecuredEndpoint:
74- call: http
75- with:
76- method: get
77- endpoint:
78- uri: https://httpbin.org/basic-auth/{username}/{password}
79- authentication:
80- basic:
81- username: ${ .username }
82- password: ${ .password }
71+ call: http
72+ with:
73+ method: get
74+ endpoint:
75+ uri: https://httpbin.org/basic-auth/{username}/{password}
76+ authentication:
77+ basic:
78+ username: ${ .username }
79+ password: ${ .password }
8380 """
8481 And given the workflow input is:
8582 """yaml
@@ -99,16 +96,15 @@ Feature: Call Task
9996 namespace: default
10097 name: openapi-call-with-content-output
10198 do:
102- getPetsByStatus:
103- call: openapi
104- with:
105- document:
106- uri: https://petstore.swagger.io/v2/swagger.json
107- operation: findPetsByStatus
108- parameters:
109- status: ${ .status }
110- output:
111- from: . | length
99+ call: openapi
100+ with:
101+ document:
102+ uri: https://petstore.swagger.io/v2/swagger.json
103+ operation: findPetsByStatus
104+ parameters:
105+ status: ${ .status }
106+ output:
107+ from: . | length
112108 """
113109 And given the workflow input is:
114110 """yaml
@@ -127,15 +123,14 @@ Feature: Call Task
127123 namespace: default
128124 name: openapi-call-with-response-output
129125 do:
130- getPetById:
131- call: openapi
132- with:
133- document:
134- uri: https://petstore.swagger.io/v2/swagger.json
135- operation: getPetById
136- parameters:
137- petId: ${ .petId }
138- output: response
126+ call: openapi
127+ with:
128+ document:
129+ uri: https://petstore.swagger.io/v2/swagger.json
130+ operation: getPetById
131+ parameters:
132+ petId: ${ .petId }
133+ output: response
139134 """
140135 And given the workflow input is:
141136 """yaml
0 commit comments