We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5ba4d0 commit 0e6d259Copy full SHA for 0e6d259
vault/testing.go
@@ -977,6 +977,14 @@ func (c *TestClusterCore) ClusterListener() *cluster.Listener {
977
return c.getClusterListener()
978
}
979
980
+// NetworkLayer returns the network layer for the cluster core. This can be used
981
+// in conjunction with the cluster.InmemLayer to disconnect specific nodes from
982
+// the cluster when we need to simulate abrupt node failure or a network
983
+// partition in NewTestCluster tests.
984
+func (c *TestClusterCore) NetworkLayer() cluster.NetworkLayer {
985
+ return c.Core.clusterNetworkLayer
986
+}
987
+
988
func (c *TestCluster) Cleanup() {
989
c.Logger.Info("cleaning up vault cluster")
990
if tl, ok := c.Logger.(*corehelpers.TestLogger); ok {
0 commit comments