From 216871d60ece1fe38001b377d4ea46c97e9b3356 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Wed, 8 May 2024 12:39:48 -0400 Subject: [PATCH 1/4] Run release time FTR tests on PR runs Signed-off-by: Derek Ho --- .github/workflows/cypress-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cypress-test.yml b/.github/workflows/cypress-test.yml index c9a85ac6f..bb0e255a0 100644 --- a/.github/workflows/cypress-test.yml +++ b/.github/workflows/cypress-test.yml @@ -88,3 +88,4 @@ jobs: yarn cypress:run-with-security-and-aggregation-view --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/aggregation_view.js" yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/multi_tenancy.js" yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/default_tenant.js" + yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/*.js" From 5131eb53355372b35b7b1dbb9cd2f1c73b08e1d7 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Mon, 17 Jun 2024 10:20:35 -0400 Subject: [PATCH 2/4] Explicitly list out all spec files Signed-off-by: Derek Ho --- .github/workflows/cypress-test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress-test.yml b/.github/workflows/cypress-test.yml index bb0e255a0..4ae7f8726 100644 --- a/.github/workflows/cypress-test.yml +++ b/.github/workflows/cypress-test.yml @@ -88,4 +88,10 @@ jobs: yarn cypress:run-with-security-and-aggregation-view --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/aggregation_view.js" yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/multi_tenancy.js" yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/default_tenant.js" - yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/*.js" + yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/audit_log_spec.js" + yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/auth_spec.js" + yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/get_started_spec.js" + yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/internalusers_spec.js" + yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/permissions_spec.js" + yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/roles_spec.js" + yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/tenants_spec.js" From f894bb9aab0f7acb710a8b159c036d91e865d1bf Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Wed, 17 Jul 2024 12:52:59 -0400 Subject: [PATCH 3/4] Move tests out Signed-off-by: Derek Ho --- .github/workflows/cypress-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cypress-test.yml b/.github/workflows/cypress-test.yml index b35087ff4..c5e14ee11 100644 --- a/.github/workflows/cypress-test.yml +++ b/.github/workflows/cypress-test.yml @@ -84,6 +84,11 @@ jobs: yarn cypress:run-with-security-and-aggregation-view --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/aggregation_view.js" yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/multi_tenancy.js" yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security-dashboards-plugin/default_tenant.js" + + - name: Configure and Run OpenSearch Dashboards with Cypress Test Cases Release Tests + run: | + cd ./OpenSearch-Dashboards + cd opensearch-dashboards-functional-test yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/audit_log_spec.js" yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/auth_spec.js" yarn cypress:run-with-security --browser chrome --spec "cypress/integration/plugins/security/get_started_spec.js" From 0c7992e5e623cc2ae5ce574032521618768047a0 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Wed, 17 Jul 2024 13:08:34 -0400 Subject: [PATCH 4/4] Add no command log env variable Signed-off-by: Derek Ho --- .github/workflows/cypress-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cypress-test.yml b/.github/workflows/cypress-test.yml index c5e14ee11..e63532f9c 100644 --- a/.github/workflows/cypress-test.yml +++ b/.github/workflows/cypress-test.yml @@ -11,6 +11,7 @@ env: SPEC: 'cypress/integration/plugins/security-dashboards-plugin/aggregation_view.js,' PLUGIN_NAME: opensearch-security OPENSEARCH_INITIAL_ADMIN_PASSWORD: myStrongPassword123! + CYPRESS_NO_COMMAND_LOG: 1 jobs: cypress-tests: