mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 08:52:56 +00:00
fix passing 'testing_mode' through neon_local
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user