Beispiel #1
0
def setup(tdir, looper, tconf):
    names = ['Alpha', 'Beta', 'Gamma']
    (alpha, beta, gamma), (alphaP, betaP, gammaP) = \
        create_and_prep_stacks(names, tdir, looper, tconf)
    check_stacks_communicating(looper, (alpha, beta, gamma),
                               (alphaP, betaP, gammaP))
    return (alpha, beta, gamma)
def setup(tdir, looper, tconf):
    names = ['Alpha', 'Beta', 'Gamma']
    (alpha, beta, gamma), (alphaP, betaP, gammaP) = \
        create_and_prep_stacks(names, tdir, looper, tconf)
    check_stacks_communicating(looper, (alpha, beta, gamma),
                               (alphaP, betaP, gammaP))
    return (alpha, beta, gamma)
Beispiel #3
0
def testRestricted2ZStackCommunication(tdir, looper, tconf):
    """
    Create 2 ZStack and make them send and receive messages.
    Both stacks allow communication only when keys are shared
    :return:
    """
    names = ['Alpha', 'Beta']
    (alpha, beta), (alphaP, betaP) = create_and_prep_stacks(names, tdir,
                                                            looper, tconf)
    check_stacks_communicating(looper, (alpha, beta), (alphaP, betaP))
def testRestricted2ZStackCommunication(tdir, looper, tconf):
    """
    Create 2 ZStack and make them send and receive messages.
    Both stacks allow communication only when keys are shared
    :return:
    """
    names = ['Alpha', 'Beta']
    (alpha, beta), (alphaP, betaP) = create_and_prep_stacks(names, tdir,
                                                            looper, tconf)
    check_stacks_communicating(looper, (alpha, beta), (alphaP, betaP))