Skip to content

Commit

Permalink
Fixed tests for Nodejs and Python wrappers
Browse files Browse the repository at this point in the history
Signed-off-by: artem.ivanov <[email protected]>
  • Loading branch information
Artemkaaas committed Mar 18, 2019
1 parent 1fc8d97 commit 8b82bbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions wrappers/nodejs/test/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ test('ledger', async function (t) {
t.is(res.op, 'REPLY')

req = await indy.buildGetAuthRuleRequest(trusteeDid, 'NYM', 'ADD', 'role', null, '101')
res = await indy.submitRequest(pool.handle, req)
t.is(constraint, res['txn']['data']['constraint'])
res = await waitUntilApplied(pool.handle, req, res => res['result']['data'] != null)
t.deepEqual(res['result']['data']['ADD--1--role--*--101'], constraint)

await indy.closeWallet(wh)
await indy.deleteWallet(walletConfig, walletCredentials)
Expand Down
8 changes: 4 additions & 4 deletions wrappers/python/indy/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,8 +1341,8 @@ async def build_auth_rule_request(submitter_did: str,


async def build_get_auth_rule_request(submitter_did: Optional[str],
auth_type: Optional[str],
auth_action: Optional[str],
txn_type: Optional[str],
action: Optional[str],
field: Optional[str],
old_value: Optional[str],
new_value: Optional[str]) -> str:
Expand Down Expand Up @@ -1378,8 +1378,8 @@ async def build_get_auth_rule_request(submitter_did: Optional[str],
build_get_auth_rule_request.cb = create_cb(CFUNCTYPE(None, c_int32, c_int32, c_char_p))

c_submitter_did = c_char_p(submitter_did.encode('utf-8')) if submitter_did is not None else None
c_auth_type = c_char_p(auth_type.encode('utf-8')) if auth_type is not None else None
c_auth_action = c_char_p(auth_action.encode('utf-8')) if auth_action is not None else None
c_txn_type = c_char_p(txn_type.encode('utf-8')) if txn_type is not None else None
c_action = c_char_p(action.encode('utf-8')) if action is not None else None
c_field = c_char_p(field.encode('utf-8')) if field is not None else None
c_old_value = c_char_p(old_value.encode('utf-8')) if old_value is not None else None
c_new_value = c_char_p(new_value.encode('utf-8')) if new_value is not None else None
Expand Down

0 comments on commit 8b82bbe

Please sign in to comment.