33 workflow_dispatch :
44 inputs :
55 ps_version :
6- description : " ps version example: 8.0.34-26 , Fetched from https://github.com/Percona-QA/package-testing/blob/master/VERSIONS"
7- default : ' https://github.com/Percona-QA/package-testing/blob/master/VERSIONS '
6+ description : " PS Version ex: 5.7/ 8.0/8.4, Minor versions from https://github.com/Percona-QA/package-testing/blob/master/VERSIONS"
7+ default : ' 8.4 '
88 required : true
99 ps_glibc :
10- description : " ps glibc version, example: 2.35"
10+ description : " PS Glibc version, example: 2.35"
1111 default : ' 2.35'
1212 required : false
1313 pmm_qa_branch :
1919 required : false
2020 type : string
2121 pmm_server_image :
22- description : " pmm_image , example: perconalab/pmm-server:3-dev-latest"
22+ description : " PMM Server image , example: perconalab/pmm-server:3-dev-latest"
2323 default : ' perconalab/pmm-server:3-dev-latest'
2424 required : false
2525 pmm_client_version :
26- description : ' PMM Client version (3-dev-latest|pmm3-rc|x .xx.x|https...)'
26+ description : ' PMM Client version (3-dev-latest|pmm3-rc|3 .xx.x|https...)'
2727 default : ' 3-dev-latest'
2828 required : false
2929 type : string
4141 timeout-minutes : 40
4242 env :
4343 ADMIN_PASSWORD : ' admin'
44- PS_VERSION : ${{ github.event.inputs.ps_version || '8.0 ' }}
44+ PS_VERSION : ${{ github.event.inputs.ps_version || '8.4 ' }}
4545 PS_GLIBC : ${{ github.event.inputs.ps_glibc || '2.35' }}
4646 PMM_SERVER_IMAGE : ${{ github.event.inputs.pmm_server_image || 'perconalab/pmm-server:3-dev-latest' }}
4747 PMM_QA_BRANCH : ${{ github.event.inputs.pmm_qa_branch || 'v3' }}
9292 working-directory : qa-integration
9393 run : echo "PATH_TO_PMM_QA=$(pwd)" >> $GITHUB_ENV
9494
95- - name : Run Setup for E2E Tests
95+ - name : Run Setup for PS E2E Tests
9696 working-directory : qa-integration/pmm_qa
9797 run : |
9898 mkdir -m 777 -p /tmp/backup_data
@@ -107,6 +107,16 @@ jobs:
107107 python pmm-framework.py --verbose --pmm-server-password=${{ env.ADMIN_PASSWORD }} --client-version=${{ env.PMM_CLIENT_VERSION }} --database PS,TARBALL=${{ env.PS_TARBALL_PATH }}
108108 fi
109109
110+ - name : Run Setup for PS Replica E2E Tests
111+ working-directory : qa-integration/pmm_qa
112+ run : |
113+ . virtenv/bin/activate
114+ if [[ "${{ github.event.inputs.ps_version }}" != http* ]]; then
115+ python pmm-framework.py --verbose --pmm-server-password=${{ env.ADMIN_PASSWORD }} --client-version=${{ env.PMM_CLIENT_VERSION }} --database PS=${{ env.PS_VERSION }},SETUP_TYPE=replica
116+ else
117+ python pmm-framework.py --verbose --pmm-server-password=${{ env.ADMIN_PASSWORD }} --client-version=${{ env.PMM_CLIENT_VERSION }} --database PS,TARBALL=${{ env.PS_TARBALL_PATH }},SETUP_TYPE=replica
118+ fi
119+
110120 - name : Checkout PMM UI tests
111121 uses : actions/checkout@v4
112122 with :
@@ -118,8 +128,8 @@ jobs:
118128 run : npm ci && npx playwright install --with-deps && npx codeceptjs def pr.codecept.js
119129 working-directory : pmm-ui-tests
120130
121- - name : Run the Integration tests of PS
131+ - name : Run the Integration tests of PS and PS Replica
122132 run : |
123133 export PMM_UI_URL="http://127.0.0.1:8081/"
124- npx codeceptjs run -c pr.codecept.js tests/qa-integration/pmm_ps_integration_test.js
134+ npx codeceptjs run -c pr.codecept.js tests/qa-integration/pmm_ps_integration_test.js tests/qa-integration/pmm_ps_replica_integration_test.js
125135 working-directory : pmm-ui-tests
0 commit comments