@@ -7382,14 +7382,15 @@ mod tests {
73827382 use super :: {
73837383 AdminConfig , AdminHealthConfig , AdminHealthResponseMode , AdminRemoteTransportMode ,
73847384 AdminSelfHealingConfig , AdminTransportConfig , ByteSize , CacheConfig , CacheDiskBackend ,
7385- CacheDiskEncryptionProvider , CacheKeyPart , CachePeerConfig , CachePeerFillConfig ,
7386- CachePurgerConfig , CacheStaleErrorKind , Config , ConfigError , ConfigLoadError ,
7387- HeaderPolicyConfig , LoggingConfig , MetricsConfig , ProxyConfig , ServerConfig ,
7388- ServerLimitsConfig , StaticCertificateConfig , TlsAlpnPolicy , TlsCipherSuite ,
7389- TlsCurvePreference , TlsPolicyProfile , TlsProtocolVersion , TracingConfig , VhostConfig ,
7390- VhostHeaderPolicyConfig , VhostTlsConfig , WebConfig , normalize_host, normalize_host_pattern,
7391- valid_dynamic_header_variable, validate_dynamic_header_template,
7385+ CacheDiskEncryptionProvider , CacheKeyPart , CachePurgerConfig , CacheStaleErrorKind , Config ,
7386+ ConfigError , ConfigLoadError , HeaderPolicyConfig , LoggingConfig , MetricsConfig ,
7387+ ProxyConfig , ServerConfig , ServerLimitsConfig , StaticCertificateConfig , TlsAlpnPolicy ,
7388+ TlsCipherSuite , TlsCurvePreference , TlsPolicyProfile , TlsProtocolVersion , TracingConfig ,
7389+ VhostConfig , VhostHeaderPolicyConfig , VhostTlsConfig , WebConfig , normalize_host,
7390+ normalize_host_pattern, valid_dynamic_header_variable, validate_dynamic_header_template,
73927391 } ;
7392+ #[ cfg( feature = "cache" ) ]
7393+ use super :: { CachePeerConfig , CachePeerFillConfig } ;
73937394 use crate :: test_support:: { safe_child_path, safe_relative_path, unique_temp_path} ;
73947395 #[ cfg( unix) ]
73957396 use crate :: test_support:: { unique_group_writable_child, unique_world_writable_child} ;
@@ -9820,6 +9821,7 @@ mod tests {
98209821 }
98219822
98229823 #[ test]
9824+ #[ cfg( feature = "cache" ) ]
98239825 fn rejects_cache_peer_fill_without_enabled_cache_policy ( ) {
98249826 let config: Config = toml:: from_str (
98259827 r#"
@@ -9844,6 +9846,7 @@ mod tests {
98449846 }
98459847
98469848 #[ test]
9849+ #[ cfg( feature = "cache" ) ]
98479850 fn rejects_unsafe_cache_peer_fill_peers ( ) {
98489851 let config: Config = toml:: from_str (
98499852 r#"
0 commit comments