Skip to content

Commit

Permalink
cli test adjustment for pdpgsql (#777)
Browse files Browse the repository at this point in the history
Updates for pdpgsql
  • Loading branch information
saikumar-vs authored May 6, 2024
1 parent 581981c commit 6dca7c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli/tests/generic.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 2 additions & 1 deletion cli/tests/postgreSql-pdpgsql.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down Expand Up @@ -254,4 +254,5 @@ test.describe('Percona Distribution for PostgreSQL CLI tests ', async () => {
await output.assertSuccess();
await output.outContains('postgres_exporter --auto-discover-databases ');
});

});

0 comments on commit 6dca7c8

Please sign in to comment.