Client Test

Client Test

rev. 27102829f69b2cfe3a9ca9e69ae64d1ea40f9865

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_header_default.rs

@@ -200,200 +261,263 @@
  220    220   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  221    221   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  222    222   
        let _input = context
  223    223   
            .input()
  224    224   
            .downcast_ref::<MalformedTimestampHeaderDefaultInput>()
  225    225   
            .ok_or("failed to downcast to MalformedTimestampHeaderDefaultInput")?;
  226    226   
  227    227   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  228    228   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  229    229   
        })?;
         230  +
  230    231   
        cfg.interceptor_state()
  231    232   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         233  +
  232    234   
        ::std::result::Result::Ok(())
  233    235   
    }
  234    236   
}
  235    237   
  236    238   
// The get_* functions below are generated from JMESPath expressions in the
  237    239   
// operationContextParams trait. They target the operation's input shape.
  238    240   
  239    241   
/// Error type for the `MalformedTimestampHeaderDefaultError` operation.
  240    242   
#[non_exhaustive]
  241    243   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_header_epoch.rs

@@ -198,198 +259,261 @@
  218    218   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  219    219   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  220    220   
        let _input = context
  221    221   
            .input()
  222    222   
            .downcast_ref::<MalformedTimestampHeaderEpochInput>()
  223    223   
            .ok_or("failed to downcast to MalformedTimestampHeaderEpochInput")?;
  224    224   
  225    225   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  226    226   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  227    227   
        })?;
         228  +
  228    229   
        cfg.interceptor_state()
  229    230   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         231  +
  230    232   
        ::std::result::Result::Ok(())
  231    233   
    }
  232    234   
}
  233    235   
  234    236   
// The get_* functions below are generated from JMESPath expressions in the
  235    237   
// operationContextParams trait. They target the operation's input shape.
  236    238   
  237    239   
/// Error type for the `MalformedTimestampHeaderEpochError` operation.
  238    240   
#[non_exhaustive]
  239    241   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_path_default.rs

@@ -207,207 +268,270 @@
  227    227   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  228    228   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  229    229   
        let _input = context
  230    230   
            .input()
  231    231   
            .downcast_ref::<MalformedTimestampPathDefaultInput>()
  232    232   
            .ok_or("failed to downcast to MalformedTimestampPathDefaultInput")?;
  233    233   
  234    234   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  235    235   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  236    236   
        })?;
         237  +
  237    238   
        cfg.interceptor_state()
  238    239   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         240  +
  239    241   
        ::std::result::Result::Ok(())
  240    242   
    }
  241    243   
}
  242    244   
  243    245   
// The get_* functions below are generated from JMESPath expressions in the
  244    246   
// operationContextParams trait. They target the operation's input shape.
  245    247   
  246    248   
/// Error type for the `MalformedTimestampPathDefaultError` operation.
  247    249   
#[non_exhaustive]
  248    250   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_path_epoch.rs

@@ -207,207 +268,270 @@
  227    227   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  228    228   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  229    229   
        let _input = context
  230    230   
            .input()
  231    231   
            .downcast_ref::<MalformedTimestampPathEpochInput>()
  232    232   
            .ok_or("failed to downcast to MalformedTimestampPathEpochInput")?;
  233    233   
  234    234   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  235    235   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  236    236   
        })?;
         237  +
  237    238   
        cfg.interceptor_state()
  238    239   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         240  +
  239    241   
        ::std::result::Result::Ok(())
  240    242   
    }
  241    243   
}
  242    244   
  243    245   
// The get_* functions below are generated from JMESPath expressions in the
  244    246   
// operationContextParams trait. They target the operation's input shape.
  245    247   
  246    248   
/// Error type for the `MalformedTimestampPathEpochError` operation.
  247    249   
#[non_exhaustive]
  248    250   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_path_http_date.rs

@@ -209,209 +270,272 @@
  229    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  230    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  231    231   
        let _input = context
  232    232   
            .input()
  233    233   
            .downcast_ref::<MalformedTimestampPathHttpDateInput>()
  234    234   
            .ok_or("failed to downcast to MalformedTimestampPathHttpDateInput")?;
  235    235   
  236    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  237    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  238    238   
        })?;
         239  +
  239    240   
        cfg.interceptor_state()
  240    241   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         242  +
  241    243   
        ::std::result::Result::Ok(())
  242    244   
    }
  243    245   
}
  244    246   
  245    247   
// The get_* functions below are generated from JMESPath expressions in the
  246    248   
// operationContextParams trait. They target the operation's input shape.
  247    249   
  248    250   
/// Error type for the `MalformedTimestampPathHttpDateError` operation.
  249    251   
#[non_exhaustive]
  250    252   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_default.rs

