Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test-network/addOrg3/addOrg3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,4 @@ elif [ "${MODE}" == "generate" ]; then ## Generate Artifacts
else
printHelp
exit 1
fi
fi
2 changes: 1 addition & 1 deletion test-network/addOrg3/ccp-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ PEERPEM=../organizations/peerOrganizations/org3.example.com/tlsca/tlsca.org3.exa
CAPEM=../organizations/peerOrganizations/org3.example.com/ca/ca.org3.example.com-cert.pem

echo "$(json_ccp $ORG $P0PORT $CAPORT $PEERPEM $CAPEM)" > ../organizations/peerOrganizations/org3.example.com/connection-org3.json
echo "$(yaml_ccp $ORG $P0PORT $CAPORT $PEERPEM $CAPEM)" > ../organizations/peerOrganizations/org3.example.com/connection-org3.yaml
echo "$(yaml_ccp $ORG $P0PORT $CAPORT $PEERPEM $CAPEM)" > ../organizations/peerOrganizations/org3.example.com/connection-org3.yaml
2 changes: 1 addition & 1 deletion test-network/addOrg3/ccp-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ certificateAuthorities:
- |
${CAPEM}
httpOptions:
verify: false
verify: false
2 changes: 1 addition & 1 deletion test-network/addOrg3/compose/compose-ca-org3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ services:
command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
volumes:
- ../fabric-ca/org3:/etc/hyperledger/fabric-ca-server
container_name: ca_org3
container_name: ca_org3
2 changes: 1 addition & 1 deletion test-network/addOrg3/compose/compose-couch-org3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ services:
depends_on:
- couchdb4
networks:
- test
- test
2 changes: 1 addition & 1 deletion test-network/addOrg3/compose/compose-org3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ services:
ports:
- 11051:11051
networks:
- test
- test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
#
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
#
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ services:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
volumes:
- ./docker/peercfg:/etc/hyperledger/peercfg
- ${DOCKER_SOCK}:/host/var/run/docker.sock
- ${DOCKER_SOCK}:/host/var/run/docker.sock
2 changes: 1 addition & 1 deletion test-network/addOrg3/compose/docker/peercfg/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,4 +774,4 @@ metrics:
writeInterval: 10s

# prefix is prepended to all emitted statsd metrics
prefix:
prefix:
2 changes: 1 addition & 1 deletion test-network/addOrg3/compose/podman/peercfg/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,4 +774,4 @@ metrics:
writeInterval: 10s

# prefix is prepended to all emitted statsd metrics
prefix:
prefix:
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ services:
command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
volumes:
- ../fabric-ca/org3:/etc/hyperledger/fabric-ca-server
container_name: ca_org3
container_name: ca_org3
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ services:
depends_on:
- couchdb4
networks:
- test
- test
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ services:
ports:
- 11051:11051
networks:
- test
- test
2 changes: 1 addition & 1 deletion test-network/addOrg3/configtx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ Organizations:
Rule: "OR('Org3MSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('Org3MSP.peer')"
Rule: "OR('Org3MSP.peer')"
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,4 @@ intermediate:
certfiles:
client:
certfile:
keyfile:
keyfile:
2 changes: 1 addition & 1 deletion test-network/addOrg3/fabric-ca/registerEnroll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ function createOrg3 {
{ set +x; } 2>/dev/null

cp "${PWD}/../organizations/peerOrganizations/org3.example.com/msp/config.yaml" "${PWD}/../organizations/peerOrganizations/org3.example.com/users/Admin@org3.example.com/msp/config.yaml"
}
}
2 changes: 1 addition & 1 deletion test-network/addOrg3/org3-crypto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ PeerOrgs:
SANS:
- localhost
Users:
Count: 1
Count: 1
2 changes: 1 addition & 1 deletion test-network/compose/compose-bft-test-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,4 @@ services:
- 9051:9051
- 9445:9445
networks:
- test
- test
2 changes: 1 addition & 1 deletion test-network/compose/compose-ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ services:
- ../organizations/fabric-ca/ordererOrg:/etc/hyperledger/fabric-ca-server
container_name: ca_orderer
networks:
- test
- test
2 changes: 1 addition & 1 deletion test-network/compose/compose-couch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ services:
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=admin
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=adminpw
depends_on:
- couchdb1
- couchdb1
2 changes: 1 addition & 1 deletion test-network/compose/compose-test-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ services:
- 9051:9051
- 9445:9445
networks:
- test
- test
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ services:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
volumes:
- ./docker/peercfg:/etc/hyperledger/peercfg
- ${DOCKER_SOCK}:/host/var/run/docker.sock
- ${DOCKER_SOCK}:/host/var/run/docker.sock
2 changes: 1 addition & 1 deletion test-network/compose/docker/docker-compose-test-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ services:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fabric_test
volumes:
- ./docker/peercfg:/etc/hyperledger/peercfg
- ${DOCKER_SOCK}:/host/var/run/docker.sock
- ${DOCKER_SOCK}:/host/var/run/docker.sock
2 changes: 1 addition & 1 deletion test-network/compose/docker/peercfg/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,4 +774,4 @@ metrics:
writeInterval: 10s

