Fix more tests
This commit is contained in:
parent
bd96581c6a
commit
fa85fe7fd8
@ -233,7 +233,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn account_key() {
|
fn account_key() {
|
||||||
let tmp_dir = TempDir::new("domain_acme_store_account_key").unwrap();
|
let tmp_dir = TempDir::new("domain_acme_store_account_key").unwrap();
|
||||||
let store = new(tmp_dir.path()).expect("store created");
|
let store = FSStore::new(tmp_dir.path()).expect("store created");
|
||||||
|
|
||||||
assert!(matches!(
|
assert!(matches!(
|
||||||
store.get_account_key(),
|
store.get_account_key(),
|
||||||
@ -255,7 +255,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn http01_challenge_key() {
|
fn http01_challenge_key() {
|
||||||
let tmp_dir = TempDir::new("domain_acme_store_http01_challenge_key").unwrap();
|
let tmp_dir = TempDir::new("domain_acme_store_http01_challenge_key").unwrap();
|
||||||
let store = new(tmp_dir.path()).expect("store created");
|
let store = FSStore::new(tmp_dir.path()).expect("store created");
|
||||||
|
|
||||||
let token = "foo".to_string();
|
let token = "foo".to_string();
|
||||||
let key = "bar".to_string();
|
let key = "bar".to_string();
|
||||||
|
@ -116,7 +116,7 @@ impl Store for FSStore {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::{Store, *};
|
||||||
use crate::domain;
|
use crate::domain;
|
||||||
use crate::origin::Descr;
|
use crate::origin::Descr;
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ mod tests {
|
|||||||
fn basic() {
|
fn basic() {
|
||||||
let tmp_dir = TempDir::new("domain_config_store").unwrap();
|
let tmp_dir = TempDir::new("domain_config_store").unwrap();
|
||||||
|
|
||||||
let store = new(tmp_dir.path()).expect("store created");
|
let store = FSStore::new(tmp_dir.path()).expect("store created");
|
||||||
|
|
||||||
let domain = domain::Name::from_str("foo.com").expect("domain parsed");
|
let domain = domain::Name::from_str("foo.com").expect("domain parsed");
|
||||||
|
|
||||||
|
@ -323,7 +323,7 @@ impl super::Store for FSStore {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::origin::{self, store};
|
use crate::origin::{self, store, store::Store};
|
||||||
use tempdir::TempDir;
|
use tempdir::TempDir;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user