Commit Graph
23 Commits
Author SHA1 Message Date
ShyamOOAI fc321fd294 test: try_cast test cases (#4939)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Tests**
- Introduced a new parameterized test suite for validating SQL queries
involving `cast` and `try_cast` operations.
- Enhanced testing framework to ensure API reliability when handling
various SQL casting scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-29 13:21:21 +05:30
Neha P 3d5d1a8f89 test: join queries testcases (#4910)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Tests**
- Introduced a series of end-to-end tests for SQL queries with various
join types to ensure functionality against the API.
- Added tests for `LIKE`, inner join, `IN`, left join, right join, and
full join SQL queries.
- Implemented parameterized testing for improved coverage and
maintainability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-25 15:30:29 +05:30
Neha P f5412c7528 test: added multiple float queries in pytest under alert and logs (#4909)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Added end-to-end tests for creating alerts based on SQL and float
values.
- Introduced a page object model for unflattened logs to streamline UI
interactions.
	- Implemented a function to toggle quick mode in the test suite.

- **Bug Fixes**
	- Enhanced error handling and validation in alert tests.
- Improved reliability of tests by ensuring UI elements are visible
before interactions.

- **Refactor**
- Refactored Playwright tests to utilize the `UnflattenedPage` object
for better maintainability.
	- Consolidated parameters in fetch requests for clarity.

- **Chores**
- Removed redundant tests from the alert test suite to improve clarity
and maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-25 13:09:15 +05:30
65fae0b89f feat: hash check when updating dashboards (#4687)
impl #4703 

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2024-10-06 22:59:28 -07:00
Hengfei Yang d1ed457369 feat: new search engine (#4182) 2024-09-20 15:10:54 +08:00
Yashodhan Joshi d45ac8f9ad fix: unify the trace ingestion handling (#4435) 2024-09-05 13:33:15 +08:00
Neha P c8059c4ed8 test: api test search queries (#4454)
Added more queries
Added test for match_all single character #4439

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced SQL query testing with a new data source, improving test
accuracy.
- Introduced multiple new test functions for comprehensive SQL
functionality coverage, including counting and coalescing.

- **Bug Fixes**
- Updated existing tests to align with the new data source, ensuring
reliable query validation.

- **Refactor**
- Replaced and renamed tests to reflect changes in the data source and
improve clarity.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-04 12:55:34 +05:30
Hengfei Yang 8a0dbe2cf4 feat: remove sql_mode, query_context and aggs from search API (#4089) 2024-07-31 11:23:11 +08:00
Neha P 22a3c11fdd test: assert records to be unique (#4014)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced enhanced test functions for more precise SQL queries,
improving the validation of result cache ratios.
- Added a new test for executing multiple SQL queries simultaneously,
expanding test coverage.

- **Bug Fixes**
- Updated assertions in existing tests to align with new query
structures and expected values.

- **Chores**
- Both new test functions are currently marked as skipped, indicating
they are not ready for execution.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-19 17:59:30 +05:30
Neha P d6ab1a9933 test: inverted index testcases (#3920)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Tests**
  - Added end-to-end test functions to validate SQL query handling.
  - Introduced new log entry for end-to-end test tracking.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-08 13:11:22 +05:30
Neha P 3763e31f28 test: api-search-tests (#3863)
- Fixed some breaking api tests

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Tests**
- Updated end-to-end tests related to SQL queries by commenting out
specific test functions.
- Enhanced SQL queries in tests with `ORDER BY` clauses for more precise
results.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-07-01 15:16:01 +05:30
Neha P c79240c6db test: e2e-cache-data-scenario (#3848)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Tests**
- Introduced an end-to-end test for SQL query caching to improve
reliability.
- Modified a UI test description and marked it as skipped for future
refinement.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-29 10:32:39 +05:30
Neha P 37722098ff test: pytest logs search queries (#3727)
- Added more search queries under pytest

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Tests**
- Added new end-to-end test functions for various SQL queries, including
count aggregation, match, max, in, and distinct queries, to ensure API
reliability and accuracy.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-12 17:08:09 +05:30
Taiming Liu 51d6c8e077 fix: inverted index query count (#3627) 2024-06-03 14:17:04 +08:00
Ashish Kolhe beeec9143f fix: revert renaming match_all (#3645)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
  - Enhanced search functionality with indexed matching options.

- **Bug Fixes**
  - Updated SQL queries in tests to align with new matching functions.

- **Improvements**
- Standardized naming conventions for matching functions to improve
clarity and consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-31 14:36:52 +05:30
Taiming Liu fc05d06c9a refactor: rename match_all & match_all_indexed (#3613)
match_all                  renamed to match_all_raw
match_all_indexed   renamed to match_all

same pattern applied to *_ignore_case functions

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Improved clarity in function names for better understanding and
usability.

- **Tests**
- Updated SQL queries in test cases to reflect changes in function
names, ensuring accurate test results.

- **Chores**
- Adjusted logging statements to provide better insights during
debugging.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-05-28 14:04:36 -07:00
Hengfei Yang fd49360f49 feat: add quick mode fields (#3068) 2024-03-22 15:54:39 +08:00
Neha Pandktx-vaidehi 48b5247126 test: added aggregation queries and folders testcase fix (#3064)
- added search API tests for aggregation queries
- fixed dashboard-folders tests

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
2024-03-21 18:19:20 +05:30
Neha PandAnkur Srivastava 53a7884302 test: added testcase for search queries (#3046)
- added match all valid cases for histogram and sql
- match_all_indexed cases for histogram and sql
- match_all_ignore case for histogram and sql
- match_all_indexed_ignorecase for histogram and sql

---------

Co-authored-by: Ankur Srivastava <best.ankur@gmail.com>
2024-03-20 20:09:49 +01:00
d686481569 test: prepopulate the amount of data for each test #3000 (#3031)
Created a fixture which will be available during scope=session. This
will ingest data present in tests/test-data/logs_data.json to
org_pytest_data and stream_pytest_data

API Tests positive and negative scenarios - 
- Search without payload
- Search with valid sql query
- search with invalid sql query
- search with limit and sql query
- valid histogram query
- histogram query with limit

---------

Co-authored-by: Neha P <neha@openobserve.ai>
Co-authored-by: Neha P <144308844+neha00290@users.noreply.github.com>
2024-03-18 16:38:56 +01:00
Ashish Kolhe da08a7f5e8 feat: rebac with openfga (#2452) 2024-01-11 20:40:17 +05:30
Juan Calderon-Perez 66968e8265 refactor: API Integration Tests workflow (#2324)
- Simplify the API integration tests by removing steps not needed (Node,
k8s, building docker, etc).
- Testing the UI, linting, formatting, etc should be done in a separate
workflow file
- Simplify Rust cache workflow.
  - By default it caches /target
- Removed Dockerfile and k8s deployment from CI.
  - You can just run `OpenObserve` in the background
- Replace `ubicloud-standard-16` with `ubuntu-latest` which is *FREE*.
  - Using 16 cores, 64GB of ram is an overkill for running tests.
- Don't run the CI if changes to `.md` files are detected.

Notes:
- Before caching building `OpenObserve` takes around 5-7 mins, after
cache it goes down to 1-2 mins.
2023-12-29 07:39:09 +01:00
Ankur Srivastavaandneha00290 2c319d9c6f feat: integrate API integration testing using pytest (#2250)
Co-authored-by: neha00290 <neha@openobserve.ai>
2023-12-27 16:59:41 +01:00