-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
146 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
python-sync-actions/tests/calls/010-default-header/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"storage": {}, | ||
"parameters": { | ||
"__SELECTED_JOB": "0", | ||
|
||
"config": { | ||
"jobs": [ | ||
{ | ||
"__NAME": "orders", | ||
"endpoint": "010-default-header/orders", | ||
"method": "GET", | ||
"dataType": "", | ||
"dataField": "nested.orders" | ||
} | ||
], | ||
"test": "test-value", | ||
"concat": { | ||
"function": "concat", | ||
"args": [ | ||
"hello", | ||
"-world" | ||
] | ||
}, | ||
"debug": false, | ||
"outputBucket": "in.c-", | ||
"incrementalOutput": false, | ||
"#BEARER_TOKEN": "token" | ||
}, | ||
"api": { | ||
"baseUrl": "http://mock-server:80/", | ||
"http": { | ||
"headers": { | ||
"Authorization": { | ||
"attr": "#BEARER_TOKEN" | ||
} | ||
} | ||
} | ||
}, | ||
"http": { | ||
"maxRetries": 10, | ||
"codes": [ | ||
500, | ||
502, | ||
503, | ||
504, | ||
408, | ||
420, | ||
429 | ||
] | ||
} | ||
}, | ||
"action": "test_request", | ||
"image_parameters": { | ||
}, | ||
"authorization": { | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
python-sync-actions/tests/calls/010-default-header/orders.request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GET /010-default-header/orders |
2 changes: 2 additions & 0 deletions
2
python-sync-actions/tests/calls/010-default-header/orders.requestHeaders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
accept: */* | ||
authorization: Bearer token |
82 changes: 82 additions & 0 deletions
82
python-sync-actions/tests/calls/010-default-header/orders.response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"nested": { | ||
"orders": [ | ||
{ | ||
"id": 1, | ||
"customer": "John Doe", | ||
"address": "123 Main St", | ||
"items": [ | ||
{ | ||
"id": 1, | ||
"name": "Widget", | ||
"price": 9.99, | ||
"quantity": 2 | ||
}, | ||
{ | ||
"id": 2, | ||
"name": "Thing", | ||
"price": 5.99, | ||
"quantity": 5 | ||
} | ||
] | ||
}, | ||
{ | ||
"id": 2, | ||
"customer": "Jan Novak", | ||
"address": "123 Main St", | ||
"items": [ | ||
{ | ||
"id": 1, | ||
"name": "Widget", | ||
"price": 9.99, | ||
"quantity": 2 | ||
}, | ||
{ | ||
"id": 2, | ||
"name": "Thing", | ||
"price": 5.99, | ||
"quantity": 5 | ||
} | ||
] | ||
}, | ||
{ | ||
"id": 3, | ||
"customer": "Jana Novakova", | ||
"address": "123 Main St", | ||
"items": [ | ||
{ | ||
"id": 1, | ||
"name": "Widget", | ||
"price": 9.99, | ||
"quantity": 2 | ||
}, | ||
{ | ||
"id": 2, | ||
"name": "Thing", | ||
"price": 5.99, | ||
"quantity": 5 | ||
} | ||
] | ||
}, | ||
{ | ||
"id": 4, | ||
"customer": "Bob Smith", | ||
"address": "123 Main St", | ||
"items": [ | ||
{ | ||
"id": 1, | ||
"name": "Widget", | ||
"price": 9.99, | ||
"quantity": 2 | ||
}, | ||
{ | ||
"id": 2, | ||
"name": "Thing", | ||
"price": 5.99, | ||
"quantity": 5 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |