Skip to content

Commit 09f87be

Browse files
yujin-emmazhongnansu
authored andcommitted
Fix the data source to use no auth
Signed-off-by: yujin-emma <[email protected]>
1 parent e18aca7 commit 09f87be

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import { CURRENT_TENANT } from '../../../../../utils/commands';
7-
import { DS_BASIC_AUTH_LABEL } from '../../../../../utils/dashboards/datasource-management-dashboards-plugin/constants';
7+
import { DS_NO_AUTH_LABEL } from '../../../../../utils/dashboards/datasource-management-dashboards-plugin/constants';
88
import {
99
TSVB_INDEX_ID,
1010
TSVB_PATH_INDEX_DATA,
@@ -44,15 +44,15 @@ describe('TSVB Visualization', () => {
4444

4545
if (Cypress.env('DATASOURCE_MANAGEMENT_ENABLED')) {
4646
before(() => {
47-
cy.deleteDataSourceIndexBasicAuth(TSVB_INDEX_ID);
48-
cy.createDataSourceBasicAuth();
49-
cy.bulkUploadDocsToDataSourceBasicAuth(TSVB_PATH_INDEX_DATA);
47+
cy.deleteDataSourceIndexNoAuth(TSVB_INDEX_ID);
48+
cy.createDataSourceNoAuth();
49+
cy.bulkUploadDocsToDataSourceNoAuth(TSVB_PATH_INDEX_DATA);
5050
});
5151

5252
describe('When MDS is enabled', () => {
5353
[
5454
{
55-
dataSourceName: DS_BASIC_AUTH_LABEL,
55+
dataSourceName: DS_NO_AUTH_LABEL,
5656
canvasExists: 'exist',
5757
},
5858
].forEach(({ dataSourceName, canvasExists }) => {
@@ -63,7 +63,7 @@ describe('TSVB Visualization', () => {
6363
cy.get('[data-test-subj="dataSourceSelectorComboBox"]').click();
6464

6565
// Find the option you want to select by its text and click on it
66-
cy.contains('[role="option"]', 'RemoteDataSourceBasicAuth').click();
66+
cy.contains('[role="option"]', dataSourceName).click();
6767
cy.get('input[data-test-subj="metricsIndexPatternInput"]').type(
6868
TSVB_INDEX_ID
6969
);
@@ -92,7 +92,7 @@ describe('TSVB Visualization', () => {
9292
cy.deleteIndexPattern(TSVB_INDEX_PATTERN);
9393

9494
if (Cypress.env('DATASOURCE_MANAGEMENT_ENABLED')) {
95-
cy.deleteDataSourceIndexBasicAuth(TSVB_INDEX_ID);
95+
cy.deleteDataSourceIndexNoAuth(TSVB_INDEX_ID);
9696
cy.deleteAllDataSources();
9797
}
9898
});

cypress/utils/dashboards/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import './vis_type_timeline/commands';
88
import './vis_type_table/commands';
99
import './vis_type_vega/commands';
1010
import './vis-augmenter/commands';
11-
import './vis_type_tsvb/commands';
1211
import './data_explorer/commands';
12+
import './vis_type_tsvb/commands';
1313

1414
Cypress.Commands.add('waitForLoader', () => {
1515
const opts = { log: false };

0 commit comments

Comments
 (0)