Skip to content

Commit

Permalink
[FAB-4643] NodeSDK - Work with the configtxlator
Browse files Browse the repository at this point in the history
Creates a new test case and supporting artifacts
to run a create and update flow using the new
tool 'configtxlator'. Demonstrates when and how to
call the tool when using the NodeSDK.

Change-Id: Ifd2128fd263e179061e4bb2a2b7e844972ec0302
Signed-off-by: Bret Harrison <[email protected]>
  • Loading branch information
harrisob committed Jun 17, 2017
1 parent dd49adb commit 2868120
Show file tree
Hide file tree
Showing 3 changed files with 802 additions and 0 deletions.
66 changes: 66 additions & 0 deletions test/fixtures/channel/mychannelator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"channel_id": "mychannelator",
"read_set": {
"groups": {
"Application": {
"groups": {
"Org1MSP": {},
"Org2MSP": {}
}
}
},
"values": {
"Consortium": {
"value": {
"name": "SampleConsortium"
}
}
}
},
"write_set": {
"groups": {
"Application": {
"groups": {
"Org1MSP": {},
"Org2MSP": {}
},
"mod_policy": "Admins",
"policies": {
"Admins": {
"policy": {
"type": 3,
"value": {
"rule": "MAJORITY",
"sub_policy": "Admins"
}
}
},
"Readers": {
"policy": {
"type": 3,
"value": {
"sub_policy": "Readers"
}
}
},
"Writers": {
"policy": {
"type": 3,
"value": {
"sub_policy": "Writers"
}
}
}
},
"version": "1"
}
},
"values": {
"Consortium": {
"value": {
"name": "SampleConsortium"
}
}
}
}
}
Loading

0 comments on commit 2868120

Please sign in to comment.