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 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)