fix passing 'testing_mode' through neon_local

This commit is contained in:
Heikki Linnakangas
2022-12-08 15:27:13 +02:00
parent 2689e35108
commit 809a3ad0b4
2 changed files with 6 additions and 0 deletions

View File

@@ -156,6 +156,8 @@ pub struct PageServerConf {
// jwt auth token used for communication with pageserver
pub auth_token: String,
pub testing_mode: bool,
}
impl Default for PageServerConf {
@@ -166,6 +168,7 @@ impl Default for PageServerConf {
listen_http_addr: String::new(),
auth_type: AuthType::Trust,
auth_token: String::new(),
testing_mode: false,
}
}
}

View File

@@ -141,6 +141,9 @@ impl PageServerNode {
init_config_overrides.push(&listen_http_addr_param);
init_config_overrides.push(&listen_pg_addr_param);
init_config_overrides.push(&broker_endpoints_param);
if self.env.pageserver.testing_mode {
init_config_overrides.push("testing_mode=true");
}
if let Some(broker_etcd_prefix_param) = broker_etcd_prefix_param.as_deref() {
init_config_overrides.push(broker_etcd_prefix_param);