Skip to content

Commit

Permalink
PMM-13174 RBAC tests for PMM3 (#695)
Browse files Browse the repository at this point in the history
* PMM-13174: Adds Rbac pipeline

* PMM-13174: Adds Rbac pipeline

* PMM-13174: Adds Rbac pipeline

* PMM-13174: Newline at the end of file

* PMM-13174: Change pmm tags to the pmm3.

* PMM-7: Fix name of the pipeline

* PMM-7: Fix default branch
  • Loading branch information
peterSirotnak authored Jun 27, 2024
1 parent 44c7a5a commit a30dceb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
51 changes: 27 additions & 24 deletions .github/workflows/fb-e2e-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ jobs:
# pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
# pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
# pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
# pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
# pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
# pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
# pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
# sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
# setup_services: '--mongo-replica-for-backup --setup-bm-mysql'
# tags_for_tests: '@bm-mysql'
Expand Down Expand Up @@ -191,18 +191,6 @@ jobs:
setup_services: '--database pgsql'
tags_for_tests: '@pgss-pmm-integration'

rbac:
name: RBAC UI tests
uses: ./.github/workflows/runner-e2e-tests-playwright.yml
secrets: inherit
with:
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3 '}}
pmm_test_flag: '@rbac'
pmm_server_version: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
setup_services: '--database ps --database psmdb'
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}

# Unskip once it will be possible to find ARBITER element on the replset summary dashboard
# psmdb_arbiter:
# name: PSMDB Arbiter Replica UI tests
Expand All @@ -223,11 +211,11 @@ jobs:
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--database psmdb,SETUP_TYPE=pss'
tags_for_tests: '@pmm-psmdb-replica-integration'
Expand Down Expand Up @@ -294,11 +282,26 @@ jobs:
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || 'dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'main' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'main' }}
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--database ps=8.0,QUERY_SOURCE=slowlog'
tags_for_tests: '@fb-pmm-ps-integration'

rbac:
name: PS UI Role based access control
uses: ./.github/workflows/runner-e2e-tests-codeceptjs.yml
secrets: inherit
with:
pmm_server_image: ${{ inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
pmm_client_version: ${{ inputs.pmm_client_version || '3-dev-latest' }}
pmm_client_image: ${{ inputs.pmm_client_image || 'perconalab/pmm-client:3-dev-latest' }}
pmm_qa_branch: ${{ inputs.pmm_qa_branch || 'v3' }}
pmm_ui_tests_branch: ${{ inputs.pmm_ui_tests_branch || 'v3
' }}
sha: ${{ inputs.sha || github.event.pull_request.head.sha || 'null' }}
setup_services: '--database ps --database pdpgsql'
tags_for_tests: '@rbac'
2 changes: 1 addition & 1 deletion .github/workflows/runner-e2e-tests-codeceptjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
working-directory: pmm-ui-tests
run: |
npm ci
npx playwright install
npx playwright install --with-deps
envsubst < env.list > env.generated.list
- name: Execute e2e tests with tags ${{ env.TAGS_FOR_TESTS }}
Expand Down

0 comments on commit a30dceb

Please sign in to comment.