Skip to content

Commit

Permalink
Update DB name.
Browse files Browse the repository at this point in the history
  • Loading branch information
arijitAD committed Oct 11, 2021
1 parent 74a49da commit 8a502b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
image: vulcanize/dapptools:v0.30.0-v1.10.9-statediff-0.0.27
environment:
DB_USER: vdbm
DB_NAME: vulcanize_public
DB_NAME: vulcanize_testing
DB_HOST: ipld-eth-db
DB_PORT: 5432
DB_PASSWORD: password
Expand All @@ -21,7 +21,7 @@ services:
image: vulcanize/ipld-eth-db:v0.2.0
environment:
POSTGRES_USER: "vdbm"
POSTGRES_DB: "vulcanize_public"
POSTGRES_DB: "vulcanize_testing"
POSTGRES_PASSWORD: "password"
volumes:
- vdb_db_eth_server:/var/lib/postgresql/data
Expand All @@ -44,7 +44,7 @@ services:
ETH_SERVER_HTTPPATH: 0.0.0.0:8081
VDB_COMMAND: "serve"
ETH_CHAIN_CONFIG: "/tmp/chain.json"
DATABASE_NAME: "vulcanize_public"
DATABASE_NAME: "vulcanize_testing"
DATABASE_HOSTNAME: "ipld-eth-db"
DATABASE_PORT: 5432
DATABASE_USER: "vdbm"
Expand Down
2 changes: 1 addition & 1 deletion pkg/eth/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func SetupDB() (*postgres.DB, error) {
User: "vdbm",
Password: "password",
Hostname: "localhost",
Name: "vulcanize_public",
Name: "vulcanize_testing",
Port: 8077,
})
return postgres.NewDB(uri, postgres.ConnectionConfig{}, node.Info{})
Expand Down
2 changes: 1 addition & 1 deletion pkg/graphql/graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func SetupDB() (*postgres.DB, error) {
User: "vdbm",
Password: "password",
Hostname: "localhost",
Name: "vulcanize_public",
Name: "vulcanize_testing",
Port: 8077,
})
return postgres.NewDB(uri, postgres.ConnectionConfig{}, node.Info{})
Expand Down
5 changes: 4 additions & 1 deletion scripts/run_unit_test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
docker-compose -f docker-compose.test.yml -f docker-compose.yml up -d db
# Clear up existing docker images and volume.
docker-compose down --remove-orphans --volumes

docker-compose -f docker-compose.test.yml -f docker-compose.yml up -d ipld-eth-db
PGPASSWORD=password DATABASE_USER=vdbm DATABASE_PORT=8077 DATABASE_PASSWORD=password DATABASE_HOSTNAME=127.0.0.1 make test

0 comments on commit 8a502b7

Please sign in to comment.