Skip to content

Commit

Permalink
Merge branch 'main' into pmm2-fix-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumar-vs authored Dec 4, 2024
2 parents ac8c32b + a0d1e80 commit 0329fe5
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/metrics/verifyMongoDB_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@ const telemetry = {

BeforeSuite(async ({ I }) => {
await I.mongoConnect(connection);
await I.mongoAddUser(mongo_test_user.username, mongo_test_user.password);
await I.mongoAddUser(mongo_test_user.username, mongo_test_user.password, [
{ role: 'explainRole', db: 'admin' },
{ role: 'clusterMonitor', db: 'admin' },
{ role: 'read', db: 'local' },
{ db: 'admin', role: 'readWrite', collection: '' },
{ db: 'admin', role: 'backup' },
{ db: 'admin', role: 'clusterMonitor' },
{ db: 'admin', role: 'restore' },
{ db: 'admin', role: 'pbmAnyAction' },
]);

// check that rs101 docker container exists
const dockerCheck = await I.verifyCommand('docker ps | grep rs101');
Expand All @@ -47,11 +56,11 @@ AfterSuite(async ({ I }) => {
await I.mongoDisconnect();
});

Scenario.skip(
Scenario(
'PMM-T1241 - Verify add mongoDB service with "+" in user password @not-ui-pipeline @mongodb-exporter',
async ({ I, grafanaAPI }) => {
await I.say(
await I.verifyCommand(`pmm-admin add mongodb --port=${connection.port} --password=${mongo_test_user.password} --username='${mongo_test_user.username}' --service-name=${mongodb_service_name}`),
await I.verifyCommand(`pmm-admin add mongodb --port=${connection.port} --password="${mongo_test_user.password}" --username="${mongo_test_user.username}" --service-name=${mongodb_service_name}`),
);

await grafanaAPI.waitForMetric('mongodb_up', { type: 'service_name', value: mongodb_service_name }, 65);
Expand Down

0 comments on commit 0329fe5

Please sign in to comment.