Skip to content

Commit

Permalink
build: skip TLS postgres setup
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Sep 30, 2024
1 parent c544239 commit c21a935
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions database/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func TestPostgres_Basic(t *testing.T) {
}

func TestPostgres_TLS(t *testing.T) {
t.Skip()

if testing.Short() {
t.Skip("-short flag enabled")
}
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
restart: always
ports:
- "5432:5432"
command: -c ssl=on -c ssl_cert_file=/opt/moov/certs/server.crt -c ssl_key_file=/opt/moov/certs/server.key -c ssl_ca_file=/opt/moov/certs/root.crt
# command: -c ssl=on -c ssl_cert_file=/opt/moov/certs/server.crt -c ssl_key_file=/opt/moov/certs/server.key -c ssl_ca_file=/opt/moov/certs/root.crt
healthcheck:
test: ["CMD-SHELL", "pg_isready -U moov"]
interval: 5s
Expand All @@ -45,11 +45,11 @@ services:
- POSTGRES_PASSWORD=moov
networks:
- intranet
volumes:
- ./testcerts/root.crt:/opt/moov/certs/root.crt
- ./testcerts/server.crt:/opt/moov/certs/server.crt
- ./testcerts/server.key:/opt/moov/certs/server.key
- ./database/testdata/owncerts.sh:/docker-entrypoint-initdb.d/owncerts.sh
# volumes:
# - ./testcerts/root.crt:/opt/moov/certs/root.crt
# - ./testcerts/server.crt:/opt/moov/certs/server.crt
# - ./testcerts/server.key:/opt/moov/certs/server.key
# - ./database/testdata/owncerts.sh:/docker-entrypoint-initdb.d/owncerts.sh

networks:
intranet:

0 comments on commit c21a935

Please sign in to comment.