Client Test

Client Test

rev. eb19c4c7998eaae1210cb747286b497c3425236c

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/config/auth.rs

@@ -28,28 +88,90 @@
   48     48   
}
   49     49   
   50     50   
// TODO(https://github.com/smithy-lang/smithy-rs/issues/4177): Remove `allow(...)` once the issue is addressed.
   51     51   
// When generating code for tests (e.g., `codegen-client-test`), this manual implementation
   52     52   
// of the `Default` trait may appear as if it could be derived automatically.
   53     53   
// However, that is not the case in production.
   54     54   
#[allow(clippy::derivable_impls)]
   55     55   
impl Default for DefaultAuthSchemeResolver {
   56     56   
    fn default() -> Self {
   57     57   
        Self {
   58         -
            service_defaults: vec![],
          58  +
            service_defaults: vec![::aws_smithy_runtime_api::client::auth::AuthSchemeOption::from(
          59  +
                ::aws_smithy_runtime::client::auth::no_auth::NO_AUTH_SCHEME_ID,
          60  +
            )],
   59     61   
            operation_overrides: ::std::collections::HashMap::new(),
   60     62   
        }
   61     63   
    }
   62     64   
}
   63     65   
   64     66   
impl crate::config::auth::ResolveAuthScheme for DefaultAuthSchemeResolver {
   65     67   
    fn resolve_auth_scheme<'a>(
   66     68   
        &'a self,
   67     69   
        params: &'a crate::config::auth::Params,
   68     70   
        _cfg: &'a ::aws_smithy_types::config_bag::ConfigBag,