forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Streams 🌊] Update simulator to assert fields & integration…
… testing (elastic#206950) (elastic#207345) # Backport This will backport the following commits from `main` to `8.x`: - [[Streams 🌊] Update simulator to assert fields & integration testing (elastic#206950)](elastic#206950) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Antonio Ghiani","email":"marcoantonio.ghiani01@gmail.com"},"sourceCommit":{"committedDate":"2025-01-21T12:50:07Z","message":"[Streams 🌊] Update simulator to assert fields & integration testing (elastic#206950)\n\n## 📓 Summary\r\n\r\nCloses https://github.com/elastic/streams-program/issues/68\r\n\r\nThis work updates the way a simulation for processing is performed,\r\nworking against the `_ingest/_simulate` API.\r\nThis gives less specific feedback on the simulation failure (which\r\nprocessor failed), but allows for a much more realistic simulation\r\nagainst the index configuration.\r\n\r\nThis work also adds integration testing for this API.\r\n\r\n## 📔 Reviewer notes\r\n\r\nThe API is poorly typed due to missing typing in the elasticsearch-js\r\nlibrary. elastic#204175 updates the library with those typings, as soon as it's\r\nmerged I'll update the API.\r\n\r\n## 🎥 Recordings\r\n\r\n\r\nhttps://github.com/user-attachments/assets/36ce0d3c-b7de-44d2-bdc2-84ff67fb4b25","sha":"39bf5e646fcaf31702dfe9fb17942d5aaea528ab","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Feature:Streams"],"title":"[Streams 🌊] Update simulator to assert fields & integration testing","number":206950,"url":"https://github.com/elastic/kibana/pull/206950","mergeCommit":{"message":"[Streams 🌊] Update simulator to assert fields & integration testing (elastic#206950)\n\n## 📓 Summary\r\n\r\nCloses https://github.com/elastic/streams-program/issues/68\r\n\r\nThis work updates the way a simulation for processing is performed,\r\nworking against the `_ingest/_simulate` API.\r\nThis gives less specific feedback on the simulation failure (which\r\nprocessor failed), but allows for a much more realistic simulation\r\nagainst the index configuration.\r\n\r\nThis work also adds integration testing for this API.\r\n\r\n## 📔 Reviewer notes\r\n\r\nThe API is poorly typed due to missing typing in the elasticsearch-js\r\nlibrary. elastic#204175 updates the library with those typings, as soon as it's\r\nmerged I'll update the API.\r\n\r\n## 🎥 Recordings\r\n\r\n\r\nhttps://github.com/user-attachments/assets/36ce0d3c-b7de-44d2-bdc2-84ff67fb4b25","sha":"39bf5e646fcaf31702dfe9fb17942d5aaea528ab"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206950","number":206950,"mergeCommit":{"message":"[Streams 🌊] Update simulator to assert fields & integration testing (elastic#206950)\n\n## 📓 Summary\r\n\r\nCloses https://github.com/elastic/streams-program/issues/68\r\n\r\nThis work updates the way a simulation for processing is performed,\r\nworking against the `_ingest/_simulate` API.\r\nThis gives less specific feedback on the simulation failure (which\r\nprocessor failed), but allows for a much more realistic simulation\r\nagainst the index configuration.\r\n\r\nThis work also adds integration testing for this API.\r\n\r\n## 📔 Reviewer notes\r\n\r\nThe API is poorly typed due to missing typing in the elasticsearch-js\r\nlibrary. elastic#204175 updates the library with those typings, as soon as it's\r\nmerged I'll update the API.\r\n\r\n## 🎥 Recordings\r\n\r\n\r\nhttps://github.com/user-attachments/assets/36ce0d3c-b7de-44d2-bdc2-84ff67fb4b25","sha":"39bf5e646fcaf31702dfe9fb17942d5aaea528ab"}}]}] BACKPORT--> Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani01@gmail.com>
- Loading branch information
1 parent
9573c53
commit 662c19b
Showing
7 changed files
with
455 additions
and
84 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...tions/observability/plugins/streams/server/lib/streams/errors/detected_mapping_failure.ts
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,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export class DetectedMappingFailure extends Error { | ||
constructor(message: string) { | ||
super(message); | ||
this.name = 'DetectedMappingFailure'; | ||
} | ||
} |
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.