File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed
.github/actions/setup-test
tasks/test/integration/lang Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1414 - name : Setup Rust cache
1515 uses : Swatinem/rust-cache@v2
1616 with :
17- cache-provider : ${{ inputs.provider }}
18- shared-key : ${{ inputs.key }}
1917 cache-all-crates : true
18+ - name : Set up Docker Compose
19+ uses : docker/setup-compose-action@v1
20+ with :
21+ version : latest
2022 - uses : jdx/mise-action@v2
2123 with :
2224 version : 2025.1.0 # [default: latest] mise version to install
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ CS_DATABASE__PORT = "5532"
2828# CS_DATABASE__PORT = "5617"
2929
3030# Default configuration for dev cipherstash-proxy run using 'mise run proxy:up'
31- CS_PROXY__HOST = " proxy"
31+ # CS_PROXY__HOST = "proxy"
32+ CS_PROXY__HOST = " host.docker.internal"
33+
3234# Misc
3335DOCKER_CLI_HINTS = " false" # Please don't show us What's Next.
3436
@@ -387,7 +389,14 @@ echo '###############################################'
387389echo '# Test: Language-specific integration'
388390echo '###############################################'
389391echo
392+
393+ mise --env tls run postgres:up --extra-args "--detach --wait"
394+ mise --env tls run postgres:setup
395+ mise --env tls run proxy:down proxy-tls
396+ mise --env tls run proxy:up --extra-args "--detach --wait"
397+
390398mise run test:integration:lang:golang
399+
391400mise run test:integration:lang:python
392401
393402# Commented out pending fix of the root cause of the test flake
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ services:
7171 - CS_LOG__CONTEXT_LEVEL=${CS_LOG__CONTEXT_LEVEL:-debug}
7272 networks :
7373 - postgres
74+ extra_hosts :
75+ - host.docker.internal:host-gateway
7476 deploy :
7577 resources :
7678 limits :
@@ -114,6 +116,8 @@ services:
114116 - ./tls/server.key:/etc/cipherstash-proxy/server.key
115117 networks :
116118 - postgres
119+ extra_hosts :
120+ - host.docker.internal:host-gateway
117121
118122 python :
119123 image : test/python
Original file line number Diff line number Diff line change 55
66set -e
77
8- mise --env tls run postgres:up --extra-args " --detach --wait"
9- mise --env tls run postgres:setup
10- mise --env tls run proxy:down proxy-tls
11- mise --env tls run proxy:up --extra-args " --detach --wait"
128
139source " $( dirname " ${BASH_SOURCE[0]} " ) /../url_encode.sh"
1410
1511encoded_password=$( urlencode " ${CS_DATABASE__PASSWORD} " )
1612
1713connection_url=postgresql://${CS_DATABASE__USERNAME} :${encoded_password} @proxy:6432/${CS_DATABASE__NAME}
14+
1815network_id=$( docker network ls --filter name=tests_postgres --quiet)
1916platform=" linux/$( uname -m | sed ' s/x86_64/amd64/' ) "
2017
You can’t perform that action at this time.
0 commit comments