Esempio n. 1
0
def testEachClientOnDifferentPort(cli1, cli2):
    c1, c2 = "client1", "client2"
    newKeyPair(cli1)
    newKeyPair(cli2)
    cli1.enterCmd("new client {}".format(c1))
    cli2.enterCmd("new client {}".format(c2))
    client1 = next(iter(cli1.clients.values()))
    client2 = next(iter(cli2.clients.values()))
    assert client1.nodestack.ha != client2.nodestack.ha
def testEachClientOnDifferentPort(cli1, cli2):
    c1, c2 = "client1", "client2"
    newKeyPair(cli1)
    newKeyPair(cli2)
    cli1.enterCmd("new client {}".format(c1))
    cli2.enterCmd("new client {}".format(c2))
    client1 = next(iter(cli1.clients.values()))
    client2 = next(iter(cli2.clients.values()))
    assert client1.nodestack.ha != client2.nodestack.ha
Esempio n. 3
0
def newKeyPairCreated(cli):
    return newKeyPair(cli)
Esempio n. 4
0
def tylerPubKey(tylerCLI):
    return newKeyPair(tylerCLI, alias='Tyler')  # or should it be "forBYU"?
Esempio n. 5
0
def newKeyPairCreated(cli):
    return newKeyPair(cli)
Esempio n. 6
0
def byuPubKey(byuCLI):
    return newKeyPair(byuCLI)
Esempio n. 7
0
def trusteePubKey(trusteeCLI):
    return newKeyPair(trusteeCLI)
Esempio n. 8
0
def philPubKey(philCLI):
    return newKeyPair(philCLI)
Esempio n. 9
0
def bookStorePubKey(bookStoreCLI):
    return newKeyPair(bookStoreCLI, alias='BookStore')
Esempio n. 10
0
def pubKey(cli):
    return newKeyPair(cli, "test")