Client Test

Client Test

rev. 645b1734ce74ebbc529fecda676baac60fe4d581

Files changed:

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/datetime_offsets.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/empty_input_and_empty_output.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/endpoint_operation.rs

@@ -198,198 +259,261 @@
  218    218   
            .ok_or("failed to downcast to EndpointOperationInput")?;
  219    219   
  220    220   
        let endpoint_prefix = ::aws_smithy_runtime_api::client::endpoint::EndpointPrefix::new("foo.").map_err(|err| {
  221    221   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint prefix could not be built", err)
  222    222   
        })?;
  223    223   
        cfg.interceptor_state().store_put(endpoint_prefix);
  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   
#[allow(unreachable_code, unused_variables)]
  238    240   
#[cfg(test)]
  239    241   
mod endpoint_operation_test {

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/endpoint_with_host_label_operation.rs

@@ -219,219 +280,282 @@
  239    239   
                );
  240    240   
            }
  241    241   
            ::aws_smithy_runtime_api::client::endpoint::EndpointPrefix::new(format!("foo.{label}.", label = label))
  242    242   
        }
  243    243   
        .map_err(|err| ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint prefix could not be built", err))?;
  244    244   
        cfg.interceptor_state().store_put(endpoint_prefix);
  245    245   
  246    246   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  247    247   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  248    248   
        })?;
         249  +
  249    250   
        cfg.interceptor_state()
  250    251   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         252  +
  251    253   
        ::std::result::Result::Ok(())
  252    254   
    }
  253    255   
}
  254    256   
  255    257   
// The get_* functions below are generated from JMESPath expressions in the
  256    258   
// operationContextParams trait. They target the operation's input shape.
  257    259   
  258    260   
#[allow(unreachable_code, unused_variables)]
  259    261   
#[cfg(test)]
  260    262   
mod endpoint_with_host_label_operation_test {

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/flattened_xml_map.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/flattened_xml_map_with_xml_name.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/flattened_xml_map_with_xml_namespace.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/fractional_seconds.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/greeting_with_errors.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/host_with_path_operation.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/ignores_wrapping_xml_name.rs

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/nested_structures.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::<NestedStructuresInput>()
  221    221   
            .ok_or("failed to downcast to NestedStructuresInput")?;
  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 nested_structures_test {

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

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

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

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/put_with_content_encoding.rs

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