Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(specs): ingestion docker task input #3488

Merged
merged 8 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion specs/ingestion/common/schemas/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,34 @@ DockerStreamsInput:
type: object
properties:
streams:
type: object
type: array
items:
$ref: '#/DockerStreams'
required:
- streams

DockerStreams:
type: object
properties:
name:
type: string
description: The name of the stream to fetch the data from (e.g. table name).
properties:
type: array
description: The properties of the stream to select (e.g. column).
items:
type: string
syncMode:
$ref: '#/DockerStreamsSyncMode'
required:
- name
- syncMode

DockerStreamsSyncMode:
type: string
description: The strategy to use to fetch the data.
enum: [incremental, fullTable]

failureThreshold:
type: integer
minimum: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ post:
- transformations
summary: Try a transformation
description: Try a transformation.
operationId: tryTransformations
operationId: tryTransformation
x-acl:
- addObject
- deleteIndex
Expand Down
35 changes: 35 additions & 0 deletions tests/CTS/requests/ingestion/createTask.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,40 @@
"action": "replace"
}
}
},
{
"testName": "task shopify",
"parameters": {
"sourceID": "search",
"destinationID": "destinationName",
"cron": "* * * * *",
"action": "replace",
"input": {
"streams": [
{
"name": "foo",
"syncMode": "incremental"
}
]
}
},
"request": {
"path": "/2/tasks",
"method": "POST",
"body": {
"sourceID": "search",
"destinationID": "destinationName",
"cron": "* * * * *",
"action": "replace",
"input": {
"streams": [
{
"name": "foo",
"syncMode": "incremental"
}
]
}
}
}
}
]
39 changes: 39 additions & 0 deletions tests/CTS/requests/ingestion/createTaskV1.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,44 @@
"action": "replace"
}
}
},
{
"testName": "task shopify",
"parameters": {
"sourceID": "search",
"destinationID": "destinationName",
"trigger": {
"type": "onDemand"
},
"action": "replace",
"input": {
"streams": [
{
"name": "foo",
"syncMode": "incremental"
}
]
}
},
"request": {
"path": "/1/tasks",
"method": "POST",
"body": {
"sourceID": "search",
"destinationID": "destinationName",
"trigger": {
"type": "onDemand"
},
"action": "replace",
"input": {
"streams": [
{
"name": "foo",
"syncMode": "incremental"
}
]
}
}
}
}
]
Loading