File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
tests/tasks/test/integration Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ docker exec -i postgres${CONTAINER_SUFFIX} psql postgresql://${CS_DATABASE__USER
1515SELECT 1;
1616EOF
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
2020SELECT 1;
2121EOF
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
2525SELECT 1;
2626EOF
2727
2828# Connect without TLS
2929set +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 ) "
3131retval=$?
3232if 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
3939fi
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
4343SELECT 1;
4444EOF
4545
You can’t perform that action at this time.
0 commit comments