Skip to content

Commit

Permalink
Use global tenant in vis-builder tests (opensearch-project#1207) (ope…
Browse files Browse the repository at this point in the history
…nsearch-project#1208)

Signed-off-by: Anan <ananzh@amazon.com>
(cherry picked from commit 255e268)

Co-authored-by: Anan Zhuang <ananzh@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and ananzh authored Apr 16, 2024
1 parent 6f7bf18 commit 48f0e61
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ import {
VB_PATH_SO_DATA,
VB_SO_TYPE,
} from '../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../utils/commands';

if (Cypress.env('VISBUILDER_ENABLED')) {
describe('Visualization Builder Base Tests', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.deleteIndex(VB_INDEX_ID);
cy.bulkUploadDocs(VB_PATH_INDEX_DATA);
cy.importSavedObjects(VB_PATH_SO_DATA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ import {
VB_METRIC_VIS_TITLE,
VB_BAR_VIS_TITLE,
} from '../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../utils/commands';

if (Cypress.env('VISBUILDER_ENABLED')) {
describe('Visualization Builder Dashboard Tests', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.deleteIndex(VB_INDEX_ID);
cy.bulkUploadDocs(VB_PATH_INDEX_DATA);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ import {
VB_METRIC_VIS_TITLE,
VB_PATH_SO_DATA,
} from '../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../utils/commands';

if (Cypress.env('VISBUILDER_ENABLED')) {
describe('Visualization Builder Experimental settings', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.importSavedObjects(VB_PATH_SO_DATA);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ import {
VB_PATH_INDEX_DATA,
VB_PATH_SO_DATA,
} from '../../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../../utils/commands';

if (Cypress.env('VISBUILDER_ENABLED')) {
describe('Vis Builder: Line Chart', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.deleteIndex(VB_INDEX_ID);
cy.bulkUploadDocs(VB_PATH_INDEX_DATA);
cy.importSavedObjects(VB_PATH_SO_DATA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ import {
VB_PATH_INDEX_DATA,
VB_PATH_SO_DATA,
} from '../../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../../utils/commands';

if (Cypress.env('VISBUILDER_ENABLED')) {
describe('Vis Builder: Bar Chart', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.deleteIndex(VB_INDEX_ID);
cy.bulkUploadDocs(VB_PATH_INDEX_DATA);
cy.importSavedObjects(VB_PATH_SO_DATA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ import {
VB_PATH_INDEX_DATA,
VB_PATH_SO_DATA,
} from '../../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../../utils/commands';

if (Cypress.env('VISBUILDER_ENABLED')) {
describe('Vis Builder: Line Chart', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.deleteIndex(VB_INDEX_ID);
cy.bulkUploadDocs(VB_PATH_INDEX_DATA);
cy.importSavedObjects(VB_PATH_SO_DATA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ import {
VB_PATH_INDEX_DATA,
VB_PATH_SO_DATA,
} from '../../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../../utils/commands';

if (Cypress.env('VISBUILDER_ENABLED')) {
describe('Vis Builder: Metric Chart', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.deleteIndex(VB_INDEX_ID);
cy.bulkUploadDocs(VB_PATH_INDEX_DATA);
cy.importSavedObjects(VB_PATH_SO_DATA);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ import {
VB_PATH_INDEX_DATA,
VB_PATH_SO_DATA,
} from '../../../../../../utils/constants';
import { CURRENT_TENANT } from '../../../../../../utils/commands';

if (Cypress.env('VISBUILDER_ENABLED')) {
describe('Vis Builder: Table Chart', () => {
before(() => {
CURRENT_TENANT.newTenant = 'global';
cy.deleteIndex(VB_INDEX_ID);
cy.bulkUploadDocs(VB_PATH_INDEX_DATA);
cy.importSavedObjects(VB_PATH_SO_DATA);
Expand Down

0 comments on commit 48f0e61

Please sign in to comment.