Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit e36621e

Browse files
v2.2.0 release (#57)
- Test against Fabric 2.2 - Use CouchDB 3.1 (to match Fabric 2.2 environment) Signed-off-by: Mark S. Lewis <[email protected]>
1 parent 811dff6 commit e36621e

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>org.hyperledger.fabric</groupId>
99
<artifactId>fabric-gateway-java</artifactId>
10-
<version>2.1.4</version>
10+
<version>2.2.0</version>
1111
<packaging>jar</packaging>
1212

1313
<name>fabric-gateway-java</name>
@@ -86,7 +86,7 @@
8686
<dependency>
8787
<groupId>org.hyperledger.fabric-sdk-java</groupId>
8888
<artifactId>fabric-sdk-java</artifactId>
89-
<version>[2.1.4,2.2.0)</version>
89+
<version>[2.2.0,2.3.0)</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>org.mockito</groupId>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
DOCKER_IMG_TAG=:2.1
2-
FABRIC_CA_TAG=:latest
3-
THIRDPARTY_IMG_TAG=:0.4.16
1+
DOCKER_IMG_TAG=:2.2
2+
FABRIC_CA_TAG=:1.4
3+
COUCH_DB_TAG=:3.1

src/test/fixtures/docker-compose/docker-compose-base.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ services:
9292
# # bridge network as the peers
9393
# # https://docs.docker.com/compose/networking/
9494
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=node_default
95+
96+
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=admin
97+
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=adminpw
9598
working_dir: /opt/gopath/src/github.com/hyperledger/fabric
9699
command: peer node start
97100
volumes:
@@ -124,4 +127,7 @@ services:
124127

125128
couchdb:
126129
container_name: couchdb
127-
image: hyperledger/fabric-couchdb${THIRDPARTY_IMG_TAG}
130+
image: couchdb${COUCH_DB_TAG}
131+
environment:
132+
- COUCHDB_USER=admin
133+
- COUCHDB_PASSWORD=adminpw

src/test/java/scenario/ScenarioSteps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class ScenarioSteps implements En {
7070
private static final long EVENT_TIMEOUT_SECONDS = 30;
7171
private static final Set<String> runningChaincodes = new HashSet<>();
7272
private static boolean channelsJoined = false;
73-
private static final String COUCHDB_SERVER_URL = "http://localhost:5984";
73+
private static final String COUCHDB_SERVER_URL = "http://admin:adminpw@localhost:5984";
7474
private static final String DOCKER_COMPOSE_TLS_FILE = "docker-compose-tls.yaml";
7575
private static final String DOCKER_COMPOSE_FILE = "docker-compose.yaml";
7676
private static final Path DOCKER_COMPOSE_DIR = Paths.get("src", "test", "fixtures", "docker-compose").toAbsolutePath();

0 commit comments

Comments
 (0)