Skip to content

Commit 2db18e0

Browse files
refactor(crypto): route new host proxy tests through facade
Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
1 parent 1627dff commit 2db18e0

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/openshell-driver-mxc/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ openshell-supervisor-network = { path = "../openshell-supervisor-network" }
3636
windows = { workspace = true }
3737

3838
[dev-dependencies]
39+
openshell-crypto = { path = "../openshell-crypto" }
3940
tokio = { workspace = true }
4041
# tempfile is not a workspace dependency; 3.27 is already resolved in Cargo.lock.
4142
tempfile = "3"
@@ -47,7 +48,6 @@ openshell-policy = { path = "../openshell-policy" }
4748
# base64 and serde_json are already [dependencies] but dev-dependency resolution
4849
# is independent; explicit entries make them visible to integration tests.
4950
base64 = { workspace = true }
50-
rustls = { workspace = true }
5151
serde_json = { workspace = true }
5252
# Used by the drift guard test (handled_fields_inventory) to parse YAML into a
5353
# generic serde_json::Value for key enumeration.

‎crates/openshell-driver-mxc/tests/wxc_exec_real.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ async fn pc_https_egress_reads_injected_ca_bundle() {
767767
..Default::default()
768768
};
769769

770-
let _ = rustls::crypto::aws_lc_rs::default_provider().install_default();
770+
openshell_crypto::tls::ensure_default_provider();
771771
let config = MxcComputeConfig {
772772
wxc_exec_path: wxc.to_string_lossy().into_owned(),
773773
egress_proxy: true,

‎crates/openshell-supervisor-network/src/host.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ mod tests {
294294

295295
#[tokio::test]
296296
async fn starts_loopback_proxy_and_serves_policy_local() {
297-
let _ = rustls::crypto::aws_lc_rs::default_provider().install_default();
297+
openshell_crypto::tls::ensure_default_provider();
298298
let binary = tempfile::NamedTempFile::new().unwrap();
299299
std::fs::write(binary.path(), b"agent").unwrap();
300300

0 commit comments

Comments
 (0)