mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-10-01 13:54:53 +02:00
Always use testbed mode for testing.
This commit is contained in:
@@ -401,7 +401,7 @@ impl Config {
|
||||
let use_ta = true;
|
||||
let repo_enabled = true;
|
||||
let repo_retain_old_seconds = 1;
|
||||
let testbed_enabled = false;
|
||||
let testbed_enabled = true;
|
||||
let https_mode = HttpsMode::Generate;
|
||||
let data_dir = data_dir.clone();
|
||||
let archive_threshold_days = Some(0);
|
||||
|
||||
+2
-1
@@ -31,7 +31,7 @@ use crate::commons::crypto::SignSupport;
|
||||
use crate::commons::remote::rfc8183;
|
||||
use crate::commons::remote::rfc8183::{ChildRequest, RepositoryResponse};
|
||||
use crate::commons::util::httpclient;
|
||||
use crate::constants::{KRILL_ENV_TEST, KRILL_ENV_TEST_ANN, KRILL_ENV_TEST_UNIT_DATA};
|
||||
use crate::constants::{KRILL_ENV_TEST, KRILL_ENV_TESTBED_ENABLED, KRILL_ENV_TEST_ANN, KRILL_ENV_TEST_UNIT_DATA};
|
||||
use crate::daemon::ca::{ta_handle, ResourceTaggedAttestation, RtaContentRequest, RtaPrepareRequest};
|
||||
use crate::daemon::http::server;
|
||||
|
||||
@@ -64,6 +64,7 @@ pub async fn start_krill() -> PathBuf {
|
||||
env::set_var(KRILL_ENV_TEST_UNIT_DATA, dir.to_string_lossy().to_string());
|
||||
env::set_var(KRILL_ENV_TEST_ANN, "1");
|
||||
env::set_var(KRILL_ENV_TEST, "1");
|
||||
env::set_var(KRILL_ENV_TESTBED_ENABLED, "1");
|
||||
|
||||
tokio::spawn(server::start());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user