Skip to content

Commit 2b87a4a

Browse files
[Backport main] Set dashboards admin for security enabled tests (#1373)
* Set dashboards admin for security enabled tests (#1372) * Set dashboards admin for security enabled tests Signed-off-by: Lin Wang <[email protected]> * Run tests after workflow change Signed-off-by: Lin Wang <[email protected]> --------- Signed-off-by: Lin Wang <[email protected]> (cherry picked from commit 993ca04) * Add dashboards admin for workspace MDS cases Signed-off-by: Lin Wang <[email protected]> --------- Signed-off-by: Lin Wang <[email protected]> Co-authored-by: Lin Wang <[email protected]>
1 parent e445a52 commit 2b87a4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/workspace-release-e2e-workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515
filters: |
1616
tests:
1717
- 'cypress/**/workspace-plugin/**'
18+
- '.github/workflows/workspace-release-e2e-workflow.yml'
1819
tests-with-security:
1920
needs: changes
2021
if: ${{ needs.changes.outputs.tests == 'true' }}
2122
uses: ./.github/workflows/release-e2e-workflow-template.yml
2223
with:
2324
test-name: dashboards workspace
2425
test-command: env CYPRESS_WORKSPACE_ENABLED=true CYPRESS_SAVED_OBJECTS_PERMISSION_ENABLED=true yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/*'
25-
osd-serve-args: --workspace.enabled=true --savedObjects.permission.enabled=true --opensearch_security.multitenancy.enabled=false
26+
osd-serve-args: --workspace.enabled=true --savedObjects.permission.enabled=true --opensearch_security.multitenancy.enabled=false --opensearchDashboards.dashboardAdmin.users='["admin"]'
2627
tests-without-security:
2728
needs: changes
2829
if: ${{ needs.changes.outputs.tests == 'true' }}
@@ -39,5 +40,5 @@ jobs:
3940
with:
4041
test-name: dashboards workspace
4142
test-command: env CYPRESS_DISABLE_LOCAL_CLUSTER=true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED=true CYPRESS_WORKSPACE_ENABLED=true CYPRESS_SAVED_OBJECTS_PERMISSION_ENABLED=true yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds*.js'
42-
osd-serve-args: --data_source.enabled=true --data_source.ssl.verificationMode=none --data_source.hideLocalCluster=true --workspace.enabled=true --savedObjects.permission.enabled=true --opensearch_security.multitenancy.enabled=false
43+
osd-serve-args: --data_source.enabled=true --data_source.ssl.verificationMode=none --data_source.hideLocalCluster=true --workspace.enabled=true --savedObjects.permission.enabled=true --opensearch_security.multitenancy.enabled=false --opensearchDashboards.dashboardAdmin.users='["admin"]'
4344
security-enabled: true

0 commit comments

Comments
 (0)