File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed
integration/core-opensearch-dashboards/opensearch-dashboards/apps/vis_type_tsvb
utils/dashboards/vis_type_tsvb Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ describe('TSVB Visualization', () => {
4444
4545 if ( Cypress . env ( 'DATASOURCE_MANAGEMENT_ENABLED' ) ) {
4646 before ( ( ) => {
47+ cy . deleteAllDataSources ( ) ;
4748 cy . deleteDataSourceIndexNoAuth ( TSVB_INDEX_ID ) ;
4849 cy . createDataSourceNoAuth ( ) ;
4950 cy . bulkUploadDocsToDataSourceNoAuth ( TSVB_PATH_INDEX_DATA ) ;
@@ -73,27 +74,10 @@ describe('TSVB Visualization', () => {
7374 } ) ;
7475 } ) ;
7576 } ) ;
76- } else {
77- describe ( 'When MDS is disabled' , ( ) => {
78- it ( 'should query from local cluster' , ( ) => {
79- cy . contains ( 'button' , 'Panel options' ) . click ( ) ;
80- cy . get ( 'input[data-test-subj="metricsIndexPatternInput"]' ) . type (
81- TSVB_INDEX_ID
82- ) ;
83- cy . tsvbSaveVisualization ( ) ;
84- // Visualization should be drawn; correct visualizations do not have warning messages
85- cy . get ( 'canvas' ) . should ( 'exist' ) ;
86- } ) ;
87- } ) ;
8877 }
8978
9079 after ( ( ) => {
9180 cy . deleteIndex ( TSVB_INDEX_ID ) ;
9281 cy . deleteIndexPattern ( TSVB_INDEX_PATTERN ) ;
93-
94- if ( Cypress . env ( 'DATASOURCE_MANAGEMENT_ENABLED' ) ) {
95- cy . deleteDataSourceIndexNoAuth ( TSVB_INDEX_ID ) ;
96- cy . deleteAllDataSources ( ) ;
97- }
9882 } ) ;
9983} ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const TSVB_PATH_INDEX_DATA = TSVB_PATH_FIXTURE + TSVB_INDEX_DATA;
1313// Update the constants
1414export const TSVB_INDEX_START_TIME = 'May 16, 2010 @ 00:00:00.000' ;
1515export const TSVB_INDEX_END_TIME = 'May 16, 2024 @ 00:00:00.000' ;
16- export const TSVB_INDEX_ID = 'metrics' ;
16+ export const TSVB_INDEX_ID = 'vis- metrics' ;
1717export const TSVB_INDEX_PATTERN = 'index-pattern-vis-metrics' ;
1818
1919export const TSVB_VIS_TYPE = 'visualization' ;
You can’t perform that action at this time.
0 commit comments