-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
24 changed files
with
1,805 additions
and
11 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
rest-api-spec/src/main/resources/rest-api-spec/api/connector_sync_job.post.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,33 @@ | ||
{ | ||
"connector_sync_job.post": { | ||
"documentation": { | ||
"url": "https://www.elastic.co/guide/en/enterprise-search/current/connectors.html", | ||
"description": "Creates a connector sync job." | ||
}, | ||
"stability": "experimental", | ||
"visibility": "feature_flag", | ||
"feature_flag": "es.connector_api_feature_flag_enabled", | ||
"headers": { | ||
"accept": [ | ||
"application/json" | ||
], | ||
"content_type": [ | ||
"application/json" | ||
] | ||
}, | ||
"url": { | ||
"paths": [ | ||
{ | ||
"path": "/_connector/_sync_job", | ||
"methods": [ | ||
"POST" | ||
] | ||
} | ||
] | ||
}, | ||
"body": { | ||
"description": "The connector sync job data.", | ||
"required": true | ||
} | ||
} | ||
} |
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
62 changes: 62 additions & 0 deletions
62
...t/src/yamlRestTest/resources/rest-api-spec/test/entsearch/400_connector_sync_job_post.yml
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,62 @@ | ||
setup: | ||
- skip: | ||
version: " - 8.11.99" | ||
reason: Introduced in 8.12.0 | ||
- do: | ||
connector.put: | ||
connector_id: test-connector | ||
body: | ||
index_name: search-test | ||
name: my-connector | ||
language: de | ||
is_native: false | ||
service_type: super-connector | ||
|
||
--- | ||
'Create connector sync job': | ||
- do: | ||
connector_sync_job.post: | ||
body: | ||
id: test-connector | ||
job_type: full | ||
trigger_method: on_demand | ||
- set: { id: id } | ||
- match: { id: $id } | ||
|
||
--- | ||
'Create connector sync job with missing job type': | ||
- skip: | ||
features: warnings | ||
- do: | ||
warnings: | ||
- Missing field 'job_type'. Using default value 'full'. | ||
connector_sync_job.post: | ||
body: | ||
id: test-connector | ||
trigger_method: on_demand | ||
- set: { id: id } | ||
- match: { id: $id } | ||
|
||
--- | ||
'Create connector sync job with missing trigger method': | ||
- skip: | ||
features: warnings | ||
- do: | ||
warnings: | ||
- Missing field 'trigger_method'. Using default value 'on_demand'. | ||
connector_sync_job.post: | ||
body: | ||
id: test-connector | ||
job_type: full | ||
- set: { id: id } | ||
- match: { id: $id } | ||
|
||
--- | ||
'Create connector sync job with non-existing connector id': | ||
- do: | ||
connector_sync_job.post: | ||
body: | ||
id: non-existing-id | ||
job_type: full | ||
trigger_method: on_demand | ||
catch: missing |
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
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
Oops, something went wrong.