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