Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] feat: new assertion engine (kubeshop#1378)
* feat: new expression engine (kubeshop#1350) * fix: opensearch example by pinning docker image versions (kubeshop#1358) pin docker image versions * add parsing rules * add filters to the parser * add more test cases for filters * add basic comparisons * add attributes support * remove dead code * support duration comparisons * fix string interpolation * add more tests for interpolation * add support for filters and add json_path filter * support meta attributes * fix meta attributes and duration precision bug * update assertion engine to use new expression engine * update cli to use new assertion format * fix examples * patch tracetesting tests * fix duration conversion * fix regex to detect id field in definition file * remove dead code from assertions * improve filters and add regex filters * add new test to assert spaces are allowed in filter args * improve filter implementation to use typed values * use const instead of string Co-authored-by: Sebastian Choren <[email protected]> * rename types and use iota * remove github actions branch filter for pr pipelines Co-authored-by: Sebastian Choren <[email protected]> * disable otel demo on beta and demo envs (kubeshop#1356) * 1353 fixing test card styles (kubeshop#1355) * fix deployments (kubeshop#1360) * [transactions] Implement transactions details page (kubeshop#1351) * docs: new expressions (kubeshop#1361) * docs: new expressions * apply Julianne changes Co-authored-by: Julianne Fermi <[email protected]> * Update docs/expressions.md Co-authored-by: Julianne Fermi <[email protected]> * Apply suggestions from code review Co-authored-by: Julianne Fermi <[email protected]> Co-authored-by: Julianne Fermi <[email protected]> * feat: add count filter (kubeshop#1377) * feat: add count filter * update docs * feat: allow 'last' as argument for get_index filter (kubeshop#1380) * feat: allow 'last' as arg for get_index filter * update documentation * fix CLI rebase * feat: support variables in expressions (kubeshop#1388) * feat: support variables in expressions * docs: add documentation about variables in expressions * docs: fix variables title * add benchmark * Update docs/expressions.md Co-authored-by: Julianne Fermi <[email protected]> Co-authored-by: Julianne Fermi <[email protected]> * feat: new expression engine (kubeshop#1350) * fix: opensearch example by pinning docker image versions (kubeshop#1358) pin docker image versions * add parsing rules * add filters to the parser * add more test cases for filters * add basic comparisons * add attributes support * remove dead code * support duration comparisons * fix string interpolation * add more tests for interpolation * add support for filters and add json_path filter * support meta attributes * fix meta attributes and duration precision bug * update assertion engine to use new expression engine * update cli to use new assertion format * fix examples * patch tracetesting tests * fix duration conversion * fix regex to detect id field in definition file * remove dead code from assertions * improve filters and add regex filters * add new test to assert spaces are allowed in filter args * improve filter implementation to use typed values * use const instead of string Co-authored-by: Sebastian Choren <[email protected]> * rename types and use iota * remove github actions branch filter for pr pipelines Co-authored-by: Sebastian Choren <[email protected]> * 1353 fixing test card styles (kubeshop#1355) * [transactions] Implement transactions details page (kubeshop#1351) * docs: new expressions (kubeshop#1361) * docs: new expressions * apply Julianne changes Co-authored-by: Julianne Fermi <[email protected]> * Update docs/expressions.md Co-authored-by: Julianne Fermi <[email protected]> * Apply suggestions from code review Co-authored-by: Julianne Fermi <[email protected]> Co-authored-by: Julianne Fermi <[email protected]> * feat: add count filter (kubeshop#1377) * feat: add count filter * update docs * feat: allow 'last' as argument for get_index filter (kubeshop#1380) * feat: allow 'last' as arg for get_index filter * update documentation * fix CLI rebase * feat: support variables in expressions (kubeshop#1388) * feat: support variables in expressions * docs: add documentation about variables in expressions * docs: fix variables title * add benchmark * Update docs/expressions.md Co-authored-by: Julianne Fermi <[email protected]> Co-authored-by: Julianne Fermi <[email protected]> * adding the base editor * adding the base editor * Test outputs (kubeshop#1368) * basic editors integration * fixing FE unit tests * feat: support generator functions in expressions (kubeshop#1393) * remove old replacer implementation * add function calls to expression engine parser * add full support for function calls in expresions * remove old functions package and fix tests * docs: update generator functions docs * Apply suggestions from code review Co-authored-by: Julianne Fermi <[email protected]> * Apply suggestions from code review Co-authored-by: Sebastian Choren <[email protected]> * merge count and length filters into a single length filter Co-authored-by: Julianne Fermi <[email protected]> Co-authored-by: Sebastian Choren <[email protected]> * feat: add "type" filter and support arrays in expressions (kubeshop#1397) * feat: array support and type filter * update docs * add test case * extract value to its own package * make expression engine use value.Value instead of string * add Type function to value.Value * overload contains operator to work with arrays * add example of array contains in docs * add chaining type filter example * Encoding refactor (kubeshop#1399) * improving expressions input integration * improving expressions input integration * updates and fixes * Handle file execution in backend (kubeshop#1404) Co-authored-by: Sebastian Choren <[email protected]> Co-authored-by: Oscar Reyes <[email protected]> Co-authored-by: Jorge Padilla <[email protected]> Co-authored-by: Julianne Fermi <[email protected]>
- Loading branch information