Commit Graph
51 Commits
Author SHA1 Message Date
Neha P 5bb3baad92 test: add unflattened testcase and POM (#4905)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new `UnflattenedPage` class for structured UI
interactions in tests.
	- Added functionality to toggle quick mode in the testing framework.

- **Bug Fixes**
- Improved error handling and visibility assertions in various test
cases.

- **Documentation**
- Enhanced comments and code formatting for better readability and
maintainability.

- **Refactor**
- Restructured test cases to utilize the `UnflattenedPage` object,
promoting a page object model for improved code organization.
	- Updated test configurations for better clarity and consistency.

- **Chores**
- Removed several outdated test files related to dashboard and logging
functionalities, streamlining the test suite.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-24 19:50:33 +05:30
John Vandenberg 16ee5fc680 chore: fix frontend typos (#4612) 2024-09-25 11:09:26 +08:00
BhargavandTaiming Liu 72aea59198 fix: sql function change with syntax guide (#3643)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced text snippet suggestions in the Query Editor with updated
labels and insert text.
- Introduced new functions for advanced search and matching operations
in the Query Editor.
  
- **Improvements**
- Improved search instructions for 'error' values in the Syntax Guide,
including clarifications on case sensitivity.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
2024-07-12 13:02:03 +05:30
Hengfei Yang 46a5af14fe feat: secondary index (#3870) 2024-07-10 15:08:07 +08:00
Omkar Kesarkhane 402d450321 chore: Frontend Optimization (#3532)
Lazy loaded packages
Lazy loaded Components
2024-05-24 21:02:06 +05:30
Bhargav 02c257e5c2 fix: logs count call split (#3456) 2024-05-11 15:58:12 +05:30
42982877e5 test: logs quickmode playwright tests (#3143)
- testing playwright testcases for logs quickmode

---------

Co-authored-by: Ankur Srivastava <best.ankur@gmail.com>
Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
2024-05-09 11:18:45 +02:00
c9a4e00d69 feat: data ingestion pipeline (#3282)
Co-authored-by: omkark06 <omkar@zinclabs.io>
Co-authored-by: Neha P <neha@openobserve.ai>
2024-05-06 19:31:46 +05:30
Ashish KolheandNeha P a413179068 fix: only get required versions while watching (#3399)
Co-authored-by: Neha P <neha@openobserve.ai>
2024-05-06 16:24:46 +05:30
BhargavandHengfei Yang c51e8bd84f fix: histogram pagination fix (#3339)
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-04-25 19:40:44 +08:00
Omkar KesarkhaneandBhargav 545e0bf6bc fix: Enabled histogram in sql mode for non aggregated queries (#3133)
**Problem**: 
Histogram was disabled in SQL mode.

**Solution**:
Enabled histogram in sql mode for only non aggregated queries

---------

Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2024-04-10 19:11:08 +05:30
Neha P 898cb1cc47 test: testcases for quick mode (#3124)
- Verify if quick mode is displayed
- Verify if user is able to click on interesting fields
- Verify on clicking interesting fields user is able to view the field
in sql mode
- Verify if on clicking interesting field when histogram is enabled,
expected results are displayed
- Verify if error displayed on entering random text in histogram mode
when quick mode is on
- Verify should display order by as default when switched to sql mode
- Verify if on page refresh the orderby is still present by default in
sql mode
- Verify if on page adding removing the interesting field removes in
from sql mode and the results too
2024-03-30 11:07:21 +05:30
Omkar Kesarkhane 6e47372cfe fix: saved view issues (#3112)
fix #3109
2024-03-27 19:37:07 +05:30
Omkar Kesarkhane aabeb04254 fix: added order by _timestamp desc in logs query (#3103)
In sql mode, if query does not contains  " order by " it throws error.

Solution:
On switching to sql mode, by default added "order by _timestamp desc" in
logs query
2024-03-26 20:34:49 +05:30
Bhargav 8dca74b03e fix: added pagination in logs and stream page for schema field list (#3093) 2024-03-25 15:12:21 +05:30
Neha P d0b9d5043f test: added drilldown tests (#3070)
- should not allow adding drilldown without name
- should add variable under drilldown and verify if drilldown is added 
- delete the created dashboard once verification is done
2024-03-22 17:42:07 +05:30
BhargavandHengfei Yang 0ad6888e5c feat: Interesting fields UI changes (#3058)
- The notification has been eliminated during the configuration of
absolute dates.
- The SQL mode should not trigger the query automatically upon
deactivation if run query flag is true.
- The Histogram feature should remain inactive while SQL mode is
enabled.
- Modifications related to the quick mode.
- Within SQL mode, the "_timestamp" field is required, and an "order by"
clause is necessary.

---------

Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2024-03-22 16:55:10 +05:30
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
Bhargav 5300cb1f22 fix: pagination disable on limit query (#3037) 2024-03-18 23:12:32 +05:30
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
Hengfei Yang e33ae00ea1 feat: merge dev into main (#3016) 2024-03-17 22:38:07 +08:00
Bhargav e0ae01908f fix: allowed "-" & "_" in saved view name (#2968) 2024-03-14 12:25:47 +05:30
Neha P 962acf55cd test: inverted index value for queries testcase (#2931)
Added testcases for the following scenarios 
- should match total - histogram mode ignore case for normal and index
search test
- should match total - histogram mode match all for normal and index
search
2024-03-10 19:57:22 +05:30
Neha P 5d2a798d16 test: logs limit testcases (#2918) 2024-03-08 23:14:52 +05:30
Neha P aa996ca58a test: fix logs testcases (#2917) 2024-03-08 20:21:56 +05:30
Neha P a9dbe51e41 test: add functions testcases (#2910) 2024-03-08 15:38:04 +05:30
Neha P be66547db2 test: remove quick mode testcases (#2900) 2024-03-07 17:05:52 +01:00
Neha P 85c3c06c04 test: fastmode testcases (#2890)
- display results for fast mode off for match all case
- display results for fast mode off and match all_indexed
- display results for fast mode on and match all_indexed
- display results for fast mode on and match all ignore case
- display results for fast mode on and match all indexed ignore case
- display results for fast mode on and run query
- display results for fast mode on with sql mode on and run query
- display results for fast mode on, SQL mode on and match all indexed
ignore case
- display correct results when fast mode on
2024-03-07 18:27:56 +05:30
Neha P bc22d8c419 test: alerts testcases run (#2867)
- Run all alerts tests
- Run all logs tests
- Run all folders tests
2024-03-06 13:08:10 +05:30
Neha P ba9732c8cb test: run logs breaking testcase (#2833)
- fixed JSON view broken testcase under logs
2024-03-01 14:19:55 +05:30
Neha P b68ba66ea5 test: removed stream settings testcase (#2809)
- Skipped stream settings testcase as UI changed.
2024-02-28 15:20:37 +05:30
Neha P 0bb6ddb70f test: updated locators for alerts (#2652)
- Added locators and fixed failing testcase for alerts
2024-02-05 16:13:45 +05:30
Neha P 5d0f8dc3db test: logs to stream navigation testcases (#2651)
- Display added function on switching between tabs and again navigate to
logs
- Change stream settings and click on search stream
- Not display error if match all case added in log query search
2024-02-05 13:09:54 +05:30
Neha P e7cfedd367 test: fix saved view deletion under logs (#2618)
- fixed saved views delete testcase
2024-01-31 17:53:01 +05:30
Neha P af46e3ea7d test: fix logs testcases (#2613) 2024-01-31 09:58:22 +05:30
Neha P b8e7b8d11a test: stream to logs navigation testcases (#2612)
- Add streams to logs navigation
- Reset filter testcase
- navigate to another page and again logs page should display logs data
- Should enable SQL toggle and click on any field from LHS
2024-01-30 17:55:59 +05:30
Neha P e752baf02e test: fixed logs breaking testcases (#2538)
- Fixed 3 testcases under logs that were breaking due to the element
getting hidden from div
2024-01-24 11:26:47 +05:30
Neha P 3e0d3b5d53 test: logs histogram graph testcase (#2468)
- Added logs testcase to test this bug - #2461
2024-01-12 18:45:48 +05:30
Neha P 8ae4e19b96 test:added alerts testcases and fixed logs tests (#2451)
- Add a new template
- Display error when template added without name
- Display error when template added with invalid body
- Add a new destination
- Display error when destination added without name
- Add alert
- Display error when alert added without name under alerts
- Display error when alert added without stream under alerts
- Display error when user directly clicks save without any values under
alerts
- Delete destination
- Delete template
- Verify if add template displayed on alerts page if no template added
- Verify if add template displayed on destination page if no template
added
- Verify a success message displayed on destination creation
- Verify if Add destination button is displayed
- Verify if on cancel on delete confirmation the alert does not get
deleted
- Verify logs selected from dropdown and create alert

Logs - 
Fixed logs breaking testcases
2024-01-11 16:42:13 +05:30
Neha P 20e9fc5d2e test: create folders under dashboard page (#2440)
- Create a folder and then delete
- Display error when folder created with only spaces under name
- Should add a dashboard under folder and then delete dashboard and that
folder
- Create 2 folders and move dashboard from one folder to another. Then
delete dashboard and folders
- Click on cancel on folder creation UI
2024-01-10 17:41:29 +05:30
Neha P 4422b61a96 test:edit dashboard testcases (#2429)
- Added edit dashboard tests
- updated locator under add dashboard
- fixed breaking testcase under create dashboard
- fixed file delete testcase under functions
- updated query under fixtures
2024-01-10 14:29:59 +05:30
Neha P b53e56a6c6 test: cypress test changes (#2417)
- Changes to config for test run
2024-01-08 18:09:23 +05:30
Neha P f5c21f5d8e test: added logs-vrlfunction testcase (#2415)
- Display added function on switching between tabs and again navigate to
logs
2024-01-08 16:17:53 +05:30
Neha P 4fbaefc002 test: logs vrl testcase assertion added (#2412)
- Verify if the vrl function added is displayed in the expanded search
result view
2024-01-08 13:41:22 +05:30
Neha P 3eca163b74 test: added tests for functions page (#2398)
- Display error when creating function without mandatory fields
- Display error on entering invalid name under function and save
- Display error on entering invalid function and save
- Display error on entering adding function with same name
- Add a function and associate a stream with the same
- Display error add a function and associate a stream with the same
- Upload a enrichment table under functions and save
2024-01-05 15:08:24 +05:30
Neha P d19163f89a fix: e2e - added logs testcase to navigate on logs page (#2392) 2024-01-04 20:01:09 +05:30
Neha P fb2eec0195 feat: e2e add dashboard panel testcases (#2388)
- Add a panel 
- drag and drop an element 
- Verify query generation on the when fields are added and removed from
axis
- Update the chart when field configurations are updated including
filters
- Update the value automatically when trying to save the chart after
switching from the auto to custom mode
- Clear the field after switch from custom to auto mode
- Generate chart with the custom query mode
- Display error when add new chartype with existing chart type value
- Delete all dashboards
2024-01-04 16:39:41 +05:30
Neha P 4c349086fb feat: e2e create dashboard testcases (#2386)
- Add a new dashboard
- Add and delete the created dashboard
- Delete all dashboards
- Verify if save button enabled if dashboard name has only spaces added
2024-01-04 13:51:09 +05:30
Neha P 9b6d387440 fix: fixed log breaking testcase (#2384)
- Fixed timezone testcase under logs
2024-01-04 11:57:14 +05:30