This commit is contained in:
parent
df85bad9a4
commit
1183ba0d73
@ -2,4 +2,4 @@ pipeline:
|
|||||||
test:
|
test:
|
||||||
image: rust
|
image: rust
|
||||||
commands:
|
commands:
|
||||||
- cargo test
|
- cargo test
|
||||||
|
@ -6,14 +6,13 @@ use std::fmt::Debug;
|
|||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
use std::path::{self, PathBuf};
|
use std::path::{self, PathBuf};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::{SystemTime, UNIX_EPOCH};
|
use std::time::SystemTime;
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
|
|
||||||
use axum::body;
|
use axum::body;
|
||||||
use axum::extract::rejection::QueryRejection;
|
use axum::extract::rejection::QueryRejection;
|
||||||
use axum::extract::{Query, State};
|
use axum::extract::{Query, State};
|
||||||
use chrono::Duration;
|
|
||||||
|
|
||||||
use ssh_cert_dist_common::*;
|
use ssh_cert_dist_common::*;
|
||||||
|
|
||||||
@ -475,7 +474,8 @@ mod tests {
|
|||||||
user_key,
|
user_key,
|
||||||
unix_time(SystemTime::now()),
|
unix_time(SystemTime::now()),
|
||||||
unix_time(SystemTime::now() + validity),
|
unix_time(SystemTime::now() + validity),
|
||||||
);
|
)
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
builder
|
builder
|
||||||
.valid_principal("git")
|
.valid_principal("git")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user