Example #1
0
def didAdded(be, do, philCli, trust_anchor_did_signer):
    ensureConnectedToTestEnv(be, do, philCli)
    addNym(be, do, philCli,
           trust_anchor_did_signer.identifier,
           role=Roles.TRUST_ANCHOR.name
           )
    return philCli
Example #2
0
def agentWithEndpointAdded(be, do, agentCli, agentMap, attrAddedOut):
    be(agentCli)

    ensureConnectedToTestEnv(be, do, agentCli)

    # TODO these belong in there own test, not
    # TODO part of standing up agents

    # checkIfInvalidEndpointIsRejected(do, agentMap)
    # checkIfValidEndpointIsAccepted(do, agentMap, attrAddedOut)
    do('send ATTRIB dest={remote} raw={endpointAttr}',
       within=5,
       expect=attrAddedOut,
       mapper=agentMap)
    return agentCli
Example #3
0
def agentWithEndpointAdded(be, do, agentCli, agentMap, attrAddedOut):
    be(agentCli)

    ensureConnectedToTestEnv(be, do, agentCli)

    # TODO these belong in there own test, not
    # TODO part of standing up agents

    # checkIfInvalidEndpointIsRejected(do, agentMap)
    # checkIfValidEndpointIsAccepted(do, agentMap, attrAddedOut)
    do('send ATTRIB dest={remote} raw={endpointAttr}',
       within=5,
       expect=attrAddedOut,
       mapper=agentMap)
    return agentCli
Example #4
0
def testGetCIDWithoutAddingIt(be, do, philCli, trust_anchor_cid_signer):
    ensureConnectedToTestEnv(be, do, philCli)
    getNym(be, do, philCli, trust_anchor_cid_signer.identifier,
           getNymNotFoundExpectedMsgs(trust_anchor_cid_signer.identifier))