Skip to content

Commit

Permalink
FABN-1379 NodeSDK fabric-ca-client test fix
Browse files Browse the repository at this point in the history
Identity service will return 1 or more identities.

Signed-off-by: Bret Harrison <[email protected]>
Change-Id: Ibc4af5fd09bb03bc4841994b8fc950855365fd7d
  • Loading branch information
harrisob committed Sep 20, 2019
1 parent be894cb commit 2257151
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/fabric-ca-identity-service-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@ test('\n\n ** FabricCAServices - IdentityService Test **\n\n', async (t) => {
// identity can only find itself
resp = await hfcaIdentityService1.getAll(identity);
t.equal(resp.success, true);
t.equal(resp.result.identities.length, 1);
t.equal(resp.result.identities.length > 0, true);

// admin of ca1 can find two identities
resp = await hfcaIdentityService1.getAll(admin1);
t.equal(resp.success, true);
t.equal(resp.result.identities.length, 2);
t.equal(resp.result.identities.length > 1, true);

// admin of ca2 can only find 1 identity
resp = await hfcaIdentityService2.getAll(admin2);
t.equal(resp.success, true);
t.equal(resp.result.identities.length, 1);
t.equal(resp.result.identities.length > 0, true);

// update test identity with admin1
resp = await hfcaIdentityService1.update(identity._name, update, admin1);
Expand Down

0 comments on commit 2257151

Please sign in to comment.