Ejemplo n.º 1
0
def testNonStewardCannotAddNode(looper, txnPoolNodeSet, client1, wallet1,
                                client1Connected, tdirWithPoolTxns, tconf,
                                allPluginsPath):
    newNodeName = "Epsilon"
    with pytest.raises(AssertionError):
        addNewNode(looper, client1, wallet1, newNodeName, tdirWithPoolTxns,
                   tconf, allPluginsPath)

    for node in txnPoolNodeSet:
        checkReqNackWithReason(client1, 'is not a steward so cannot add a '
                               'new node', node.clientstack.name)
Ejemplo n.º 2
0
def testNonStewardCannotAddNode(looper, txnPoolNodeSet, client1,
                                wallet1, client1Connected, tdirWithPoolTxns,
                                tconf, allPluginsPath):
    newNodeName = "Epsilon"
    with pytest.raises(AssertionError):
        addNewNode(looper, client1, wallet1, newNodeName,
                   tdirWithPoolTxns, tconf, allPluginsPath)

    for node in txnPoolNodeSet:
        checkReqNackWithReason(client1, 'is not a steward so cannot add a '
                                        'new node', node.clientstack.name)
Ejemplo n.º 3
0
def testNodePortCannotBeChangedByAnotherSteward(looper, txnPoolNodeSet,
                                                tdirWithPoolTxns, tconf,
                                                steward1, stewardWallet,
                                                nodeThetaAdded):
    _, _, newNode = nodeThetaAdded
    nodeNewHa, clientNewHa = genHa(2)
    logger.debug('{} changing HAs to {} {}'.format(newNode, nodeNewHa,
                                                   clientNewHa))
    with pytest.raises(AssertionError):
        changeNodeHa(looper, steward1, stewardWallet, newNode,
                     nodeHa=nodeNewHa, clientHa=clientNewHa)

    for node in txnPoolNodeSet:
        checkReqNackWithReason(steward1, 'is not a steward of node',
                               node.clientstack.name)
Ejemplo n.º 4
0
def testNodePortCannotBeChangedByAnotherSteward(looper, txnPoolNodeSet,
                                                tdirWithPoolTxns, tconf,
                                                steward1, stewardWallet,
                                                nodeThetaAdded):
    _, _, newNode = nodeThetaAdded
    nodeNewHa, clientNewHa = genHa(2)
    logger.debug('{} changing HAs to {} {}'.format(newNode, nodeNewHa,
                                                   clientNewHa))
    with pytest.raises(AssertionError):
        changeNodeHa(looper,
                     steward1,
                     stewardWallet,
                     newNode,
                     nodeHa=nodeNewHa,
                     clientHa=clientNewHa)

    for node in txnPoolNodeSet:
        checkReqNackWithReason(steward1, 'is not a steward of node',
                               node.clientstack.name)