-
Notifications
You must be signed in to change notification settings - Fork 93
Feat/ccaas #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+2,316
−222
Merged
Feat/ccaas #594
Changes from 250 commits
Commits
Show all changes
479 commits
Select commit
Hold shift + click to select a range
ff9fbdc
Update changelog with version 2.0.0 changes
dzikowski 029148a
created a seperate function for node_version check, also covered all …
Sanket-0510 ce46355
updated snapshots
Sanket-0510 8eb427a
updated
Sanket-0510 e97aa6e
Update changelog: add info about new Fablo Docker image registry
dzikowski 49ea650
Update Fablo Docker image registry to GHCR
dzikowski 254d749
Update Fablo REST version and registry
dzikowski 1c6d758
Update getting Fablo versions
dzikowski a733c3d
Update snapshots
dzikowski 1f1c2c6
Set Docker registry to ghcr.io/fablo-io/fablo
dzikowski 2bac13a
Update release action
dzikowski de039b6
Update GHCR credentials
dzikowski 730ef7c
Fix errors when yeoman is printing messages
dzikowski 4527561
Fix import path
dzikowski a34c529
Update snapshots
dzikowski 74b33ac
Fix linting
dzikowski 48c91f3
version 3 changes initiated
Sanket-0510 03da1ec
added the tests
Sanket-0510 a6fff36
added the samples
Sanket-0510 3931232
updated some conditions
Sanket-0510 0b88ba7
updated the templates, now version 3 is supported
Sanket-0510 abb5499
Successfully pass the tests
Sanket-0510 26ca71c
updated testCases.md
Sanket-0510 3cdd487
increased the number of instances for the orderers
Sanket-0510 bcb18eb
minor changes
Sanket-0510 c3f2eb5
done with initial configuration for BFT, updated the templates for th…
Sanket-0510 9c999d6
updated the permission
Sanket-0510 6891165
version 3 completed heading towards adding BFT support
Sanket-0510 b47dc13
Use proper createChannelAndJoinTls with certs
dzikowski 25f996a
Enable TLS for admin endpoints
dzikowski d9e0bd3
Reorder and fix docker compose variable for orderer
dzikowski 30904af
Fix identity which remove NOT_FOUND error while fetching the channel
dzikowski 6249af4
Remove unnecessary sleep
dzikowski aa2873f
Fix docker compose variables for RAFT
dzikowski 1ea6666
Some polishing and cleanup
dzikowski 1f296b5
Update src/setup-docker/templates/fabric-docker/docker-compose.yaml
Sanket-0510 5daa762
updated the snapshots
Sanket-0510 e2d7200
changed the log check message in BFT test file
Sanket-0510 5df5ac8
Update src/setup-docker/index.ts
Sanket-0510 d36b5b9
minor changes
Sanket-0510 4e714f9
Update e2e-network/docker/test-05-version3-BFT.sh
Sanket-0510 b8ce2dc
Update e2e-network/docker/test-05-version3.sh
Sanket-0510 68b9aeb
minor fixes after the review
Sanket-0510 1091ba0
updated the snapshots
Sanket-0510 30efd99
added the tests in the CI pipeline of fablo
Sanket-0510 7ac89a6
updated testCases.md
Sanket-0510 58cf5e5
fixes in docker-compose
Sanket-0510 bd05269
some linting and other fixes
Sanket-0510 e77befe
updated the workflow file
Sanket-0510 3f2f23a
final fixes
Sanket-0510 27224b2
Update snapshot
dzikowski b9814c8
Adjust versions
dzikowski 99499dc
Update snapshots
dzikowski c032313
Add explicit fabricToolsVetsion
dzikowski 2c355db
Update Docker commands to use FABRIC_TOOLS_VERSION instead of FABRIC_…
dzikowski 99c3ce8
Update fabricToolsVersion to 3.0.0-beta in configuration snapshots an…
dzikowski 2662b84
Update snapshots
dzikowski e291799
Validation changes to make explicit Fablo supports Fabric up to 3.0.0…
dzikowski 0ca096a
Update CHANGELOG
dzikowski cf04d9b
Update snapshots
dzikowski 4c4cfba
Create directory to avoid permission errors
dzikowski 98e9275
Set version 2.1.0
dzikowski a44ebbe
Add VSC config to gitignore
dzikowski 787b2bb
Bump cross-spawn from 7.0.3 to 7.0.6
dependabot[bot] e0dba14
Bump ejs and ejs-lint
dependabot[bot] c0483ba
NPM audit fix
dzikowski 98550db
Added
SRshohan a9cbac0
Chore: Update MAINTAINERS.md
dzikowski 3f9a5ac
Merge pull request #513 from umegbewe/feat/support-fabric-v3-completion
umegbewe ef54fc1
bump version 2.2.0
umegbewe d0c7d37
docs: clarify usage of global vs local fablo installation in README (…
iamkalio 93ddff2
Fix #519: Check if post-generate.sh exists before executing (#521)
VijetaPriya47 86b3ccf
Updated fablo.sh to check if /hooks/post-generate.sh exists (#526)
debayangg de25400
feat: support installing chaincode from Docker image using CCAAS
dpereowei f62acac
Keep cc container running ang generate dynamic ports
dpereowei c071869
use lang in type for metadata.json
dpereowei 7ee63ee
use lang in type for metadata.json
dpereowei 8b439de
change fabric version
dpereowei e7c3d8e
Chaincode install test passed
dpereowei 763bc85
fix-add fallback values for chaincodePackage arguments
dpereowei 2943f6b
Fix tag format for release CI (#504)
dzikowski 72034ab
Implement CCAAS TLS issue preparation and metadata updates
iamkalio 45d5d2c
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 571fa79
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 75b12df
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 8109463
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 0073a4b
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 2d8c1c8
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 7ed0ca9
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 145f88c
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6e01bc7
Implement CCAAS TLS issue preparation and metadata updates
dpereowei ca767d0
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 5a500cc
Implement CCAAS TLS issue preparation and metadata updates
dpereowei ce5e121
Implement CCAAS TLS issue preparation and metadata updates
dpereowei c8646c1
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 69075f5
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6af17ce
Implement CCAAS TLS issue preparation and metadata updates
dpereowei df5b011
Implement CCAAS TLS issue preparation and metadata updates
dpereowei a6b0949
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 3c769bf
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 102d0ce
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 694c634
Implement CCAAS TLS issue preparation and metadata updates
dpereowei c889654
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 8e4a90a
Implement CCAAS TLS issue preparation and metadata updates
dpereowei aa9ed84
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 16d2a5f
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 0c1f80c
Implement CCAAS TLS issue preparation and metadata updates
dpereowei c61f274
Implement CCAAS TLS issue preparation and metadata updates
dpereowei bd7e905
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 023218b
Implement CCAAS TLS issue preparation and metadata updates
dpereowei e5a56d4
Implement CCAAS TLS issue preparation and metadata updates
dpereowei ae49ebc
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 09087d3
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 1aa5cb8
Implement CCAAS TLS issue preparation and metadata updates
dpereowei c7fa88f
Implement CCAAS TLS issue preparation and metadata updates
dpereowei b450252
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 5ac72d2
Implement CCAAS TLS issue preparation and metadata updates
ronaldl29 d423553
Implement CCAAS TLS issue preparation and metadata updates
dpereowei f091951
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 8858c44
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 4839308
Implement CCAAS TLS issue preparation and metadata updates
dpereowei b52fd82
Implement CCAAS TLS issue preparation and metadata updates
dpereowei d9e4249
Implement CCAAS TLS issue preparation and metadata updates
dpereowei ba38acd
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 00b7aa6
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 0f54dc2
Implement CCAAS TLS issue preparation and metadata updates
dpereowei ba15d9a
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 31fd0a2
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 8eb39b1
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 51b7f29
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 4325d2c
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 856825a
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 9af0ae7
Implement CCAAS TLS issue preparation and metadata updates
dpereowei cebad90
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 79b2b5d
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 1114187
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6513453
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 010bdda
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 83a4a75
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 32bf139
Implement CCAAS TLS issue preparation and metadata updates
dpereowei de44c59
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 43485a0
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 2421539
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 691220d
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 3eb0111
Implement CCAAS TLS issue preparation and metadata updates
dpereowei f640b09
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 36d1bd9
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 33e6ae1
Implement CCAAS TLS issue preparation and metadata updates
dpereowei b650f08
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 811153c
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 8de917a
Implement CCAAS TLS issue preparation and metadata updates
dpereowei b32ecf5
Implement CCAAS TLS issue preparation and metadata updates
dpereowei f5852bd
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6350ee8
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 18a6a07
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 767e2a1
Implement CCAAS TLS issue preparation and metadata updates
dpereowei a8ef5c1
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 9a6ad93
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 153d6e5
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 400514d
Implement CCAAS TLS issue preparation and metadata updates
dpereowei f2321c6
Implement CCAAS TLS issue preparation and metadata updates
dpereowei e4cf1ef
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6dad434
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 18ed0e5
Implement CCAAS TLS issue preparation and metadata updates
dpereowei e8eb537
Implement CCAAS TLS issue preparation and metadata updates
dpereowei e95c29c
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6370a8f
Implement CCAAS TLS issue preparation and metadata updates
dpereowei c540391
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 9236b23
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 64b0b45
Implement CCAAS TLS issue preparation and metadata updates
dpereowei fdba647
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6bd5b7e
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 312e88d
Implement CCAAS TLS issue preparation and metadata updates
dpereowei bec171e
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 4d44e28
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 1cffcf5
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 18c7ff3
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 820442b
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 31903ad
Implement CCAAS TLS issue preparation and metadata updates
dpereowei d9446f6
Implement CCAAS TLS issue preparation and metadata updates
dpereowei d9c6b34
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 33e2ea6
Implement CCAAS TLS issue preparation and metadata updates
dpereowei d7155ff
Implement CCAAS TLS issue preparation and metadata updates
dpereowei e114ed1
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 1c7d525
Implement CCAAS TLS issue preparation and metadata updates
dpereowei d847bc3
Implement CCAAS TLS issue preparation and metadata updates
dpereowei de9a9f3
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 63d57fe
Implement CCAAS TLS issue preparation and metadata updates
dpereowei a788ba7
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6c91602
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 7d74f04
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 2435d7c
Implement CCAAS TLS issue preparation and metadata updates
dpereowei f4ff7fa
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 2e05775
Implement CCAAS TLS issue preparation and metadata updates
dpereowei d941901
Implement CCAAS TLS issue preparation and metadata updates
dpereowei ffbf37e
Implement CCAAS TLS issue preparation and metadata updates
dpereowei e300d13
Implement CCAAS TLS issue preparation and metadata updates
dpereowei e043306
Implement CCAAS TLS issue preparation and metadata updates
dpereowei a6e4f2f
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 6a3ab5b
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 54af835
Implement CCAAS TLS issue preparation and metadata updates
dpereowei bac2888
Implement CCAAS TLS issue preparation and metadata updates
dpereowei 1f4162e
Implement CCAAS TLS issue preparation and metadata updates
dpereowei c452b00
Implement CCAAS TLS issue preparation and metadata updates
dpereowei fd609c2
Implement CCAAS TLS issue preparation and metadata updates
dpereowei af89893
Checkpoint
dzikowski 8f7982f
PoC of CCaaS
dzikowski 38e8be2
PoC (checkpoint working)
dzikowski 94b7c98
Rafactor and use proper ports
dzikowski 8762d83
Fixes for multiple peers
dzikowski b13027d
Refactoring
dzikowski 237dfb4
added the tests
Sanket-0510 098cc09
Updated fablo.sh to check if /hooks/post-generate.sh exists (#526)
debayangg d1855cc
Fix: Missing FABLO_VERSION in publish docker workflow (#556)
dzikowski d11624a
Coverage tracker document (#557)
dpereowei d6871b7
Update coverage tracker Snapshot (#564)
OsamaRab3 da7ba06
Update coverage tracker markdown with network topology tests (#562)
dpereowei d3ff754
Update coverage for 'Other Features' (#566)
OsamaRab3 e77a2f6
Update coverage tracker Fablo Commands section (#563)
OsamaRab3 707e1a5
Pre-review fixes
dzikowski 565605f
ensure read access for generated certs
dzikowski 8da527f
Use chown instead of chmod to handle permission errors
dzikowski 6ff6c3d
Move the chown inside alpine container
dzikowski bf33501
Update fablo config to use CCaaS and add todos
dzikowski 87e44ee
Fix-ccaas-without-TLS
dpereowei 7cc8f7e
fix-start chaincodes after restore
dpereowei 91524b2
test post-generate hook creation and execution in ci (#580)
OsamaRab3 b5ffd79
Fix Gradle build for Java chaincode (#583)
OsamaRab3 8e4f4ac
Generate diagrams by default for each 'generate' command (#584)
OsamaRab3 e37c5d3
Upgrade Blockchain Explorer (#590)
OsamaRab3 14bc668
ci: fix test-05-v3 (#591)
umegbewe c473161
fix-update test suites
dpereowei 3229452
Merge branch 'feat/ccaas' of https://github.com/dpereowei/fablo into …
dpereowei 7885606
fix-DCO error
dpereowei 0b5f54c
Merge branch 'main' into feat/ccaas
dpereowei b06d3ac
fix-update branch and snapshots
dpereowei ac2d74b
Merge branch 'main' of https://github.com/hyperledger-labs/fablo into…
dpereowei 1a4eebf
fix-increase instances for fault tolerance warning
dpereowei a09b426
fix-increase instances for fault tolerance warning
dpereowei 087684f
fix-expected validation count
dpereowei 58ce3e4
fix-shellcheck validation
dpereowei 6133591
fix-wait for container
dpereowei 502116a
fix-endorsement
dpereowei a31fe41
Merge branch 'main' into feat/ccaas
dpereowei 1c275c9
fix-resolve review comments
dpereowei 0064de5
Merge branch 'main' into feat/ccaas
dpereowei d76e64f
Merge branch 'feat/ccaas' of https://github.com/dpereowei/fablo into …
dpereowei ed31207
fix-revert init changes
dpereowei f8d6057
Update src/validate/index.ts
dpereowei 95e9bf7
fix-update snapshots
dpereowei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,4 @@ node_modules | |
| .idea | ||
| .vscode | ||
| samples/invalid-fablo-config.json | ||
| .DS_Store | ||
| .DS_Store | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| #!/usr/bin/env bash | ||
dpereowei marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| set -eux | ||
|
|
||
| TEST_TMP="$(rm -rf "$0.tmpdir" && mkdir -p "$0.tmpdir" && (cd "$0.tmpdir" && pwd))" | ||
| TEST_LOGS="$(mkdir -p "$0.logs" && (cd "$0.logs" && pwd))" | ||
| FABLO_HOME="$TEST_TMP/../../.." | ||
|
|
||
| CONFIG="$FABLO_HOME/samples/fablo-config-hlf3-1orgs-1chaincode.json" | ||
|
|
||
| networkUp() { | ||
| "$FABLO_HOME/fablo-build.sh" | ||
| (cd "$TEST_TMP" && "$FABLO_HOME/fablo.sh" generate "$CONFIG") | ||
| (cd "$TEST_TMP" && "$FABLO_HOME/fablo.sh" up) | ||
| } | ||
|
|
||
| dumpLogs() { | ||
| echo "Saving logs of $1 to $TEST_LOGS/$1.log" | ||
| mkdir -p "$TEST_LOGS" | ||
| docker logs "$1" >"$TEST_LOGS/$1.log" 2>&1 | ||
| } | ||
|
|
||
| networkDown() { | ||
| rm -rf "$TEST_LOGS" | ||
| (for name in $(docker ps --format '{{.Names}}'); do dumpLogs "$name"; done) | ||
| dumpLogs orderer0.group1.orderer.example.com | ||
| (cd "$TEST_TMP" && "$FABLO_HOME/fablo.sh" down) | ||
| } | ||
|
|
||
| waitForContainer() { | ||
| sh "$TEST_TMP/../wait-for-container.sh" "$1" "$2" | ||
| } | ||
|
|
||
| waitForChaincode() { | ||
| (cd "$TEST_TMP" && sh ../wait-for-chaincode.sh "$1" "$2" "$3" "$4") | ||
| } | ||
|
|
||
| expectInvoke() { | ||
| (cd "$TEST_TMP" && sh ../expect-invoke-cli.sh "$1" "$2" "$3" "$4" "$5" "$6") | ||
| } | ||
|
|
||
| expectCommand() { | ||
| sh "$TEST_TMP/../expect-command.sh" "$1" "$2" | ||
| } | ||
|
|
||
| trap networkDown EXIT | ||
| trap 'networkDown ; echo "Test failed" ; exit 1' ERR SIGINT | ||
|
|
||
| # start the network | ||
| networkUp | ||
|
|
||
| waitForContainer "orderer0.group1.orderer.example.com" "Created and started new.*my-channel1" | ||
| waitForContainer "ca.org1.example.com" "Listening on http://0.0.0.0:7054" | ||
| waitForContainer "peer0.org1.example.com" "Joining gossip network of channel my-channel1 with 1 organizations" | ||
| waitForContainer "peer1.org1.example.com" "Joining gossip network of channel my-channel1 with 1 organizations" | ||
| waitForContainer "peer0.org1.example.com" "Learning about the configured anchor peers of Org1MSP for channel my-channel1" | ||
| waitForContainer "peer0.org1.example.com" "Anchor peer.*with same endpoint, skipping connecting to myself" | ||
| waitForContainer "peer0.org1.example.com" "Membership view has changed. peers went online:.*peer1.org1.example.com:7042" | ||
| waitForContainer "peer1.org1.example.com" "Learning about the configured anchor peers of Org1MSP for channel my-channel1" | ||
| waitForContainer "peer1.org1.example.com" "Membership view has changed. peers went online:.*peer0.org1.example.com:7041" | ||
|
|
||
| # Test simple chaincode | ||
| expectInvoke "peer0.org1.example.com" "my-channel1" "chaincode1" \ | ||
| '{"Args":["KVContract:put", "name", "Willy Wonka"]}' \ | ||
| '{\"success\":\"OK\"}' | ||
| expectInvoke "peer1.org1.example.com" "my-channel1" "chaincode1" \ | ||
| '{"Args":["KVContract:get", "name"]}' \ | ||
| '{\"success\":\"Willy Wonka\"}' | ||
|
|
||
| # Verify channel query scripts | ||
| (cd "$TEST_TMP" && "$FABLO_HOME/fablo.sh" channel fetch newest my-channel1 org1 peer1) | ||
| expectCommand "cat \"$TEST_TMP/newest.block\"" "KVContract:get" | ||
|
|
||
| (cd "$TEST_TMP" && "$FABLO_HOME/fablo.sh" channel fetch 4 my-channel1 org1 peer1 "another.block") | ||
| expectCommand "cat \"$TEST_TMP/another.block\"" "KVContract:put" | ||
|
|
||
| (cd "$TEST_TMP" && "$FABLO_HOME/fablo.sh" channel fetch config my-channel1 org1 peer1 "channel-config.json") | ||
| expectCommand "cat \"$TEST_TMP/channel-config.json\"" "\"mod_policy\": \"Admins\"," | ||
|
|
||
| expectCommand "(cd \"$TEST_TMP\" && \"$FABLO_HOME/fablo.sh\" channel getinfo my-channel1 org1 peer1)" "\"height\":6" | ||
|
|
||
| # Reset and ensure the state is lost after reset | ||
| (cd "$TEST_TMP" && "$FABLO_HOME/fablo.sh" reset) | ||
| waitForChaincode "peer0.org1.example.com" "my-channel1" "chaincode1" "0.0.1" | ||
| waitForChaincode "peer1.org1.example.com" "my-channel1" "chaincode1" "0.0.1" | ||
| expectInvoke "peer0.org1.example.com" "my-channel1" "chaincode1" \ | ||
| '{"Args":["KVContract:get", "name"]}' \ | ||
| '{\"error\":\"NOT_FOUND\"}' | ||
|
|
||
| # Put some data again | ||
| expectInvoke "peer0.org1.example.com" "my-channel1" "chaincode1" \ | ||
| '{"Args":["KVContract:put", "name", "James Bond"]}' \ | ||
| '{\"success\":\"OK\"}' | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.