pinakes-server: update tests with plugin configuration
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I320426c6b2cc9119a44570b4534e08d66a6a6964
This commit is contained in:
parent
e9c5390c45
commit
ce9c27d410
2 changed files with 15 additions and 8 deletions
|
|
@ -186,6 +186,7 @@ async fn setup_app() -> axum::Router {
|
||||||
cache: Arc::new(CacheLayer::new(60)),
|
cache: Arc::new(CacheLayer::new(60)),
|
||||||
scheduler: Arc::new(scheduler),
|
scheduler: Arc::new(scheduler),
|
||||||
plugin_manager: None,
|
plugin_manager: None,
|
||||||
|
plugin_pipeline: None,
|
||||||
transcode_service: None,
|
transcode_service: None,
|
||||||
managed_storage: None,
|
managed_storage: None,
|
||||||
chunked_upload_manager: None,
|
chunked_upload_manager: None,
|
||||||
|
|
@ -262,6 +263,7 @@ async fn setup_app_with_auth() -> (axum::Router, String, String, String) {
|
||||||
cache: Arc::new(CacheLayer::new(60)),
|
cache: Arc::new(CacheLayer::new(60)),
|
||||||
scheduler: Arc::new(scheduler),
|
scheduler: Arc::new(scheduler),
|
||||||
plugin_manager: None,
|
plugin_manager: None,
|
||||||
|
plugin_pipeline: None,
|
||||||
transcode_service: None,
|
transcode_service: None,
|
||||||
managed_storage: None,
|
managed_storage: None,
|
||||||
chunked_upload_manager: None,
|
chunked_upload_manager: None,
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,10 @@ async fn setup_app_with_plugins()
|
||||||
allow_unsigned: true,
|
allow_unsigned: true,
|
||||||
max_concurrent_ops: 2,
|
max_concurrent_ops: 2,
|
||||||
plugin_timeout_secs: 10,
|
plugin_timeout_secs: 10,
|
||||||
|
timeouts:
|
||||||
|
pinakes_core::config::PluginTimeoutConfig::default(),
|
||||||
|
max_consecutive_failures: 5,
|
||||||
|
trusted_keys: vec![],
|
||||||
};
|
};
|
||||||
|
|
||||||
let plugin_manager =
|
let plugin_manager =
|
||||||
|
|
@ -145,6 +149,7 @@ async fn setup_app_with_plugins()
|
||||||
cache: Arc::new(CacheLayer::new(60)),
|
cache: Arc::new(CacheLayer::new(60)),
|
||||||
scheduler: Arc::new(scheduler),
|
scheduler: Arc::new(scheduler),
|
||||||
plugin_manager: Some(plugin_manager.clone()),
|
plugin_manager: Some(plugin_manager.clone()),
|
||||||
|
plugin_pipeline: None,
|
||||||
transcode_service: None,
|
transcode_service: None,
|
||||||
managed_storage: None,
|
managed_storage: None,
|
||||||
chunked_upload_manager: None,
|
chunked_upload_manager: None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue