优化部署

This commit is contained in:
xiuting.xu
2026-05-12 15:23:09 +08:00
parent a4d674190a
commit 4c6b441753
18 changed files with 273 additions and 69 deletions

View File

@@ -16,6 +16,7 @@ use tokio_rustls::TlsConnector;
use rpki::rtr::cache::{RtrCacheBuilder, SessionIds, SharedRtrCache};
use rpki::rtr::payload::Timing;
use rpki::rtr::pdu::{CacheResponse, EndOfDataV1, ResetQuery};
use rpki::rtr::server::ssh::SshAuthMode;
use rpki::rtr::server::RtrService;
use russh::client;
use russh::keys;
@@ -201,6 +202,7 @@ async fn unified_server_ssh_opens_listener_and_emits_banner() {
&authorized_keys_path,
"rpki-rtr",
"rpki-rtr",
SshAuthMode::Key,
None,
);
wait_for_port(ssh_addr).await;
@@ -249,6 +251,7 @@ async fn unified_server_ssh_accepts_password_when_configured() {
&authorized_keys_path,
"rpki-rtr",
"rpki-rtr",
SshAuthMode::Both,
Some("test-password"),
);
wait_for_port(ssh_addr).await;
@@ -323,6 +326,7 @@ async fn unified_server_ssh_rejects_password_when_not_configured() {
&authorized_keys_path,
"rpki-rtr",
"rpki-rtr",
SshAuthMode::Key,
None,
);
wait_for_port(ssh_addr).await;