release: cut community v0.2.0
This commit is contained in:
@@ -666,6 +666,7 @@ impl AdminService {
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub fn new_with_runtime(
|
||||
registry: PostgresRegistry,
|
||||
storage_root: PathBuf,
|
||||
@@ -687,10 +688,6 @@ impl AdminService {
|
||||
&self.auth_settings
|
||||
}
|
||||
|
||||
pub fn identity_provider(&self) -> Option<&Arc<dyn IdentityProvider>> {
|
||||
self.identity_provider.as_ref()
|
||||
}
|
||||
|
||||
pub fn policy_engine(&self) -> &Arc<dyn PolicyEngine> {
|
||||
&self.policy_engine
|
||||
}
|
||||
@@ -735,21 +732,25 @@ impl AdminServiceBuilder {
|
||||
self
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn with_policy_engine(mut self, policy_engine: Arc<dyn PolicyEngine>) -> Self {
|
||||
self.policy_engine = Some(policy_engine);
|
||||
self
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn with_audit_sink(mut self, audit_sink: Arc<dyn AuditSink>) -> Self {
|
||||
self.audit_sink = Some(audit_sink);
|
||||
self
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn with_token_issuer(mut self, token_issuer: Arc<dyn MachineTokenIssuer>) -> Self {
|
||||
self.token_issuer = Some(token_issuer);
|
||||
self
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn with_capability_profile(
|
||||
mut self,
|
||||
capability_profile: Arc<dyn CapabilityProfile>,
|
||||
@@ -4418,6 +4419,7 @@ fn validate_response_cache_policy(
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[allow(clippy::items_after_test_module)]
|
||||
mod tests {
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user