From c29c2f6ce1147621219c572048a52fea6053d66a Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Fri, 15 Nov 2024 17:57:51 +0800 Subject: [PATCH] feat: remove data sources after test Signed-off-by: SuZhou-Joe --- .../workspace-plugin/mds_workspace_assets.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js index e65a3bedd..d371d79c8 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js @@ -64,6 +64,9 @@ if (Cypress.env('WORKSPACE_ENABLED')) { ); cy.deleteWorkspaceByName(sourceWorkspaceName); cy.deleteWorkspaceByName(targetWorkspaceName); + if (Cypress.env('DATASOURCE_MANAGEMENT_ENABLED')) { + cy.deleteDataSource(datasourceId); + } sourceWorkspaceId = ''; targetWorkspaceId = ''; });