Client Test

Client Test

rev. 27102829f69b2cfe3a9ca9e69ae64d1ea40f9865 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_empty_prefix_headers.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::<HttpEmptyPrefixHeadersInput>()
  222    222   
            .ok_or("failed to downcast to HttpEmptyPrefixHeadersInput")?;
  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 http_empty_prefix_headers_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_enum_payload.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::<HttpEnumPayloadInput>()
  227    227   
            .ok_or("failed to downcast to HttpEnumPayloadInput")?;
  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 http_enum_payload_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_payload_traits.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::<HttpPayloadTraitsInput>()
  227    227   
            .ok_or("failed to downcast to HttpPayloadTraitsInput")?;
  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 http_payload_traits_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_payload_traits_with_media_type.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::<HttpPayloadTraitsWithMediaTypeInput>()
  232    232   
            .ok_or("failed to downcast to HttpPayloadTraitsWithMediaTypeInput")?;
  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   
#[allow(unreachable_code, unused_variables)]
  247    249   
#[cfg(test)]
  248    250   
mod http_payload_traits_with_media_type_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_payload_with_structure.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::<HttpPayloadWithStructureInput>()
  227    227   
            .ok_or("failed to downcast to HttpPayloadWithStructureInput")?;
  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 http_payload_with_structure_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_payload_with_union.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::<HttpPayloadWithUnionInput>()
  227    227   
            .ok_or("failed to downcast to HttpPayloadWithUnionInput")?;
  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 http_payload_with_union_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_prefix_headers.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::<HttpPrefixHeadersInput>()
  222    222   
            .ok_or("failed to downcast to HttpPrefixHeadersInput")?;
  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 http_prefix_headers_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_prefix_headers_in_response.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::<HttpPrefixHeadersInResponseInput>()
  221    221   
            .ok_or("failed to downcast to HttpPrefixHeadersInResponseInput")?;
  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 http_prefix_headers_in_response_test {

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

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

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

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

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

@@ -302,302 +363,365 @@
  322    322   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  323    323   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  324    324   
        let _input = context
  325    325   
            .input()
  326    326   
            .downcast_ref::<HttpRequestWithLabelsInput>()
  327    327   
            .ok_or("failed to downcast to HttpRequestWithLabelsInput")?;
  328    328   
  329    329   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  330    330   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  331    331   
        })?;
         332  +
  332    333   
        cfg.interceptor_state()
  333    334   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         335  +
  334    336   
        ::std::result::Result::Ok(())
  335    337   
    }
  336    338   
}
  337    339   
  338    340   
// The get_* functions below are generated from JMESPath expressions in the
  339    341   
// operationContextParams trait. They target the operation's input shape.
  340    342   
  341    343   
#[allow(unreachable_code, unused_variables)]
  342    344   
#[cfg(test)]
  343    345   
mod http_request_with_labels_test {

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

@@ -277,277 +338,340 @@
  297    297   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  298    298   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  299    299   
        let _input = context
  300    300   
            .input()
  301    301   
            .downcast_ref::<HttpRequestWithLabelsAndTimestampFormatInput>()
  302    302   
            .ok_or("failed to downcast to HttpRequestWithLabelsAndTimestampFormatInput")?;
  303    303   
  304    304   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  305    305   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  306    306   
        })?;
         307  +
  307    308   
        cfg.interceptor_state()
  308    309   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         310  +
  309    311   
        ::std::result::Result::Ok(())
  310    312   
    }
  311    313   
}
  312    314   
  313    315   
// The get_* functions below are generated from JMESPath expressions in the
  314    316   
// operationContextParams trait. They target the operation's input shape.
  315    317   
  316    318   
#[allow(unreachable_code, unused_variables)]
  317    319   
#[cfg(test)]
  318    320   
mod http_request_with_labels_and_timestamp_format_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_request_with_regex_literal.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::<HttpRequestWithRegexLiteralInput>()
  232    232   
            .ok_or("failed to downcast to HttpRequestWithRegexLiteralInput")?;
  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   
#[allow(unreachable_code, unused_variables)]
  247    249   
#[cfg(test)]
  248    250   
mod http_request_with_regex_literal_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_response_code.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::<HttpResponseCodeInput>()
  221    221   
            .ok_or("failed to downcast to HttpResponseCodeInput")?;
  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 http_response_code_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/http_string_payload.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::<HttpStringPayloadInput>()
  227    227   
            .ok_or("failed to downcast to HttpStringPayloadInput")?;
  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 http_string_payload_test {

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/ignore_query_params_in_response.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::<IgnoreQueryParamsInResponseInput>()
  221    221   
            .ok_or("failed to downcast to IgnoreQueryParamsInResponseInput")?;
  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 ignore_query_params_in_response_test {