mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 18:37:46 +08:00
Add tunnel security config fields
This commit is contained in:
@@ -987,6 +987,8 @@ mod tests {
|
||||
aether_url: gateway_base_url.clone(),
|
||||
management_token: "token".to_string(),
|
||||
node_name: Some("node-recovery".to_string()),
|
||||
tunnel_security: None,
|
||||
tunnel_encryption_key: None,
|
||||
},
|
||||
)];
|
||||
let (shutdown_tx, shutdown_rx) = watch::channel(false);
|
||||
@@ -1289,6 +1291,8 @@ mod tests {
|
||||
aether_url: state.config.aether_url.clone(),
|
||||
management_token: state.config.management_token.clone(),
|
||||
node_name: Some(state.config.node_name.clone()),
|
||||
tunnel_security: Some(state.config.tunnel_security),
|
||||
tunnel_encryption_key: state.config.tunnel_encryption_key.clone(),
|
||||
};
|
||||
let client = Arc::new(AetherClient::new(
|
||||
&state.config,
|
||||
@@ -1311,6 +1315,8 @@ mod tests {
|
||||
management_token: "token".to_string(),
|
||||
public_ip: None,
|
||||
node_name: "tunnel-test".to_string(),
|
||||
tunnel_security: crate::config::TunnelSecurity::Off,
|
||||
tunnel_encryption_key: None,
|
||||
node_region: None,
|
||||
heartbeat_interval: 1,
|
||||
allowed_ports: vec![80, 443],
|
||||
|
||||
Reference in New Issue
Block a user