Always use testbed mode for testing.

This commit is contained in:
Tim Bruijnzeels
2020-10-26 16:09:42 +01:00
parent 1ed4b04675
commit 7686072c01
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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());