ctex v0.1.0 CommonTest.Cluster

Functions for working with Erlang distribution and child nodes in common_test.

Link to this section Summary

Functions

Loads and boots requested applications on a node. This is called automatically by start_node/2

Ensures the local node is ready to run a test with a cluster of child nodes

Starts epmd so that a cluster’s nodes can talk to one another

Starts a child node with the given name and the common_test configuration

Stops user-initiated applications on a node without shutting it down

Shuts down a node in the cluster by name. If the node does not stop within 10 seconds, the suite is failed with the reason {:node_stop_failed, name}

Link to this section Functions

Link to this function boot_node(name, config)
boot_node(node(), CommonTest.config()) :: :ok

Loads and boots requested applications on a node. This is called automatically by start_node/2.

Link to this function start()
start() :: :ok

Ensures the local node is ready to run a test with a cluster of child nodes.

Link to this function start_epmd()
start_epmd() :: :ok | no_return()

Starts epmd so that a cluster’s nodes can talk to one another.

Link to this function start_node(name, config)
start_node(node(), CommonTest.config()) :: term()

Starts a child node with the given name and the common_test configuration.

Link to this function stop_applications(anode)
stop_applications(node()) :: :ok

Stops user-initiated applications on a node without shutting it down.

Link to this function stop_node(name)
stop_node(node()) :: true | no_return()

Shuts down a node in the cluster by name. If the node does not stop within 10 seconds, the suite is failed with the reason {:node_stop_failed, name}.