-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
eb4a793
commit db94dd6
Showing
68 changed files
with
789 additions
and
8 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
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-001-empty-ok/001-aggregation-source/expected-http-code
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 @@ | ||
200 |
11 changes: 11 additions & 0 deletions
11
.../stream/api/source/aggregation-001-empty-ok/001-aggregation-source/expected-response.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,11 @@ | ||
{ | ||
"projectId": %%TEST_KBC_PROJECT_ID%%, | ||
"branchId": %%TEST_DEFAULT_BRANCH_ID%%, | ||
"page": { | ||
"limit": 100, | ||
"totalCount": 0, | ||
"sinceId": "", | ||
"lastId": "" | ||
}, | ||
"sources": [] | ||
} |
7 changes: 7 additions & 0 deletions
7
test/stream/api/source/aggregation-001-empty-ok/001-aggregation-source/request.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,7 @@ | ||
{ | ||
"path": "/v1/branches/%%TEST_DEFAULT_BRANCH_ID%%/aggregation/sources", | ||
"method": "GET", | ||
"headers": { | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/001-create-source-1/expected-http-code
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 @@ | ||
202 |
8 changes: 8 additions & 0 deletions
8
test/stream/api/source/aggregation-002-ok/001-create-source-1/expected-response.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,8 @@ | ||
{ | ||
"taskId": "api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-1/%s", | ||
"type": "api.create.source", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-1/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
12 changes: 12 additions & 0 deletions
12
test/stream/api/source/aggregation-002-ok/001-create-source-1/request.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,12 @@ | ||
{ | ||
"path": "/v1/branches/default/sources", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"name": "My Source 1", | ||
"type": "http" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/001-create-source-2/expected-http-code
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 @@ | ||
202 |
8 changes: 8 additions & 0 deletions
8
test/stream/api/source/aggregation-002-ok/001-create-source-2/expected-response.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,8 @@ | ||
{ | ||
"taskId": "api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-2/%s", | ||
"type": "api.create.source", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-2/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
12 changes: 12 additions & 0 deletions
12
test/stream/api/source/aggregation-002-ok/001-create-source-2/request.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,12 @@ | ||
{ | ||
"path": "/v1/branches/default/sources", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"name": "My Source 2", | ||
"type": "http" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/001-create-source-3/expected-http-code
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 @@ | ||
202 |
8 changes: 8 additions & 0 deletions
8
test/stream/api/source/aggregation-002-ok/001-create-source-3/expected-response.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,8 @@ | ||
{ | ||
"taskId": "api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-3/%s", | ||
"type": "api.create.source", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-3/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
12 changes: 12 additions & 0 deletions
12
test/stream/api/source/aggregation-002-ok/001-create-source-3/request.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,12 @@ | ||
{ | ||
"path": "/v1/branches/default/sources", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"name": "My Source 3", | ||
"type": "http" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/001-create-source-4/expected-http-code
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 @@ | ||
202 |
8 changes: 8 additions & 0 deletions
8
test/stream/api/source/aggregation-002-ok/001-create-source-4/expected-response.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,8 @@ | ||
{ | ||
"taskId": "api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-4/%s", | ||
"type": "api.create.source", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-4/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
12 changes: 12 additions & 0 deletions
12
test/stream/api/source/aggregation-002-ok/001-create-source-4/request.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,12 @@ | ||
{ | ||
"path": "/v1/branches/default/sources", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"name": "My Source 4", | ||
"type": "http" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/001-create-source-5/expected-http-code
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 @@ | ||
202 |
8 changes: 8 additions & 0 deletions
8
test/stream/api/source/aggregation-002-ok/001-create-source-5/expected-response.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,8 @@ | ||
{ | ||
"taskId": "api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-5/%s", | ||
"type": "api.create.source", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source-5/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
12 changes: 12 additions & 0 deletions
12
test/stream/api/source/aggregation-002-ok/001-create-source-5/request.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,12 @@ | ||
{ | ||
"path": "/v1/branches/default/sources", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"name": "My Source 5", | ||
"type": "http" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/002-poll-source-1/expected-http-code
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 @@ | ||
200 |
5 changes: 5 additions & 0 deletions
5
test/stream/api/source/aggregation-002-ok/002-poll-source-1/expected-response.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,5 @@ | ||
{ | ||
%A | ||
"status": "success", | ||
%A | ||
} |
11 changes: 11 additions & 0 deletions
11
test/stream/api/source/aggregation-002-ok/002-poll-source-1/request.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,11 @@ | ||
{ | ||
"path": "<<001-create-source-1:response.url>>", | ||
"method": "GET", | ||
"headers": { | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"repeat": { | ||
"until": "status != 'processing'", | ||
"timeout": 60 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/002-poll-source-2/expected-http-code
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 @@ | ||
200 |
5 changes: 5 additions & 0 deletions
5
test/stream/api/source/aggregation-002-ok/002-poll-source-2/expected-response.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,5 @@ | ||
{ | ||
%A | ||
"status": "success", | ||
%A | ||
} |
11 changes: 11 additions & 0 deletions
11
test/stream/api/source/aggregation-002-ok/002-poll-source-2/request.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,11 @@ | ||
{ | ||
"path": "<<001-create-source-2:response.url>>", | ||
"method": "GET", | ||
"headers": { | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"repeat": { | ||
"until": "status != 'processing'", | ||
"timeout": 60 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/002-poll-source-3/expected-http-code
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 @@ | ||
200 |
5 changes: 5 additions & 0 deletions
5
test/stream/api/source/aggregation-002-ok/002-poll-source-3/expected-response.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,5 @@ | ||
{ | ||
%A | ||
"status": "success", | ||
%A | ||
} |
11 changes: 11 additions & 0 deletions
11
test/stream/api/source/aggregation-002-ok/002-poll-source-3/request.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,11 @@ | ||
{ | ||
"path": "<<001-create-source-3:response.url>>", | ||
"method": "GET", | ||
"headers": { | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"repeat": { | ||
"until": "status != 'processing'", | ||
"timeout": 60 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/002-poll-source-4/expected-http-code
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 @@ | ||
200 |
5 changes: 5 additions & 0 deletions
5
test/stream/api/source/aggregation-002-ok/002-poll-source-4/expected-response.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,5 @@ | ||
{ | ||
%A | ||
"status": "success", | ||
%A | ||
} |
11 changes: 11 additions & 0 deletions
11
test/stream/api/source/aggregation-002-ok/002-poll-source-4/request.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,11 @@ | ||
{ | ||
"path": "<<001-create-source-4:response.url>>", | ||
"method": "GET", | ||
"headers": { | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"repeat": { | ||
"until": "status != 'processing'", | ||
"timeout": 60 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/002-poll-source-5/expected-http-code
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 @@ | ||
200 |
5 changes: 5 additions & 0 deletions
5
test/stream/api/source/aggregation-002-ok/002-poll-source-5/expected-response.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,5 @@ | ||
{ | ||
%A | ||
"status": "success", | ||
%A | ||
} |
11 changes: 11 additions & 0 deletions
11
test/stream/api/source/aggregation-002-ok/002-poll-source-5/request.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,11 @@ | ||
{ | ||
"path": "<<001-create-source-5:response.url>>", | ||
"method": "GET", | ||
"headers": { | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"repeat": { | ||
"until": "status != 'processing'", | ||
"timeout": 60 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/003-create-sink-1/expected-http-code
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 @@ | ||
202 |
8 changes: 8 additions & 0 deletions
8
test/stream/api/source/aggregation-002-ok/003-create-sink-1/expected-response.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,8 @@ | ||
{ | ||
"taskId": "api.create.sink/%%TEST_DEFAULT_BRANCH_ID%%/my-source-1/my-sink-1/%s", | ||
"type": "api.create.sink", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.sink/%%TEST_DEFAULT_BRANCH_ID%%/my-source-1/my-sink-1/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
30 changes: 30 additions & 0 deletions
30
test/stream/api/source/aggregation-002-ok/003-create-sink-1/request.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,30 @@ | ||
{ | ||
"path": "/v1/branches/default/sources/my-source-1/sinks", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"sinkId": "my-sink-1", | ||
"name": "My Sink", | ||
"type": "table", | ||
"table": { | ||
"type": "keboola", | ||
"tableId": "in.c-my-bucket.my-table", | ||
"mapping": { | ||
"columns": [ | ||
{ | ||
"type": "uuid-v7", | ||
"name": "id", | ||
"primaryKey": true | ||
}, | ||
{ | ||
"type": "body", | ||
"name": "body" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/003-poll-sink-1/expected-http-code
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 @@ | ||
200 |
5 changes: 5 additions & 0 deletions
5
test/stream/api/source/aggregation-002-ok/003-poll-sink-1/expected-response.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,5 @@ | ||
{ | ||
%A | ||
"status": "success", | ||
%A | ||
} |
11 changes: 11 additions & 0 deletions
11
test/stream/api/source/aggregation-002-ok/003-poll-sink-1/request.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,11 @@ | ||
{ | ||
"path": "<<003-create-sink-1:response.url>>", | ||
"method": "GET", | ||
"headers": { | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"repeat": { | ||
"until": "status != 'processing'", | ||
"timeout": 60 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/004-create-sink-2/expected-http-code
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 @@ | ||
202 |
8 changes: 8 additions & 0 deletions
8
test/stream/api/source/aggregation-002-ok/004-create-sink-2/expected-response.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,8 @@ | ||
{ | ||
"taskId": "api.create.sink/%%TEST_DEFAULT_BRANCH_ID%%/my-source-1/my-sink-2/%s", | ||
"type": "api.create.sink", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.sink/%%TEST_DEFAULT_BRANCH_ID%%/my-source-1/my-sink-2/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
30 changes: 30 additions & 0 deletions
30
test/stream/api/source/aggregation-002-ok/004-create-sink-2/request.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,30 @@ | ||
{ | ||
"path": "/v1/branches/default/sources/my-source-1/sinks", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"sinkId": "my-sink-2", | ||
"name": "My Sink", | ||
"type": "table", | ||
"table": { | ||
"type": "keboola", | ||
"tableId": "in.c-my-bucket.my-table", | ||
"mapping": { | ||
"columns": [ | ||
{ | ||
"type": "uuid-v7", | ||
"name": "id", | ||
"primaryKey": true | ||
}, | ||
{ | ||
"type": "body", | ||
"name": "body" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/source/aggregation-002-ok/004-poll-sink-2/expected-http-code
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 @@ | ||
200 |
5 changes: 5 additions & 0 deletions
5
test/stream/api/source/aggregation-002-ok/004-poll-sink-2/expected-response.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,5 @@ | ||
{ | ||
%A | ||
"status": "success", | ||
%A | ||
} |
11 changes: 11 additions & 0 deletions
11
test/stream/api/source/aggregation-002-ok/004-poll-sink-2/request.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,11 @@ | ||
{ | ||
"path": "<<004-create-sink-2:response.url>>", | ||
"method": "GET", | ||
"headers": { | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"repeat": { | ||
"until": "status != 'processing'", | ||
"timeout": 60 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...m/api/source/aggregation-002-ok/005-aggregation-limit-default-page-001/expected-http-code
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 @@ | ||
200 |
Oops, something went wrong.