@@ -212,212 +273,275 @@
  232    232   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  233    233   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  234    234   
        let _input = context
  235    235   
            .input()
  236    236   
            .downcast_ref::<MalformedTimestampQueryDefaultInput>()
  237    237   
            .ok_or("failed to downcast to MalformedTimestampQueryDefaultInput")?;
  238    238   
  239    239   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  240    240   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  241    241   
        })?;
         242  +
  242    243   
        cfg.interceptor_state()
  243    244   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         245  +
  244    246   
        ::std::result::Result::Ok(())
  245    247   
    }
  246    248   
}
  247    249   
  248    250   
// The get_* functions below are generated from JMESPath expressions in the
  249    251   
// operationContextParams trait. They target the operation's input shape.
  250    252   
  251    253   
/// Error type for the `MalformedTimestampQueryDefaultError` operation.
  252    254   
#[non_exhaustive]
  253    255   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_epoch.rs

@@ -212,212 +273,275 @@
  232    232   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  233    233   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  234    234   
        let _input = context
  235    235   
            .input()
  236    236   
            .downcast_ref::<MalformedTimestampQueryEpochInput>()
  237    237   
            .ok_or("failed to downcast to MalformedTimestampQueryEpochInput")?;
  238    238   
  239    239   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  240    240   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  241    241   
        })?;
         242  +
  242    243   
        cfg.interceptor_state()
  243    244   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         245  +
  244    246   
        ::std::result::Result::Ok(())
  245    247   
    }
  246    248   
}
  247    249   
  248    250   
// The get_* functions below are generated from JMESPath expressions in the
  249    251   
// operationContextParams trait. They target the operation's input shape.
  250    252   
  251    253   
/// Error type for the `MalformedTimestampQueryEpochError` operation.
  252    254   
#[non_exhaustive]
  253    255   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_timestamp_query_http_date.rs

@@ -214,214 +275,277 @@
  234    234   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  235    235   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  236    236   
        let _input = context
  237    237   
            .input()
  238    238   
            .downcast_ref::<MalformedTimestampQueryHttpDateInput>()
  239    239   
            .ok_or("failed to downcast to MalformedTimestampQueryHttpDateInput")?;
  240    240   
  241    241   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  242    242   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  243    243   
        })?;
         244  +
  244    245   
        cfg.interceptor_state()
  245    246   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         247  +
  246    248   
        ::std::result::Result::Ok(())
  247    249   
    }
  248    250   
}
  249    251   
  250    252   
// The get_* functions below are generated from JMESPath expressions in the
  251    253   
// operationContextParams trait. They target the operation's input shape.
  252    254   
  253    255   
/// Error type for the `MalformedTimestampQueryHttpDateError` operation.
  254    256   
#[non_exhaustive]
  255    257   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_union.rs

@@ -194,194 +255,257 @@
  214    214   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  215    215   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  216    216   
        let _input = context
  217    217   
            .input()
  218    218   
            .downcast_ref::<MalformedUnionInput>()
  219    219   
            .ok_or("failed to downcast to MalformedUnionInput")?;
  220    220   
  221    221   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  222    222   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  223    223   
        })?;
         224  +
  224    225   
        cfg.interceptor_state()
  225    226   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         227  +
  226    228   
        ::std::result::Result::Ok(())
  227    229   
    }
  228    230   
}
  229    231   
  230    232   
// The get_* functions below are generated from JMESPath expressions in the
  231    233   
// operationContextParams trait. They target the operation's input shape.
  232    234   
  233    235   
/// Error type for the `MalformedUnionError` operation.
  234    236   
#[non_exhaustive]
  235    237   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/media_type_header.rs

@@ -197,197 +258,260 @@
  217    217   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  218    218   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  219    219   
        let _input = context
  220    220   
            .input()
  221    221   
            .downcast_ref::<MediaTypeHeaderInput>()
  222    222   
            .ok_or("failed to downcast to MediaTypeHeaderInput")?;
  223    223   
  224    224   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  225    225   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  226    226   
        })?;
         227  +
  227    228   
        cfg.interceptor_state()
  228    229   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         230  +
  229    231   
        ::std::result::Result::Ok(())
  230    232   
    }
  231    233   
}
  232    234   
  233    235   
// The get_* functions below are generated from JMESPath expressions in the
  234    236   
// operationContextParams trait. They target the operation's input shape.
  235    237   
  236    238   
#[allow(unreachable_code, unused_variables)]
  237    239   
#[cfg(test)]
  238    240   
mod media_type_header_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/no_input_and_no_output.rs

@@ -196,196 +257,259 @@
  216    216   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  217    217   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  218    218   
        let _input = context
  219    219   
            .input()
  220    220   
            .downcast_ref::<NoInputAndNoOutputInput>()
  221    221   
            .ok_or("failed to downcast to NoInputAndNoOutputInput")?;
  222    222   
  223    223   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  224    224   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  225    225   
        })?;
         226  +
  226    227   
        cfg.interceptor_state()
  227    228   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         229  +
  228    230   
        ::std::result::Result::Ok(())
  229    231   
    }
  230    232   
}
  231    233   
  232    234   
// The get_* functions below are generated from JMESPath expressions in the
  233    235   
