Skip to content

Commit

Permalink
Enable TLS FV Tests
Browse files Browse the repository at this point in the history
- set flag in CI
- add in paths to orgs's certs
- adding in missing logging container to docker-compose

Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
  • Loading branch information
mbwhite authored and jt-nti committed Mar 18, 2021
1 parent 68cca50 commit c62883f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ stages:
displayName: 'Get the latest master docker images'
- script: |
set -ev
export TLS=true
node common/scripts/install-run-rush.js start-fabric
node common/scripts/install-run-rush.js start-verdaccio # script will check for the ci variable and use built images
docker images | grep hyperledger && docker ps -a
Expand Down
3 changes: 2 additions & 1 deletion test/fv/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const fs = require('fs');
const path = require('path');
const ip = require('ip');


const org1CA = '/etc/hyperledger/config/crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem';
const org2CA = '/etc/hyperledger/config/crypto-config/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem';
const ordererCA = '/etc/hyperledger/config/crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem';
const tls = process.env.TLS && process.env.TLS.toLowerCase() === 'true' ? true : false;
const getTLSArgs = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,12 @@ services:
- /var/run/:/host/var/run/
depends_on:
- peer0.org2.example.com

logging:
container_name: logging
image: gliderlabs/logspout
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./logs:/logs
ports:
- 17056:80

0 comments on commit c62883f

Please sign in to comment.