File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,16 @@ mise --env tls run test:wait_for_postgres_to_quack --port 6432 --max-retries 20
344344cargo nextest run --no-fail-fast --nocapture -E 'package(cipherstash-proxy-integration)'
345345mise --env tls run proxy:down
346346
347+ echo
348+ echo '###############################################'
349+ echo '# Test: Showcase'
350+ echo '###############################################'
351+ echo
352+ mise --env tls run proxy:up proxy-tls --extra-args "--detach --wait"
353+ mise --env tls run test:wait_for_postgres_to_quack --port 6432 --max-retries 20 --tls
354+ RUST_BACKTRACE=full cargo run -p showcase
355+ mise --env tls run proxy:down
356+
347357echo
348358echo '###############################################'
349359echo '# Test: Language-specific integration'
Original file line number Diff line number Diff line change @@ -14,11 +14,7 @@ pub const PG_V17_TLS: u16 = 5617;
1414
1515static INIT : Once = Once :: new ( ) ;
1616
17- pub async fn reset_schema_to ( schema : & ' static str ) {
18- let port = std:: env:: var ( "CS_DATABASE__PORT" )
19- . map ( |s| s. parse ( ) . unwrap ( ) )
20- . unwrap_or ( PG_LATEST ) ;
21-
17+ pub async fn reset_schema_to ( schema : & ' static str , port : u16 ) {
2218 let client = connect_with_tls ( port) . await ;
2319 client. simple_query ( schema) . await . unwrap ( ) ;
2420}
Original file line number Diff line number Diff line change 1- use crate :: common:: reset_schema_to;
1+ use crate :: common:: { reset_schema_to, PROXY } ;
22
33const SCHEMA : & str = include_str ! ( "./schema.sql" ) ;
44
55pub async fn setup_schema ( ) {
6- reset_schema_to ( SCHEMA ) . await
6+ reset_schema_to ( SCHEMA , PROXY ) . await
77}
You can’t perform that action at this time.
0 commit comments