def testSendNymFailsIfUuidIdentifierIsHexEncoded( looper, sdk_pool_handle, txnPoolNodeSet, nym_request, sdk_wallet_trustee): parameters = { 'dest': friendlyToHexStr(createUuidIdentifier()), 'role': TRUST_ANCHOR } nym_request[OPERATION].update(parameters) request_couple = sdk_sign_and_send_prepared_request(looper, sdk_wallet_trustee, sdk_pool_handle, json.dumps(nym_request)) sdk_get_and_check_replies(looper, [request_couple])
def testSendNymFailsIfUuidIdentifierIsHexEncoded( be, do, poolNodesStarted, trusteeCli): parameters = { 'dest': friendlyToHexStr(createUuidIdentifier()), 'role': Roles.TRUST_ANCHOR.name } be(trusteeCli) do('send NYM dest={dest} role={role}', mapper=parameters, expect=ERROR, within=2)
def testSendNymFailsIfUuidIdentifierIsHexEncoded( be, do, poolNodesStarted, trusteeCli): parameters = { 'dest': friendlyToHexStr(createUuidIdentifier()), 'role': Roles.TRUST_ANCHOR.name } be(trusteeCli) do('send NYM dest={dest} role={role}', mapper=parameters, expect=ERROR, within=2)
def testSendNymFailsIfAbbrevVerkeyIsHexEncoded( looper, sdk_pool_handle, txnPoolNodeSet, nym_request, sdk_wallet_trustee): halfKeyIdentifier, abbrevVerkey = createHalfKeyIdentifierAndAbbrevVerkey() parameters = { 'dest': halfKeyIdentifier, 'verkey': '~' + friendlyToHexStr(abbrevVerkey.replace('~', '')), 'role': TRUST_ANCHOR } nym_request[OPERATION].update(parameters) request_couple = sdk_sign_and_send_prepared_request(looper, sdk_wallet_trustee, sdk_pool_handle, json.dumps(nym_request)) sdk_get_and_check_replies(looper, [request_couple])
def testSendNymFailsIfFullVerkeyIsHexEncoded(looper, sdk_pool_handle, txnPoolNodeSet, nym_request, sdk_wallet_trustee): uuidIdentifier, fullVerkey = createUuidIdentifierAndFullVerkey() parameters = { 'dest': uuidIdentifier, 'verkey': friendlyToHexStr(fullVerkey), 'role': ENDORSER } nym_request[OPERATION].update(parameters) request_couple = sdk_sign_and_send_prepared_request( looper, sdk_wallet_trustee, sdk_pool_handle, json.dumps(nym_request)) sdk_get_and_check_replies(looper, [request_couple])
def testSendNymFailsIfAbbrevVerkeyIsHexEncoded( be, do, poolNodesStarted, trusteeCli): halfKeyIdentifier, abbrevVerkey = createHalfKeyIdentifierAndAbbrevVerkey() parameters = { 'dest': halfKeyIdentifier, 'verkey': '~' + friendlyToHexStr(abbrevVerkey.replace('~', '')), 'role': Roles.TRUST_ANCHOR.name } be(trusteeCli) do('send NYM dest={dest} role={role} verkey={verkey}', mapper=parameters, expect=ERROR, within=2)
def testSendNymFailsIfFullVerkeyIsHexEncoded( be, do, poolNodesStarted, trusteeCli): uuidIdentifier, fullVerkey = createUuidIdentifierAndFullVerkey() parameters = { 'dest': uuidIdentifier, 'verkey': friendlyToHexStr(fullVerkey), 'role': Roles.TRUST_ANCHOR.name } be(trusteeCli) do('send NYM dest={dest} role={role} verkey={verkey}', mapper=parameters, expect=ERROR, within=2)
def testSendNymFailsIfAbbrevVerkeyIsHexEncoded( be, do, poolNodesStarted, trusteeCli): halfKeyIdentifier, abbrevVerkey = createHalfKeyIdentifierAndAbbrevVerkey() parameters = { 'dest': halfKeyIdentifier, 'verkey': '~' + friendlyToHexStr(abbrevVerkey.replace('~', '')), 'role': Roles.TRUST_ANCHOR.name } be(trusteeCli) do('send NYM dest={dest} role={role} verkey={verkey}', mapper=parameters, expect=ERROR, within=2)
def testSendNymFailsIfFullVerkeyIsHexEncoded( be, do, poolNodesStarted, trusteeCli): uuidIdentifier, fullVerkey = createUuidIdentifierAndFullVerkey() parameters = { 'dest': uuidIdentifier, 'verkey': friendlyToHexStr(fullVerkey), 'role': Roles.TRUST_ANCHOR.name } be(trusteeCli) do('send NYM dest={dest} role={role} verkey={verkey}', mapper=parameters, expect=ERROR, within=2)