Skip to content

Commit

Permalink
PMM-7: Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterSirotnak committed Nov 8, 2024
1 parent 77b49d0 commit dbbf864
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/qa-integration/pmm_pgsm_integration_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Scenario(
await I.verifyCommand(`docker exec ${container_name} pgbench -c 2 -j 2 -T 60 --username=pmm ${db}`);
connection.database = 'postgres';
// wait for pmm-agent to push the execution as part of next bucket to clickhouse
await I.verifyCommand(`docker exec ${container_name} pmm-admin list | grep "postgresql_pgstatmonitor_agent" | grep "Agent_status_running"`);
await I.verifyCommand(`docker exec ${container_name} pmm-admin list | grep "postgresql_pgstatmonitor_agent" | grep "Running"`);

const labels = [
{ key: 'database', value: [`${db}`] },
Expand Down Expand Up @@ -571,7 +571,7 @@ xScenario(
await I.pgExecuteQueryOnDemand(`ALTER SYSTEM SET pg_stat_monitor.pgsm_normalized_query=${alteredValue};`, connection);
await I.verifyCommand(`docker exec ${container_name} service postgresql restart`);
I.wait(5);
await I.verifyCommand(`docker exec ${container_name} pmm-admin list | grep "postgresql_pgstatmonitor_agent" | grep "Agent_status_running"`);
await I.verifyCommand(`docker exec ${container_name} pmm-admin list | grep "postgresql_pgstatmonitor_agent" | grep "Running"`);
output = await I.pgExecuteQueryOnDemand('SELECT * FROM pg_stat_monitor_settings WHERE name=\'pg_stat_monitor.pgsm_normalized_query\';', connection);
assert.equal(output.rows[0].value, 'yes', `The default value of 'pg_stat_monitor.pgsm_normalized_query' should be equal to '${alteredValue}'`);
await checkForExamples(true);
Expand Down Expand Up @@ -635,7 +635,7 @@ Scenario(
assert.equal(output.rows[0].setting, defaultValue, `The value of 'pg_stat_monitor.pgsm_bucket_time' should be equal to ${defaultValue}`);
assert.equal(output.rows[0].reset_val, defaultValue, `The value of 'pg_stat_monitor.pgsm_bucket_time' should be equal to ${defaultValue}`);
await I.verifyCommand(`docker exec ${container_name} true > pmm-agent.log`);
await I.verifyCommand(`docker exec ${container_name} pmm-admin list | grep "postgresql_pgstatmonitor_agent" | grep "Agent_status_running"`);
await I.verifyCommand(`docker exec ${container_name} pmm-admin list | grep "postgresql_pgstatmonitor_agent" | grep "Running"`);
I.wait(defaultValue);
let log = await I.verifyCommand(`docker exec ${container_name} tail -n100 pmm-agent.log`);

Expand Down

0 comments on commit dbbf864

Please sign in to comment.