-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2131 from keboola/jt-psgo-918-rollback
fix: Preserve state on rollback
- Loading branch information
Showing
239 changed files
with
796 additions
and
180 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
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
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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-001-minimal-and-get/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-001-minimal-and-get/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-002-with-id-and-get/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-002-with-id-and-get/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-003-weird-id-and-get/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-003-weird-id-and-get/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-004-with-description-and-get/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-004-with-description-and-get/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-005-invalid-type-400/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-005-invalid-type-400/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-006-id-empty-400/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-006-id-empty-400/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-006-id-max-length-400/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-006-id-max-length-400/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-008-name-empty-400/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-008-name-empty-400/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-009-name-max-length-400/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-009-name-max-length-400/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-010-missing-storage-token-400/001-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-011-exists-409/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-011-exists-409/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-011-exists-409/005-create-sink-exists/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-012-invalid-jsonnet-template/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-012-invalid-jsonnet-template/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-013-duplicite-creation/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-013-duplicite-creation/003-create-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-013-duplicite-creation/004-create-duplicate-sink/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-013-in-parallel/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-013-in-parallel/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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-013-in-parallel/003-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-013-in-parallel/003-create-sink-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-014-disable-enable/001-create-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
2 changes: 1 addition & 1 deletion
2
test/stream/api/sink/create-014-disable-enable/003-create-sink/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
1 change: 1 addition & 0 deletions
1
test/stream/api/sink/create-015-disable-rollback/001-create-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 @@ | ||
202 |
8 changes: 8 additions & 0 deletions
8
test/stream/api/sink/create-015-disable-rollback/001-create-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,8 @@ | ||
{ | ||
"taskId": "api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source/%s", | ||
"type": "api.create.source", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
12 changes: 12 additions & 0 deletions
12
test/stream/api/sink/create-015-disable-rollback/001-create-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,12 @@ | ||
{ | ||
"path": "/v1/branches/%%TEST_DEFAULT_BRANCH_ID%%/sources", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"name": "My Source", | ||
"type": "http" | ||
} | ||
} |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
test/stream/api/sink/create-015-disable-rollback/002-poll-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,17 @@ | ||
{ | ||
"taskId": "api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source/%s", | ||
"type": "api.create.source", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.source/%%TEST_DEFAULT_BRANCH_ID%%/my-source/%s", | ||
"status": "success", | ||
"isFinished": true, | ||
"createdAt": "%s", | ||
"finishedAt": "%s", | ||
"duration": %d, | ||
"result": "Source has been created successfully.", | ||
"outputs": { | ||
"url": "https://stream.keboola.local/v1/branches/%%TEST_DEFAULT_BRANCH_ID%%/sources/my-source", | ||
"projectId": %%TEST_KBC_PROJECT_ID%%, | ||
"branchId": %%TEST_DEFAULT_BRANCH_ID%%, | ||
"sourceId": "my-source" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
test/stream/api/sink/create-015-disable-rollback/002-poll-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,11 @@ | ||
{ | ||
"path": "<<001-create-source: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/sink/create-015-disable-rollback/003-create-sink/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/sink/create-015-disable-rollback/003-create-sink/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/my-sink/%s", | ||
"type": "api.create.sink", | ||
"url": "https://stream.keboola.local/v1/tasks/api.create.sink/%%TEST_DEFAULT_BRANCH_ID%%/my-source/my-sink/%s", | ||
"status": "processing", | ||
"isFinished": false, | ||
"createdAt": "%s" | ||
} |
28 changes: 28 additions & 0 deletions
28
test/stream/api/sink/create-015-disable-rollback/003-create-sink/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,28 @@ | ||
{ | ||
"path": "/v1/branches/%%TEST_DEFAULT_BRANCH_ID%%/sources/my-source/sinks", | ||
"method": "POST", | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"X-StorageApi-Token": "%%TEST_KBC_STORAGE_API_TOKEN%%" | ||
}, | ||
"body": { | ||
"name": "My Sink", | ||
"type": "table", | ||
"table": { | ||
"type": "keboola", | ||
"tableId": "in.c-my-bucket.my-table", | ||
"mapping": { | ||
"columns": [ | ||
{ | ||
"type": "uuid", | ||
"name": "id" | ||
}, | ||
{ | ||
"type": "body", | ||
"name": "body" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/stream/api/sink/create-015-disable-rollback/004-poll-sink/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.