// operationContextParams trait. They target the operation's input shape.
  234    236   
  235    237   
#[allow(unreachable_code, unused_variables)]
  236    238   
#[cfg(test)]
  237    239   
mod no_input_and_no_output_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/no_input_and_output.rs

@@ -196,196 +257,259 @@
  216    216   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  217    217   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  218    218   
        let _input = context
  219    219   
            .input()
  220    220   
            .downcast_ref::<NoInputAndOutputInput>()
  221    221   
            .ok_or("failed to downcast to NoInputAndOutputInput")?;
  222    222   
  223    223   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  224    224   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  225    225   
        })?;
         226  +
  226    227   
        cfg.interceptor_state()
  227    228   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         229  +
  228    230   
        ::std::result::Result::Ok(())
  229    231   
    }
  230    232   
}
  231    233   
  232    234   
// The get_* functions below are generated from JMESPath expressions in the
  233    235   
// operationContextParams trait. They target the operation's input shape.
  234    236   
  235    237   
#[allow(unreachable_code, unused_variables)]
  236    238   
#[cfg(test)]
  237    239   
mod no_input_and_output_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/null_and_empty_headers_client.rs

@@ -197,197 +258,260 @@
  217    217   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  218    218   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  219    219   
        let _input = context
  220    220   
            .input()
  221    221   
            .downcast_ref::<NullAndEmptyHeadersClientInput>()
  222    222   
            .ok_or("failed to downcast to NullAndEmptyHeadersClientInput")?;
  223    223   
  224    224   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  225    225   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  226    226   
        })?;
         227  +
  227    228   
        cfg.interceptor_state()
  228    229   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         230  +
  229    231   
        ::std::result::Result::Ok(())
  230    232   
    }
  231    233   
}
  232    234   
  233    235   
// The get_* functions below are generated from JMESPath expressions in the
  234    236   
// operationContextParams trait. They target the operation's input shape.
  235    237   
  236    238   
#[allow(unreachable_code, unused_variables)]
  237    239   
#[cfg(test)]
  238    240   
mod null_and_empty_headers_client_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/null_and_empty_headers_server.rs

@@ -197,197 +258,260 @@
  217    217   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  218    218   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  219    219   
        let _input = context
  220    220   
            .input()
  221    221   
            .downcast_ref::<NullAndEmptyHeadersServerInput>()
  222    222   
            .ok_or("failed to downcast to NullAndEmptyHeadersServerInput")?;
  223    223   
  224    224   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  225    225   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  226    226   
        })?;
         227  +
  227    228   
        cfg.interceptor_state()
  228    229   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         230  +
  229    231   
        ::std::result::Result::Ok(())
  230    232   
    }
  231    233   
}
  232    234   
  233    235   
// The get_* functions below are generated from JMESPath expressions in the
  234    236   
// operationContextParams trait. They target the operation's input shape.
  235    237   
  236    238   
/// Error type for the `NullAndEmptyHeadersServerError` operation.
  237    239   
#[non_exhaustive]
  238    240   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/omits_null_serializes_empty_string.rs

@@ -216,216 +277,279 @@
  236    236   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  237    237   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  238    238   
        let _input = context
  239    239   
            .input()
  240    240   
            .downcast_ref::<OmitsNullSerializesEmptyStringInput>()
  241    241   
            .ok_or("failed to downcast to OmitsNullSerializesEmptyStringInput")?;
  242    242   
  243    243   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  244    244   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  245    245   
        })?;
         246  +
  246    247   
        cfg.interceptor_state()
  247    248   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         249  +
  248    250   
        ::std::result::Result::Ok(())
  249    251   
    }
  250    252   
}
  251    253   
  252    254   
// The get_* functions below are generated from JMESPath expressions in the
  253    255   
// operationContextParams trait. They target the operation's input shape.
  254    256   
  255    257   
#[allow(unreachable_code, unused_variables)]
  256    258   
#[cfg(test)]
  257    259   
mod omits_null_serializes_empty_string_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/omits_serializing_empty_lists.rs

@@ -256,256 +317,319 @@
  276    276   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  277    277   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  278    278   
        let _input = context
  279    279   
            .input()
  280    280   
            .downcast_ref::<OmitsSerializingEmptyListsInput>()
  281    281   
            .ok_or("failed to downcast to OmitsSerializingEmptyListsInput")?;
  282    282   
  283    283   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  284    284   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  285    285   
        })?;
         286  +
  286    287   
        cfg.interceptor_state()
  287    288   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         289  +
  288    290   
        ::std::result::Result::Ok(())
  289    291   
    }
  290    292   
}
  291    293   
  292    294   
// The get_* functions below are generated from JMESPath expressions in the
  293    295   
// operationContextParams trait. They target the operation's input shape.
  294    296   
  295    297   
#[allow(unreachable_code, unused_variables)]
  296    298   
#[cfg(test)]
  297    299   
mod omits_serializing_empty_lists_test {