summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/fixtures/replicaset.py
diff options
context:
space:
mode:
authorCarl Raiden Worley <carl.worley@10gen.com>2020-08-07 14:09:02 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-07 19:21:33 +0000
commit16dbe5a28b3a10a2f816ae882543c3b371ab42a0 (patch)
treecd70982f31429fef377ae01d3f81b0dc2c19be2e /buildscripts/resmokelib/testing/fixtures/replicaset.py
parentd96a1f52d5d3b3314b09b5012da2076d209aeac8 (diff)
downloadmongo-16dbe5a28b3a10a2f816ae882543c3b371ab42a0.tar.gz
SERVER-50085 Make it easier to correlate mongo process names, ports, PIDs in logs of fixtures started by resmoke
Diffstat (limited to 'buildscripts/resmokelib/testing/fixtures/replicaset.py')
-rw-r--r--buildscripts/resmokelib/testing/fixtures/replicaset.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/replicaset.py b/buildscripts/resmokelib/testing/fixtures/replicaset.py
index 0dc25d9c0cd..85c4366fe4b 100644
--- a/buildscripts/resmokelib/testing/fixtures/replicaset.py
+++ b/buildscripts/resmokelib/testing/fixtures/replicaset.py
@@ -636,6 +636,13 @@ class ReplicaSetFixture(interface.ReplFixture): # pylint: disable=too-many-inst
conn_strs.append(self.initial_sync_node.get_internal_connection_string())
return self.replset_name + "/" + ",".join(conn_strs)
+ def get_node_info(self):
+ """Return a list of dicts of NodeInfo objects."""
+ output = []
+ for node in self.nodes:
+ output += node.get_node_info()
+ return output
+
def get_driver_connection_url(self):
"""Return the driver connection URL."""
if self.replset_name is None: