From e19a32485ef83ac575ebf50a44b15ba6a2fb5686 Mon Sep 17 00:00:00 2001 From: Peter Sirotnak Date: Sat, 13 Jul 2024 01:16:27 +0200 Subject: [PATCH] PMM-13232: Remove debug commands --- tests/pages/adminPage.js | 2 +- tests/pages/api/inventoryAPI.js | 2 -- tests/verifyTLSPostgresRemoteInstance_test.js | 9 --------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/pages/adminPage.js b/tests/pages/adminPage.js index 95c58a46b..08bcb1a6b 100644 --- a/tests/pages/adminPage.js +++ b/tests/pages/adminPage.js @@ -1,7 +1,7 @@ const { I } = inject(); const assert = require('assert'); -const pathToPmmQaRepo = process.env.PATH_TO_PMM_QA || '/home/runner/work/pmm-qa/pmm-qa/qa-integration/pmm_qa'; +const pathToPmmQaRepo = process.env.PATH_TO_PMM_QA || '/srv/pmm-qa'; module.exports = { url: 'graph/d/pmm-home/home-dashboard?orgId=1', diff --git a/tests/pages/api/inventoryAPI.js b/tests/pages/api/inventoryAPI.js index 72a3e8be5..64a97b331 100644 --- a/tests/pages/api/inventoryAPI.js +++ b/tests/pages/api/inventoryAPI.js @@ -10,8 +10,6 @@ module.exports = { for (let i = 0; i < 60; i++) { const services = await this.apiGetServices(service.serviceType); - console.log(services.data); - responseService = services.data[service.service].find((obj) => obj.service_name === serviceName); if (responseService !== undefined) break; diff --git a/tests/verifyTLSPostgresRemoteInstance_test.js b/tests/verifyTLSPostgresRemoteInstance_test.js index ff3d20849..b1a39ffe4 100644 --- a/tests/verifyTLSPostgresRemoteInstance_test.js +++ b/tests/verifyTLSPostgresRemoteInstance_test.js @@ -44,8 +44,6 @@ Data(instances).Scenario( let details; const remoteServiceName = `remote_${serviceName}`; - console.log(`Remote service name is: ${remoteServiceName}`); - if (serviceType === 'postgres_ssl') { details = { serviceName: remoteServiceName, @@ -91,8 +89,6 @@ Data(instances).Scenario( container, } = current; - console.log(`Current container name is: ${container}`); - // Verify user is able to add service with --tls-skip-verify option const responseMessage = 'PostgreSQL Service added.'; const command = `docker exec ${container} pmm-admin add postgresql --username=pmm --password=pmm --query-source="pgstatements" --tls --tls-skip-verify ${noSslCheckServiceName}`; @@ -119,13 +115,8 @@ Data(instances).Scenario( // verify metric for client container node instance const localServiceName = await I.verifyCommand(`docker exec ${container} pmm-admin list | grep "PostgreSQL" | grep "ssl_service" | awk -F " " '{print $2}'`); - console.log(`Local Service name is: ${localServiceName}`); - console.log(await I.verifyCommand(`docker exec ${container} pmm-admin list`)); - response = await grafanaAPI.checkMetricExist(metric, { type: 'service_name', value: localServiceName }); - console.log(response.data); - result = JSON.stringify(response.data.data.result); assert.ok(response.data.data.result.length !== 0, `Metrics ${metric} from ${serviceName} should be available but got empty ${result}`);