コード例 #1
0
    def test_can_scale_to_three_nodes(self, cluster):
        # Should be 1 node: the coordinator
        assert len(cluster.ips()) == 1

        # Scale to three nodes
        cluster.scale(3)

        # Should be 3 nodes
        assert len(cluster.ips()) == 3

        # Should be able to ping the nodes on internal IP
        assert cluster.client().ping()
コード例 #2
0
  def test_can_scale_to_three_nodes(self, cluster):
    # Should be 1 node: the coordinator
    assert len(cluster.ips()) == 1

    # Scale to three nodes
    cluster.scale(3)

    # Should be 3 nodes
    assert len(cluster.ips()) == 3

    # Should be able to ping the nodes on internal IP
    assert cluster.client().ping()
コード例 #3
0
    def test_can_start_single_node(self, cluster):
        # Should be 1 node: the coordinator
        assert len(cluster.ips()) == 1

        # Should be able to ping the node on internal IP
        assert cluster.client().ping()
コード例 #4
0
  def test_can_start_single_node(self, cluster):
    # Should be 1 node: the coordinator
    assert len(cluster.ips()) == 1

    # Should be able to ping the node on internal IP
    assert cluster.client().ping()