# prefix is prepended to all emitted statsd metrics
prefix:
prefix:
2 changes: 1 addition & 1 deletion test-network/compose/podman/peercfg/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,4 +774,4 @@ metrics:
writeInterval: 10s

# prefix is prepended to all emitted statsd metrics
prefix:
prefix:
1 change: 0 additions & 1 deletion test-network/compose/podman/podman-compose-test-net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ services:
peer0.org2.example.com:
volumes:
- ./podman/peercfg:/etc/hyperledger/peercfg

2 changes: 1 addition & 1 deletion test-network/configtx/configtx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,4 @@ Profiles:
Organizations:
- *Org1
- *Org2
Capabilities: *ApplicationCapabilities
Capabilities: *ApplicationCapabilities
2 changes: 1 addition & 1 deletion test-network/monitordocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ docker run -d --rm --name="logspout" \
--network ${DOCKER_NETWORK} \
gliderlabs/logspout
sleep 3
curl http://127.0.0.1:${PORT}/logs
curl http://127.0.0.1:${PORT}/logs
1 change: 0 additions & 1 deletion test-network/network.config
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ CC_INVOKE_CONSTRUCTOR=''{\"Args\":[\"InitLedger\"]}''
# Default constructor for testing a chaincode query (-cciq)
CC_QUERY_CONSTRUCTOR=''{\"Args\":[\"GetAllAssets\"]}''


5 changes: 4 additions & 1 deletion test-network/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,10 @@ elif [ "$MODE" == "cc" ] && [ "$SUBCOMMAND" == "invoke" ]; then
invokeChaincode
elif [ "$MODE" == "cc" ] && [ "$SUBCOMMAND" == "query" ]; then
queryChaincode
elif [ "$MODE" == "renew" ]; then
infoln "Renewing certificates"
./scripts/renewCerts.sh
else
printHelp
exit 1
fi
fi
2 changes: 1 addition & 1 deletion test-network/organizations/ccp-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ PEERPEM=organizations/peerOrganizations/org2.example.com/tlsca/tlsca.org2.exampl
CAPEM=organizations/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem

echo "$(json_ccp $ORG $P0PORT $CAPORT $PEERPEM $CAPEM)" > organizations/peerOrganizations/org2.example.com/connection-org2.json
echo "$(yaml_ccp $ORG $P0PORT $CAPORT $PEERPEM $CAPEM)" > organizations/peerOrganizations/org2.example.com/connection-org2.yaml
echo "$(yaml_ccp $ORG $P0PORT $CAPORT $PEERPEM $CAPEM)" > organizations/peerOrganizations/org2.example.com/connection-org2.yaml
2 changes: 1 addition & 1 deletion test-network/organizations/ccp-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ certificateAuthorities:
- |
${CAPEM}
httpOptions:
verify: false
verify: false
2 changes: 1 addition & 1 deletion test-network/organizations/cfssl/registerEnroll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,4 @@ function generate_orderer_certs() {
mv "$CERT_DIR/orderers/$USER/tls/server.pem" "$CERT_DIR/orderers/$USER/tls/server.crt"
mv "$CERT_DIR/orderers/$USER/tls/server-key.pem" "$CERT_DIR/orderers/$USER/tls/server.key"
rm "$PWD/organizations/cfssl/orderer-${USER}.json"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ PeerOrgs:
# Count: The number of user accounts _in addition_ to Admin
# ---------------------------------------------------------------------------
Users:
Count: 1
Count: 1
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ PeerOrgs:
# Count: The number of user accounts _in addition_ to Admin
# ---------------------------------------------------------------------------
Users:
Count: 1
Count: 1
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,4 @@ intermediate:
certfiles:
client:
certfile:
keyfile:
keyfile:
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,4 @@ intermediate:
certfiles:
client:
certfile:
keyfile:
keyfile:
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,4 @@ intermediate:
certfiles:
client:
certfile:
keyfile:
keyfile:
2 changes: 1 addition & 1 deletion test-network/organizations/fabric-ca/registerEnroll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,4 @@ function createOrderer() {
{ set +x; } 2>/dev/null

cp "${PWD}/organizations/ordererOrganizations/example.com/msp/config.yaml" "${PWD}/organizations/ordererOrganizations/example.com/users/Admin@example.com/msp/config.yaml"
}
}
2 changes: 1 addition & 1 deletion test-network/prometheus-grafana/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ services:
networks:
default:
external: true
name: fabric_test
name: fabric_test
2 changes: 1 addition & 1 deletion test-network/scripts/configUpdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ signConfigtxAsPeerOrg() {
set -x
peer channel signconfigtx -f "${CONFIGTXFILE}"
{ set +x; } 2>/dev/null
}
}
2 changes: 1 addition & 1 deletion test-network/scripts/createChannel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ setAnchorPeer 1
infoln "Setting anchor peer for org2..."
setAnchorPeer 2

successln "Channel '$CHANNEL_NAME' joined"
successln "Channel '$CHANNEL_NAME' joined"
2 changes: 1 addition & 1 deletion test-network/scripts/deployCC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ else
chaincodeInvokeInit 1 2
fi

exit 0
exit 0
2 changes: 1 addition & 1 deletion test-network/scripts/deployCCAAS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,4 @@ else
chaincodeInvokeInit 1 2
fi

exit 0
exit 0
2 changes: 1 addition & 1 deletion test-network/scripts/envVar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ verifyResult() {
if [ $1 -ne 0 ]; then
fatalln "$2"
fi
}
}
2 changes: 1 addition & 1 deletion test-network/scripts/org3-scripts/joinChannel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ infoln "Setting anchor peer for org3..."
setAnchorPeer 3

successln "Channel '$CHANNEL_NAME' joined"
successln "Org3 peer successfully added to network"
successln "Org3 peer successfully added to network"
2 changes: 1 addition & 1 deletion test-network/scripts/org3-scripts/updateChannelConfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ set -x
peer channel update -f ${TEST_NETWORK_HOME}/channel-artifacts/org3_update_in_envelope.pb -c ${CHANNEL_NAME} -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "$ORDERER_CA"
{ set +x; } 2>/dev/null

successln "Config transaction to add org3 to network submitted"
successln "Config transaction to add org3 to network submitted"
2 changes: 1 addition & 1 deletion test-network/scripts/packageCC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ packageChaincode() {
## package the chaincode
packageChaincode

exit 0
exit 0
2 changes: 1 addition & 1 deletion test-network/scripts/pkgcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ tar -C "$tempdir/pkg" -czf "$label.tgz" metadata.json code.tar.gz
rm -Rf "$tempdir"

packageid="${label}:$(shasum -a 256 audit-trail.tgz | cut -d ' ' -f1)"
echo ${packageid}
echo ${packageid}
Loading