From 69033467e8f3d404ecb594c9fca4752875f040bd Mon Sep 17 00:00:00 2001 From: Saikumar Date: Mon, 5 Feb 2024 18:02:46 +0530 Subject: [PATCH] Add Mongo Shard Test --- .github/workflows/pmm2-testsuite.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pmm2-testsuite.yml b/.github/workflows/pmm2-testsuite.yml index 217b8be666f6..6c147c70463b 100644 --- a/.github/workflows/pmm2-testsuite.yml +++ b/.github/workflows/pmm2-testsuite.yml @@ -71,7 +71,7 @@ jobs: strategy: fail-fast: false matrix: - db-type: [ps5.7, ps8, ms8.0, pdpgsql13, pdpgsql14, pdpgsql15, modb4.4, modb5, modb6, help, generic, server-container, clientContainer, haproxy, proxysql, remove] + db-type: [ps5.7, ps8, ms8.0, pdpgsql13, pdpgsql14, pdpgsql15, modb4.4, modb5, modb6, mongo-shard, help, generic, server-container, clientContainer, haproxy, proxysql, remove] steps: - name: Create status check @@ -199,6 +199,16 @@ jobs: if: ${{ matrix.db-type == 'modb6' }} run: sudo npx ts-node ./integration-setup.ts --ci --addclient=modb,1 --mo-version=6 + - name: Run Setup for PSMDB 6 + working-directory: pmm-integration + if: ${{ matrix.db-type == 'modb6' }} + run: sudo -E bash -x ./pmm-tests/pmm-framework.sh --addclient=modb,1 --mo-version=6 --with-shard --mongomagic + + - name: Run CLI tests for PSMDB + if: ${{ matrix.db-type == 'modb6' || matrix.db-type == 'mongo-shard' }} + working-directory: ./pmm-ui-tests/cli + run: npx playwright test pmm-ui-tests/cli/tests/mongoDb-psmdb-new.spec.ts --quiet + - name: Run CLI tests for PSMDB if: ${{ matrix.db-type == 'modb6' || matrix.db-type == 'modb5' || matrix.db-type == 'modb4.4' }} working-directory: ./pmm-ui-tests/cli