Skip to content

Commit 4d62bdd

Browse files
committed
fix: update tests for the new container name
1 parent 7f6cb58 commit 4d62bdd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/tasks/test/integration/psql-tls.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://${CS_DATABASE__USER
1515
SELECT 1;
1616
EOF
1717

18-
# Connect to the proxy
19-
docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://cipherstash:${encoded_password}@proxy:6432/cipherstash <<-EOF
18+
# Connect to the proxy-tls
19+
docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://cipherstash:${encoded_password}@proxy-tls:6432/cipherstash <<-EOF
2020
SELECT 1;
2121
EOF
2222

23-
# Connect to the proxy forcing TLS
24-
docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://cipherstash:${encoded_password}@proxy:6432/cipherstash?sslmode=require <<-EOF
23+
# Connect to the proxy-tls forcing TLS
24+
docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://cipherstash:${encoded_password}@proxy-tls:6432/cipherstash?sslmode=require <<-EOF
2525
SELECT 1;
2626
EOF
2727

2828
# Connect without TLS
2929
set +e
30-
OUTPUT="$(docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://cipherstash:${encoded_password}@proxy:6432/cipherstash?sslmode=disable --command 'SELECT 1' 2>&1)"
30+
OUTPUT="$(docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://cipherstash:${encoded_password}@proxy-tls:6432/cipherstash?sslmode=disable --command 'SELECT 1' 2>&1)"
3131
retval=$?
3232
if echo ${OUTPUT} | grep -v 'Transport Layer Security (TLS) connection is required'; then
3333
echo "error: did not see string in output: \"Transport Layer Security (TLS) connection is required\""
@@ -39,7 +39,7 @@ if [ $retval -ne 2 ]; then # 2 is the return value when psql fails to connect wi
3939
fi
4040

4141
# Attempt with an invalid password
42-
docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://cipherstash:not-the-p%40ssword@proxy:6432/cipherstash <<-EOF
42+
docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://cipherstash:not-the-p%40ssword@proxy-tls:6432/cipherstash <<-EOF
4343
SELECT 1;
4444
EOF
4545

0 commit comments

Comments
 (0)