-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[Connector APIs] Enforce index prefix for managed connectors #117778
Open
jedrazb
wants to merge
10
commits into
elastic:main
Choose a base branch
from
jedrazb:connector-apis-add-native-connector-index-name-checks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+348
−41
Open
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e640ce3
[Connector APIs] Enforce manage connector index prefix
jedrazb 57d083f
Update ConnectorIndexServiceTests to check for prefix
jedrazb c807547
Merge branch 'main' into connector-apis-add-native-connector-index-na…
jedrazb dea0c05
Merge branch 'main' into connector-apis-add-native-connector-index-na…
elasticmachine 0aa8791
Update docs/changelog/117778.yaml
jedrazb 8abb14a
Fix accidental changes to muted tests
jedrazb c2f1818
Merge branch 'connector-apis-add-native-connector-index-name-checks' …
jedrazb 43aeca2
Review feedback
jedrazb f8741d3
Merge branch 'main' into connector-apis-add-native-connector-index-na…
jedrazb 0a3e0b8
Merge branch 'main' into connector-apis-add-native-connector-index-na…
jedrazb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ setup: | |
connector.put: | ||
connector_id: connector-b | ||
body: | ||
index_name: search-2-test | ||
index_name: content-search-2-test | ||
name: my-connector-2 | ||
language: en | ||
is_native: true | ||
|
@@ -40,13 +40,13 @@ setup: | |
- match: { count: 3 } | ||
|
||
# Alphabetical order by index_name for results | ||
- match: { results.0.id: "connector-a" } | ||
- match: { results.0.index_name: "search-1-test" } | ||
- match: { results.0.language: "pl" } | ||
- match: { results.0.id: "connector-b" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
- match: { results.0.index_name: "content-search-2-test" } | ||
- match: { results.0.language: "en" } | ||
|
||
- match: { results.1.id: "connector-b" } | ||
- match: { results.1.index_name: "search-2-test" } | ||
- match: { results.1.language: "en" } | ||
- match: { results.1.id: "connector-a" } | ||
- match: { results.1.index_name: "search-1-test" } | ||
- match: { results.1.language: "pl" } | ||
|
||
- match: { results.2.id: "connector-c" } | ||
- match: { results.2.index_name: "search-3-test" } | ||
|
@@ -62,9 +62,9 @@ setup: | |
- match: { count: 3 } | ||
|
||
# Alphabetical order by index_name for results | ||
- match: { results.0.id: "connector-b" } | ||
- match: { results.0.index_name: "search-2-test" } | ||
- match: { results.0.language: "en" } | ||
- match: { results.0.id: "connector-a" } | ||
- match: { results.0.index_name: "search-1-test" } | ||
- match: { results.0.language: "pl" } | ||
|
||
- match: { results.1.id: "connector-c" } | ||
- match: { results.1.index_name: "search-3-test" } | ||
|
@@ -79,13 +79,13 @@ setup: | |
- match: { count: 3 } | ||
|
||
# Alphabetical order by index_name for results | ||
- match: { results.0.id: "connector-a" } | ||
- match: { results.0.index_name: "search-1-test" } | ||
- match: { results.0.language: "pl" } | ||
- match: { results.0.id: "connector-b" } | ||
- match: { results.0.index_name: "content-search-2-test" } | ||
- match: { results.0.language: "en" } | ||
|
||
- match: { results.1.id: "connector-b" } | ||
- match: { results.1.index_name: "search-2-test" } | ||
- match: { results.1.language: "en" } | ||
- match: { results.1.id: "connector-a" } | ||
- match: { results.1.index_name: "search-1-test" } | ||
- match: { results.1.language: "pl" } | ||
|
||
--- | ||
"List Connector - empty": | ||
|
@@ -118,11 +118,11 @@ setup: | |
|
||
- do: | ||
connector.list: | ||
index_name: search-1-test,search-2-test | ||
index_name: search-1-test,content-search-2-test | ||
|
||
- match: { count: 2 } | ||
- match: { results.0.index_name: "search-1-test" } | ||
- match: { results.1.index_name: "search-2-test" } | ||
- match: { results.0.index_name: "content-search-2-test" } | ||
- match: { results.1.index_name: "search-1-test" } | ||
|
||
|
||
--- | ||
|
@@ -147,19 +147,19 @@ setup: | |
connector_name: my-connector-1,my-connector-2 | ||
|
||
- match: { count: 2 } | ||
- match: { results.0.name: "my-connector-1" } | ||
- match: { results.1.name: "my-connector-2" } | ||
- match: { results.0.name: "my-connector-2" } | ||
- match: { results.1.name: "my-connector-1" } | ||
|
||
|
||
--- | ||
"List Connector - filter by index name and name": | ||
- do: | ||
connector.list: | ||
connector_name: my-connector-1,my-connector-2 | ||
index_name: search-2-test | ||
index_name: content-search-2-test | ||
|
||
- match: { count: 1 } | ||
- match: { results.0.index_name: "search-2-test" } | ||
- match: { results.0.index_name: "content-search-2-test" } | ||
- match: { results.0.name: "my-connector-2" } | ||
|
||
|
||
|
@@ -230,13 +230,13 @@ setup: | |
- match: { count: 3 } | ||
|
||
# Alphabetical order by index_name for results | ||
- match: { results.0.id: "connector-a" } | ||
- match: { results.0.index_name: "search-1-test" } | ||
- match: { results.0.language: "pl" } | ||
- match: { results.0.id: "connector-b" } | ||
- match: { results.0.index_name: "content-search-2-test" } | ||
- match: { results.0.language: "en" } | ||
|
||
- match: { results.1.id: "connector-b" } | ||
- match: { results.1.index_name: "search-2-test" } | ||
- match: { results.1.language: "en" } | ||
- match: { results.1.id: "connector-a" } | ||
- match: { results.1.index_name: "search-1-test" } | ||
- match: { results.1.language: "pl" } | ||
|
||
- match: { results.2.id: "connector-c" } | ||
- match: { results.2.index_name: "search-3-test" } | ||
|
@@ -255,13 +255,13 @@ setup: | |
- match: { count: 3 } | ||
|
||
# Alphabetical order by index_name for results | ||
- match: { results.0.id: "connector-a" } | ||
- match: { results.0.index_name: "search-1-test" } | ||
- match: { results.0.language: "pl" } | ||
- match: { results.0.id: "connector-b" } | ||
- match: { results.0.index_name: "content-search-2-test" } | ||
- match: { results.0.language: "en" } | ||
|
||
- match: { results.1.id: "connector-b" } | ||
- match: { results.1.index_name: "search-2-test" } | ||
- match: { results.1.language: "en" } | ||
- match: { results.1.id: "connector-a" } | ||
- match: { results.1.index_name: "search-1-test" } | ||
- match: { results.1.language: "pl" } | ||
|
||
- match: { results.2.id: "connector-c" } | ||
- match: { results.2.index_name: "search-3-test" } | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
ConnectorIndexServiceTests
has been running fine for almost a year, I saw seemingly unrelated issue in the failed buildkite run that led to muting this