Client Test

Client Test

rev. 645b1734ce74ebbc529fecda676baac60fe4d581

Files changed:

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

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/query_lists.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::<QueryListsInput>()
  218    218   
            .ok_or("failed to downcast to QueryListsInput")?;
  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 query_lists_test {

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

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

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/recursive_xml_shapes.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::<RecursiveXmlShapesInput>()
  218    218   
            .ok_or("failed to downcast to RecursiveXmlShapesInput")?;
  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 recursive_xml_shapes_test {

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/simple_scalar_xml_properties.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::<SimpleScalarXmlPropertiesInput>()
  224    224   
            .ok_or("failed to downcast to SimpleScalarXmlPropertiesInput")?;
  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 simple_scalar_xml_properties_test {

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

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_empty_blobs.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::<XmlEmptyBlobsInput>()
  218    218   
            .ok_or("failed to downcast to XmlEmptyBlobsInput")?;
  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 xml_empty_blobs_test {

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_empty_lists.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::<XmlEmptyListsInput>()
  218    218   
            .ok_or("failed to downcast to XmlEmptyListsInput")?;
  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 xml_empty_lists_test {

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_empty_maps.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::<XmlEmptyMapsInput>()
  218    218   
            .ok_or("failed to downcast to XmlEmptyMapsInput")?;
  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 xml_empty_maps_test {

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

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

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_int_enums.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::<XmlIntEnumsInput>()
  218    218   
            .ok_or("failed to downcast to XmlIntEnumsInput")?;
  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 xml_int_enums_test {

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

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

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

@@ -182,182 +243,245 @@
  202    202   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  203    203   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  204    204   
        let _input = context
  205    205   
            .input()
  206    206   
            .downcast_ref::<XmlMapsInput>()
  207    207   
            .ok_or("failed to downcast to XmlMapsInput")?;
  208    208   
  209    209   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  210    210   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  211    211   
        })?;
         212  +
  212    213   
        cfg.interceptor_state()
  213    214   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         215  +
  214    216   
        ::std::result::Result::Ok(())
  215    217   
    }
  216    218   
}
  217    219   
  218    220   
// The get_* functions below are generated from JMESPath expressions in the
  219    221   
// operationContextParams trait. They target the operation's input shape.
  220    222   
  221    223   
#[allow(unreachable_code, unused_variables)]
  222    224   
#[cfg(test)]
  223    225   
mod xml_maps_test {

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/operation/xml_maps_xml_name.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::<XmlMapsXmlNameInput>()
  218    218   
            .ok_or("failed to downcast to XmlMapsXmlNameInput")?;
  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 xml_maps_xml_name_test {