diff --git a/.github/workflows/release-e2e-workflow-template-windows.yml b/.github/workflows/release-e2e-workflow-template-windows.yml index dc88be645..80083ab4f 100644 --- a/.github/workflows/release-e2e-workflow-template-windows.yml +++ b/.github/workflows/release-e2e-workflow-template-windows.yml @@ -74,6 +74,12 @@ jobs: opensearch-version: ${{ env.VERSION }} security-enabled: false port: 9201 + - uses: derek-ho/start-opensearch@v3 + with: + opensearch-version: ${{ env.VERSION }} + security-enabled: true + admin-password: admin + port: 9202 - name: Get and run OpenSearch-Dashboards run: | curl -SLO https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/${{ env.PLATFORM }}/x64/zip/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-${{ env.PLATFORM }}-x64.zip diff --git a/.github/workflows/release-e2e-workflow-template.yml b/.github/workflows/release-e2e-workflow-template.yml index f2223529d..7cad9e40d 100644 --- a/.github/workflows/release-e2e-workflow-template.yml +++ b/.github/workflows/release-e2e-workflow-template.yml @@ -71,6 +71,12 @@ jobs: opensearch-version: ${{ env.VERSION }} security-enabled: false port: 9201 + - uses: derek-ho/start-opensearch@v3 + with: + opensearch-version: ${{ env.VERSION }} + security-enabled: true + admin-password: admin + port: 9202 - name: Get OpenSearch-Dashboards run: | wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz diff --git a/.github/workflows/release-signoff-chrome.yml b/.github/workflows/release-signoff-chrome.yml index 22d95298b..b63952dc7 100644 --- a/.github/workflows/release-signoff-chrome.yml +++ b/.github/workflows/release-signoff-chrome.yml @@ -39,6 +39,12 @@ jobs: opensearch-version: ${{ env.VERSION }} security-enabled: false port: 9201 + - uses: derek-ho/start-opensearch@v3 + with: + opensearch-version: ${{ env.VERSION }} + security-enabled: true + admin-password: admin + port: 9202 - name: Get OpenSearch-Dashboards run: | wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz diff --git a/.github/workflows/release-signoff-chromium-ad-only.yml b/.github/workflows/release-signoff-chromium-ad-only.yml index ccb14dbd1..3a82addc9 100644 --- a/.github/workflows/release-signoff-chromium-ad-only.yml +++ b/.github/workflows/release-signoff-chromium-ad-only.yml @@ -39,6 +39,11 @@ jobs: opensearch-version: ${{ env.VERSION }} security-enabled: false port: 9201 + - uses: derek-ho/start-opensearch@v3 + with: + opensearch-version: ${{ env.VERSION }} + security-enabled: true + port: 9202 - name: Get OpenSearch-Dashboards run: | wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz diff --git a/.github/workflows/release-signoff-chromium-ism-only.yml b/.github/workflows/release-signoff-chromium-ism-only.yml index 0db14841f..8c23ea37c 100644 --- a/.github/workflows/release-signoff-chromium-ism-only.yml +++ b/.github/workflows/release-signoff-chromium-ism-only.yml @@ -39,6 +39,12 @@ jobs: opensearch-version: ${{ env.VERSION }} security-enabled: false port: 9201 + - uses: derek-ho/start-opensearch@v3 + with: + opensearch-version: ${{ env.VERSION }} + security-enabled: true + admin-password: admin + port: 9202 - name: Get OpenSearch-Dashboards run: | wget https://ci.opensearch.org/ci/dbc/distribution-build-opensearch-dashboards/${{ env.VERSION }}/latest/linux/x64/tar/dist/opensearch-dashboards/opensearch-dashboards-${{ env.VERSION }}-linux-x64.tar.gz diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/datasource-management-plugin/1_create_datasource.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/datasource-management-plugin/1_create_datasource.spec.js index 4d6763262..6050e8a4f 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/datasource-management-plugin/1_create_datasource.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/datasource-management-plugin/1_create_datasource.spec.js @@ -36,6 +36,30 @@ export const CreateDataSourceNoAuth = () => { }); }; +export const CreateDataSourceBasicAuth = () => { + miscUtils.visitPage( + 'app/management/opensearch-dashboards/dataSources/create' + ); + + cy.get('[data-test-subj="createDataSourceButton"]').should('be.disabled'); + cy.get('[name="dataSourceTitle"]').type('9201'); + cy.get('[name="endpoint"]').type('https://localhost:9202'); + cy.get('[data-test-subj="createDataSourceFormAuthTypeSelect"]').select( + 'username_password' + ); + cy.get('[data-test-subj="createDataSourceFormUsernameField"]').type('admin'); + cy.get('[data-test-subj="createDataSourceFormPasswordField"]').type('admin'); + cy.get('[data-test-subj="createDataSourceButton"]').should('be.enabled'); + cy.get('[name="dataSourceDescription"]').type( + 'cypress test basic auth data source' + ); + cy.get('[data-test-subj="createDataSourceButton"]').click(); + cy.location('pathname', { timeout: 6000 }).should( + 'include', + 'app/management/opensearch-dashboards/dataSources' + ); +}; + // TODO: create datasource with basic auth and sigv4 if (Cypress.env('DATASOURCE_MANAGEMENT_ENABLED')) {