From 6dca7c82cbf771fb4eb509a19e61acf55fcac883 Mon Sep 17 00:00:00 2001 From: saikumar-vs <112166980+saikumar-vs@users.noreply.github.com> Date: Mon, 6 May 2024 19:18:59 +0530 Subject: [PATCH] cli test adjustment for pdpgsql (#777) Updates for pdpgsql --- cli/tests/generic.spec.ts | 1 + cli/tests/postgreSql-pdpgsql.spec.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/tests/generic.spec.ts b/cli/tests/generic.spec.ts index bd0539b38..2fc3281f8 100644 --- a/cli/tests/generic.spec.ts +++ b/cli/tests/generic.spec.ts @@ -1,6 +1,7 @@ import { expect, test } from '@playwright/test'; import * as cli from '@helpers/cli-helper'; import { readZipFile } from '@helpers/zip-helper'; + const PGSQL_USER = 'postgres'; const PGSQL_PASSWORD = 'pass+this'; const ipPort = '127.0.0.1:5447'; diff --git a/cli/tests/postgreSql-pdpgsql.spec.ts b/cli/tests/postgreSql-pdpgsql.spec.ts index 3c98f3440..5f36c5c90 100644 --- a/cli/tests/postgreSql-pdpgsql.spec.ts +++ b/cli/tests/postgreSql-pdpgsql.spec.ts @@ -218,7 +218,7 @@ test.describe('Percona Distribution for PostgreSQL CLI tests ', async () => { const serviceName = `autodiscovery_${n}`; serviceNames.push(serviceName); - const output = await cli.exec(`sudo pmm-admin add postgresql --username=${PGSQL_USER} --password=${PGSQL_PASSWORD} --auto-discovery-limit=5 ${serviceName} ${host}`); + const output = await cli.exec(`sudo pmm-admin add postgresql --username=${PGSQL_USER} --password=${PGSQL_PASSWORD} --auto-discovery-limit=2 ${serviceName} ${host}`); await output.assertSuccess(); await output.outContains('PostgreSQL Service added.'); } @@ -254,4 +254,5 @@ test.describe('Percona Distribution for PostgreSQL CLI tests ', async () => { await output.assertSuccess(); await output.outContains('postgres_exporter --auto-discover-databases '); }); + });