| 1 | { |
| 2 | "description": "no-heartbeat-command-logs", |
| 3 | "schemaVersion": "1.13", |
| 4 | "runOnRequirements": [ |
| 5 | { |
| 6 | "topologies": [ |
| 7 | "single", |
| 8 | "replicaset", |
| 9 | "sharded" |
| 10 | ] |
| 11 | } |
| 12 | ], |
| 13 | "tests": [ |
| 14 | { |
| 15 | "description": "Heartbeat commands should not generate log messages", |
| 16 | "operations": [ |
| 17 | { |
| 18 | "name": "createEntities", |
| 19 | "object": "testRunner", |
| 20 | "arguments": { |
| 21 | "entities": [ |
| 22 | { |
| 23 | "client": { |
| 24 | "id": "client", |
| 25 | "observeLogMessages": { |
| 26 | "command": "debug" |
| 27 | }, |
| 28 | "observeEvents": [ |
| 29 | "serverDescriptionChangedEvent" |
| 30 | ] |
| 31 | } |
| 32 | }, |
| 33 | { |
| 34 | "database": { |
| 35 | "id": "database", |
| 36 | "client": "client", |
| 37 | "databaseName": "logging-tests" |
| 38 | } |
| 39 | } |
| 40 | ] |
| 41 | } |
| 42 | }, |
| 43 | { |
| 44 | "name": "waitForEvent", |
| 45 | "object": "testRunner", |
| 46 | "arguments": { |
| 47 | "client": "client", |
| 48 | "event": { |
| 49 | "serverDescriptionChangedEvent": {} |
| 50 | }, |
| 51 | "count": 1 |
| 52 | } |
| 53 | }, |
| 54 | { |
| 55 | "name": "runCommand", |
| 56 | "object": "database", |
| 57 | "arguments": { |
| 58 | "command": { |
| 59 | "ping": 1 |
| 60 | }, |
| 61 | "commandName": "ping" |
| 62 | } |
| 63 | } |
| 64 | ], |
| 65 | "expectLogMessages": [ |
| 66 | { |
| 67 | "client": "client", |
| 68 | "messages": [ |
| 69 | { |
| 70 | "level": "debug", |
| 71 | "component": "command", |
| 72 | "data": { |
| 73 | "message": "Command started", |
| 74 | "databaseName": "logging-tests", |
| 75 | "commandName": "ping" |
| 76 | } |
| 77 | }, |
| 78 | { |
| 79 | "level": "debug", |
| 80 | "component": "command", |
| 81 | "data": { |
| 82 | "message": "Command succeeded", |
| 83 | "commandName": "ping" |
| 84 | } |
| 85 | } |
| 86 | ] |
| 87 | } |
| 88 | ] |
| 89 | } |
| 90 | ] |
| 91 | } |