示例#1
0
def testStewardCannotAddMoreThanOneNode(looper, txnPoolNodeSet, steward1,
                                        stewardWallet, tdirWithPoolTxns, tconf,
                                        allPluginsPath):
    newNodeName = "Epsilon"
    with pytest.raises(AssertionError):
        addNewNode(looper, steward1, stewardWallet, newNodeName,
                   tdirWithPoolTxns, tconf, allPluginsPath)
def testStewardCannotAddMoreThanOneNode(looper, txnPoolNodeSet, steward1,
                                        stewardWallet, tdirWithPoolTxns, tconf,
                                        allPluginsPath):
    newNodeName = "Epsilon"
    with pytest.raises(AssertionError):
        addNewNode(looper, steward1, stewardWallet, newNodeName,
                   tdirWithPoolTxns, tconf, allPluginsPath)
示例#3
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)
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)