Add different access level test cases in workspace update flow #1121
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Workspace Release tests workflow in Bundled OpenSearch Dashboards | |
on: | |
pull_request: | |
branches: ['**'] | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
tests: ${{ steps.filter.outputs.tests }} | |
steps: | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
tests: | |
- 'cypress/**/workspace-plugin/**' | |
- '.github/workflows/workspace-release-e2e-workflow.yml' | |
tests-with-security: | |
needs: changes | |
if: ${{ needs.changes.outputs.tests == 'true' }} | |
uses: ./.github/workflows/release-e2e-workflow-template.yml | |
with: | |
test-name: dashboards workspace | |
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/*' | |
osd-serve-args: --workspace.enabled=true --savedObjects.permission.enabled=true --opensearch_security.multitenancy.enabled=false --opensearchDashboards.dashboardAdmin.users='["admin"]' --uiSettings.overrides.home:useNewHomePage=true | |
artifact-name-suffix: "-with-security" | |
tests-without-security: | |
needs: changes | |
if: ${{ needs.changes.outputs.tests == 'true' }} | |
uses: ./.github/workflows/release-e2e-workflow-template.yml | |
with: | |
test-name: dashboards workspace without security | |
test-command: env CYPRESS_WORKSPACE_ENABLED=true yarn cypress:run-without-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/*' | |
osd-serve-args: --workspace.enabled=true --savedObjects.permission.enabled=false --uiSettings.overrides.home:useNewHomePage=true | |
security-enabled: false | |
artifact-name-suffix: "-without-security" | |
tests-with-multiple-data-source-and-disabled-local-cluster: | |
needs: changes | |
if: ${{ needs.changes.outputs.tests == 'true' }} | |
uses: ./.github/workflows/release-e2e-workflow-template.yml | |
with: | |
test-name: dashboards workspace with MDS | |
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' | |
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"]' --uiSettings.overrides.home:useNewHomePage=true | |
security-enabled: true | |
artifact-name-suffix: "-with-security-and-mds" |