Client Test

Client Test

rev. 1fb202108840af7ccb1069c5b8afebf43a5e5aec

Files changed:

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

@@ -285,285 +345,345 @@
  305    305   
  306    306   
#[allow(unreachable_code, unused_variables)]
  307    307   
#[cfg(test)]
  308    308   
mod http_request_with_labels_and_timestamp_format_test {
  309    309   
  310    310   
    /// Serializes different timestamp formats in URI labels
  311    311   
    /// Test ID: HttpRequestWithLabelsAndTimestampFormat
  312    312   
    #[::tokio::test]
  313    313   
    #[::tracing_test::traced_test]
  314    314   
    async fn http_request_with_labels_and_timestamp_format_request() {
  315         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         315  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  316    316   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  317    317   
  318    318   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  319    319   
        let result = client
  320    320   
            .http_request_with_labels_and_timestamp_format()
  321    321   
            .set_member_epoch_seconds(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  322    322   
                1576540098, 0_f64,
  323    323   
            )))
  324    324   
            .set_member_http_date(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  325    325   
                1576540098, 0_f64,

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/http_string_payload.rs

@@ -203,203 +263,263 @@
  223    223   
// operationContextParams trait. They target the operation's input shape.
  224    224   
  225    225   
#[allow(unreachable_code, unused_variables)]
  226    226   
#[cfg(test)]
  227    227   
mod http_string_payload_test {
  228    228   
  229    229   
    /// Test ID: RestXmlStringPayloadRequest
  230    230   
    #[::tokio::test]
  231    231   
    #[::tracing_test::traced_test]
  232    232   
    async fn rest_xml_string_payload_request_request() {
  233         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         233  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  234    234   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  235    235   
  236    236   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  237    237   
        let result = client
  238    238   
            .http_string_payload()
  239    239   
            .set_payload(::std::option::Option::Some("rawstring".to_owned()))
  240    240   
            .send()
  241    241   
            .await;
  242    242   
        let _ = dbg!(result);
  243    243   
        let http_request = request_receiver.expect_request();

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/input_and_output_with_headers.rs

@@ -206,206 +486,486 @@
  226    226   
#[allow(unreachable_code, unused_variables)]
  227    227   
#[cfg(test)]
  228    228   
mod input_and_output_with_headers_test {
  229    229   
    use ::aws_smithy_protocol_test::FloatEquals;
  230    230   
  231    231   
    /// Tests requests with string header bindings
  232    232   
    /// Test ID: InputAndOutputWithStringHeaders
  233    233   
    #[::tokio::test]
  234    234   
    #[::tracing_test::traced_test]
  235    235   
    async fn input_and_output_with_string_headers_request() {
  236         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         236  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  237    237   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  238    238   
  239    239   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  240    240   
        let result = client
  241    241   
            .input_and_output_with_headers()
  242    242   
            .set_header_string(::std::option::Option::Some("Hello".to_owned()))
  243    243   
            .set_header_string_list(::std::option::Option::Some(vec!["a".to_owned(), "b".to_owned(), "c".to_owned()]))
  244    244   
            .set_header_string_set(::std::option::Option::Some(vec!["a".to_owned(), "b".to_owned(), "c".to_owned()]))
  245    245   
            .send()
  246    246   
            .await;
  247    247   
        let _ = dbg!(result);
  248    248   
        let http_request = request_receiver.expect_request();
  249    249   
        let expected_headers = [("X-String", "Hello"), ("X-StringList", "a, b, c"), ("X-StringSet", "a, b, c")];
  250    250   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  251    251   
        let body = http_request.body().bytes().expect("body should be strict");
  252    252   
        // No body.
  253    253   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  254    254   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  255    255   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  256    256   
        ::pretty_assertions::assert_eq!(uri.path(), "/InputAndOutputWithHeaders", "path was incorrect");
  257    257   
    }
  258    258   
  259    259   
    /// Tests requests with numeric header bindings
  260    260   
    /// Test ID: InputAndOutputWithNumericHeaders
  261    261   
    #[::tokio::test]
  262    262   
    #[::tracing_test::traced_test]
  263    263   
    async fn input_and_output_with_numeric_headers_request() {
  264         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         264  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  265    265   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  266    266   
  267    267   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  268    268   
        let result = client
  269    269   
            .input_and_output_with_headers()
  270    270   
            .set_header_byte(::std::option::Option::Some(1))
  271    271   
            .set_header_short(::std::option::Option::Some(123))
  272    272   
            .set_header_integer(::std::option::Option::Some(123))
  273    273   
            .set_header_long(::std::option::Option::Some(123))
  274    274   
            .set_header_float(::std::option::Option::Some(1.1_f32))
  275    275   
            .set_header_double(::std::option::Option::Some(1.1_f64))
  276    276   
            .set_header_integer_list(::std::option::Option::Some(vec![1, 2, 3]))
  277    277   
            .send()
  278    278   
            .await;
  279    279   
        let _ = dbg!(result);
  280    280   
        let http_request = request_receiver.expect_request();
  281    281   
        let expected_headers = [
  282    282   
            ("X-Byte", "1"),
  283    283   
            ("X-Double", "1.1"),
  284    284   
            ("X-Float", "1.1"),
  285    285   
            ("X-Integer", "123"),
  286    286   
            ("X-IntegerList", "1, 2, 3"),
  287    287   
            ("X-Long", "123"),
  288    288   
            ("X-Short", "123"),
  289    289   
        ];
  290    290   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  291    291   
        let body = http_request.body().bytes().expect("body should be strict");
  292    292   
        // No body.
  293    293   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  294    294   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  295    295   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  296    296   
        ::pretty_assertions::assert_eq!(uri.path(), "/InputAndOutputWithHeaders", "path was incorrect");
  297    297   
    }
  298    298   
  299    299   
    /// Tests requests with boolean header bindings
  300    300   
    /// Test ID: InputAndOutputWithBooleanHeaders
  301    301   
    #[::tokio::test]
  302    302   
    #[::tracing_test::traced_test]
  303    303   
    async fn input_and_output_with_boolean_headers_request() {
  304         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         304  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  305    305   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  306    306   
  307    307   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  308    308   
        let result = client
  309    309   
            .input_and_output_with_headers()
  310    310   
            .set_header_true_bool(::std::option::Option::Some(true))
  311    311   
            .set_header_false_bool(::std::option::Option::Some(false))
  312    312   
            .set_header_boolean_list(::std::option::Option::Some(vec![true, false, true]))
  313    313   
            .send()
  314    314   
            .await;
  315    315   
        let _ = dbg!(result);
  316    316   
        let http_request = request_receiver.expect_request();
  317    317   
        let expected_headers = [("X-Boolean1", "true"), ("X-Boolean2", "false"), ("X-BooleanList", "true, false, true")];
  318    318   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  319    319   
        let body = http_request.body().bytes().expect("body should be strict");
  320    320   
        // No body.
  321    321   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  322    322   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  323    323   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  324    324   
        ::pretty_assertions::assert_eq!(uri.path(), "/InputAndOutputWithHeaders", "path was incorrect");
  325    325   
    }
  326    326   
  327    327   
    /// Tests requests with timestamp header bindings
  328    328   
    /// Test ID: InputAndOutputWithTimestampHeaders
  329    329   
    #[::tokio::test]
  330    330   
    #[::tracing_test::traced_test]
  331    331   
    async fn input_and_output_with_timestamp_headers_request() {
  332         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         332  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  333    333   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  334    334   
  335    335   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  336    336   
        let result = client
  337    337   
            .input_and_output_with_headers()
  338    338   
            .set_header_timestamp_list(::std::option::Option::Some(vec![
  339    339   
                ::aws_smithy_types::DateTime::from_fractional_secs(1576540098, 0_f64),
  340    340   
                ::aws_smithy_types::DateTime::from_fractional_secs(1576540098, 0_f64),
  341    341   
            ]))
  342    342   
            .send()
  343    343   
            .await;
  344    344   
        let _ = dbg!(result);
  345    345   
        let http_request = request_receiver.expect_request();
  346    346   
        let expected_headers = [("X-TimestampList", "Mon, 16 Dec 2019 23:48:18 GMT, Mon, 16 Dec 2019 23:48:18 GMT")];
  347    347   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  348    348   
        let body = http_request.body().bytes().expect("body should be strict");
  349    349   
        // No body.
  350    350   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  351    351   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  352    352   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  353    353   
        ::pretty_assertions::assert_eq!(uri.path(), "/InputAndOutputWithHeaders", "path was incorrect");
  354    354   
    }
  355    355   
  356    356   
    /// Tests requests with enum header bindings
  357    357   
    /// Test ID: InputAndOutputWithEnumHeaders
  358    358   
    #[::tokio::test]
  359    359   
    #[::tracing_test::traced_test]
  360    360   
    async fn input_and_output_with_enum_headers_request() {
  361         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         361  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  362    362   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  363    363   
  364    364   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  365    365   
        let result = client
  366    366   
            .input_and_output_with_headers()
  367    367   
            .set_header_enum(::std::option::Option::Some(
  368    368   
                "Foo".parse::<crate::types::FooEnum>().expect("static value validated to member"),
  369    369   
            ))
  370    370   
            .set_header_enum_list(::std::option::Option::Some(vec![
  371    371   
                "Foo".parse::<crate::types::FooEnum>().expect("static value validated to member"),
  372    372   
                "Bar".parse::<crate::types::FooEnum>().expect("static value validated to member"),
  373    373   
                "Baz".parse::<crate::types::FooEnum>().expect("static value validated to member"),
  374    374   
            ]))
  375    375   
            .send()
  376    376   
            .await;
  377    377   
        let _ = dbg!(result);
  378    378   
        let http_request = request_receiver.expect_request();
  379    379   
        let expected_headers = [("X-Enum", "Foo"), ("X-EnumList", "Foo, Bar, Baz")];
  380    380   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  381    381   
        let body = http_request.body().bytes().expect("body should be strict");
  382    382   
        // No body.
  383    383   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  384    384   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  385    385   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  386    386   
        ::pretty_assertions::assert_eq!(uri.path(), "/InputAndOutputWithHeaders", "path was incorrect");
  387    387   
    }
  388    388   
  389    389   
    /// Supports handling NaN float header values.
  390    390   
    /// Test ID: RestXmlSupportsNaNFloatHeaderInputs
  391    391   
    #[::tokio::test]
  392    392   
    #[::tracing_test::traced_test]
  393    393   
    async fn rest_xml_supports_na_n_float_header_inputs_request() {
  394         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         394  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  395    395   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  396    396   
  397    397   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  398    398   
        let result = client
  399    399   
            .input_and_output_with_headers()
  400    400   
            .set_header_float(::std::option::Option::Some(
  401    401   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("NaN").expect("invalid string for number"),
  402    402   
            ))
  403    403   
            .set_header_double(::std::option::Option::Some(
  404    404   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("NaN").expect("invalid string for number"),
  405    405   
            ))
  406    406   
            .send()
  407    407   
            .await;
  408    408   
        let _ = dbg!(result);
  409    409   
        let http_request = request_receiver.expect_request();
  410    410   
        let expected_headers = [("X-Double", "NaN"), ("X-Float", "NaN")];
  411    411   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  412    412   
        let body = http_request.body().bytes().expect("body should be strict");
  413    413   
        // No body.
  414    414   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  415    415   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  416    416   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  417    417   
        ::pretty_assertions::assert_eq!(uri.path(), "/InputAndOutputWithHeaders", "path was incorrect");
  418    418   
    }
  419    419   
  420    420   
    /// Supports handling Infinity float header values.
  421    421   
    /// Test ID: RestXmlSupportsInfinityFloatHeaderInputs
  422    422   
    #[::tokio::test]
  423    423   
    #[::tracing_test::traced_test]
  424    424   
    async fn rest_xml_supports_infinity_float_header_inputs_request() {
  425         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         425  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  426    426   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  427    427   
  428    428   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  429    429   
        let result = client
  430    430   
            .input_and_output_with_headers()
  431    431   
            .set_header_float(::std::option::Option::Some(
  432    432   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("Infinity").expect("invalid string for number"),
  433    433   
            ))
  434    434   
            .set_header_double(::std::option::Option::Some(
  435    435   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("Infinity").expect("invalid string for number"),
  436    436   
            ))
  437    437   
            .send()
  438    438   
            .await;
  439    439   
        let _ = dbg!(result);
  440    440   
        let http_request = request_receiver.expect_request();
  441    441   
        let expected_headers = [("X-Double", "Infinity"), ("X-Float", "Infinity")];
  442    442   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  443    443   
        let body = http_request.body().bytes().expect("body should be strict");
  444    444   
        // No body.
  445    445   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  446    446   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  447    447   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  448    448   
        ::pretty_assertions::assert_eq!(uri.path(), "/InputAndOutputWithHeaders", "path was incorrect");
  449    449   
    }
  450    450   
  451    451   
    /// Supports handling -Infinity float header values.
  452    452   
    /// Test ID: RestXmlSupportsNegativeInfinityFloatHeaderInputs
  453    453   
    #[::tokio::test]
  454    454   
    #[::tracing_test::traced_test]
  455    455   
    async fn rest_xml_supports_negative_infinity_float_header_inputs_request() {
  456         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         456  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  457    457   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  458    458   
  459    459   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  460    460   
        let result = client
  461    461   
            .input_and_output_with_headers()
  462    462   
            .set_header_float(::std::option::Option::Some(
  463    463   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("-Infinity").expect("invalid string for number"),
  464    464   
            ))
  465    465   
            .set_header_double(::std::option::Option::Some(
  466    466   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("-Infinity").expect("invalid string for number"),

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/nested_xml_map_with_xml_name.rs

@@ -211,211 +313,313 @@
  231    231   
#[allow(unreachable_code, unused_variables)]
  232    232   
#[cfg(test)]
  233    233   
mod nested_xml_map_with_xml_name_test {
  234    234   
  235    235   
    /// Serializes nested XML Maps in requests that have xmlName on members
  236    236   
    /// Test ID: NestedXmlMapWithXmlNameSerializes
  237    237   
    #[::tokio::test]
  238    238   
    #[::tracing_test::traced_test]
  239    239   
    #[should_panic]
  240    240   
    async fn nested_xml_map_with_xml_name_serializes_request() {
  241         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         241  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  242    242   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  243    243   
  244    244   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  245    245   
        let result = client
  246    246   
            .nested_xml_map_with_xml_name()
  247    247   
            .set_nested_xml_map_with_xml_name_map(::std::option::Option::Some({
  248    248   
                let mut ret = ::std::collections::HashMap::new();
  249    249   
                ret.insert("foo".to_owned(), {
  250    250   
                    let mut ret = ::std::collections::HashMap::new();
  251    251   
                    ret.insert("bar".to_owned(), "Baz".to_owned());
  252    252   
                    ret.insert("fizz".to_owned(), "Buzz".to_owned());
  253    253   
                    ret
  254    254   
                });
  255    255   
                ret.insert("qux".to_owned(), {
  256    256   
                    let mut ret = ::std::collections::HashMap::new();
  257    257   
                    ret.insert("foobar".to_owned(), "Bar".to_owned());
  258    258   
                    ret.insert("fizzbuzz".to_owned(), "Buzz".to_owned());
  259    259   
                    ret
  260    260   
                });
  261    261   
                ret
  262    262   
            }))
  263    263   
            .send()
  264    264   
            .await;
  265    265   
        let _ = dbg!(result);
  266    266   
        let http_request = request_receiver.expect_request();
  267    267   
        let expected_headers = [("Content-Type", "application/xml")];
  268    268   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  269    269   
        let body = http_request.body().bytes().expect("body should be strict");
  270    270   
        ::aws_smithy_protocol_test::assert_ok(
  271    271   
        ::aws_smithy_protocol_test::validate_body(body, "    <NestedXmlMapWithXmlNameRequest>\n        <nestedXmlMapWithXmlNameMap>\n            <entry>\n                <OuterKey>foo</OuterKey>\n                <value>\n                    <entry>\n                        <InnerKey>bar</InnerKey>\n                        <InnerValue>Baz</InnerValue>\n                    </entry>\n                    <entry>\n                        <InnerKey>fizz</InnerKey>\n                        <InnerValue>Buzz</InnerValue>\n                    </entry>\n                </value>\n            </entry>\n            <entry>\n                <OuterKey>qux</OuterKey>\n                <value>\n                    <entry>\n                        <InnerKey>foobar</InnerKey>\n                        <InnerValue>Bar</InnerValue>\n                    </entry>\n                    <entry>\n                        <InnerKey>fizzbuzz</InnerKey>\n                        <InnerValue>Buzz</InnerValue>\n                    </entry>\n                </value>\n            </entry>\n        </nestedXmlMapWithXmlNameMap>\n    </NestedXmlMapWithXmlNameRequest>\n", ::aws_smithy_protocol_test::MediaType::from("application/xml"))
  272    272   
        );
  273    273   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  274    274   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  275    275   
        ::pretty_assertions::assert_eq!(uri.path(), "/NestedXmlMapWithXmlName", "path was incorrect");
  276    276   
    }
  277    277   
  278    278   
    /// Serializes nested XML Maps in requests that have xmlName on members
  279    279   
    /// Test ID: NestedXmlMapWithXmlNameSerializes_hotfixed
  280    280   
    #[::tokio::test]
  281    281   
    #[::tracing_test::traced_test]
  282    282   
    async fn nested_xml_map_with_xml_name_serializes_hotfixed_request() {
  283         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         283  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  284    284   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  285    285   
  286    286   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  287    287   
        let result = client
  288    288   
            .nested_xml_map_with_xml_name()
  289    289   
            .set_nested_xml_map_with_xml_name_map(::std::option::Option::Some({
  290    290   
                let mut ret = ::std::collections::HashMap::new();
  291    291   
                ret.insert("foo".to_owned(), {
  292    292   
                    let mut ret = ::std::collections::HashMap::new();
  293    293   
                    ret.insert("bar".to_owned(), "Baz".to_owned());

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/nested_xml_maps.rs

@@ -202,202 +301,301 @@
  222    222   
  223    223   
#[allow(unreachable_code, unused_variables)]
  224    224   
#[cfg(test)]
  225    225   
mod nested_xml_maps_test {
  226    226   
  227    227   
    /// Tests requests with nested maps.
  228    228   
    /// Test ID: NestedXmlMapRequest
  229    229   
    #[::tokio::test]
  230    230   
    #[::tracing_test::traced_test]
  231    231   
    async fn nested_xml_map_request_request() {
  232         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         232  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  233    233   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  234    234   
  235    235   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  236    236   
        let result = client
  237    237   
            .nested_xml_maps()
  238    238   
            .set_nested_map(::std::option::Option::Some({
  239    239   
                let mut ret = ::std::collections::HashMap::new();
  240    240   
                ret.insert("foo".to_owned(), {
  241    241   
                    let mut ret = ::std::collections::HashMap::new();
  242    242   
                    ret.insert(
  243    243   
                        "bar".to_owned(),
  244    244   
                        "Bar".parse::<crate::types::FooEnum>().expect("static value validated to member"),
  245    245   
                    );
  246    246   
                    ret
  247    247   
                });
  248    248   
                ret
  249    249   
            }))
  250    250   
            .send()
  251    251   
            .await;
  252    252   
        let _ = dbg!(result);
  253    253   
        let http_request = request_receiver.expect_request();
  254    254   
        let expected_headers = [("Content-Type", "application/xml")];
  255    255   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  256    256   
        let body = http_request.body().bytes().expect("body should be strict");
  257    257   
        ::aws_smithy_protocol_test::assert_ok(
  258    258   
        ::aws_smithy_protocol_test::validate_body(body, "<NestedXmlMapsRequest>\n    <nestedMap>\n        <entry>\n            <key>foo</key>\n            <value>\n                <entry>\n                    <key>bar</key>\n                    <value>Bar</value>\n                </entry>\n            </value>\n        </entry>\n    </nestedMap>\n</NestedXmlMapsRequest>", ::aws_smithy_protocol_test::MediaType::from("application/xml"))
  259    259   
        );
  260    260   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  261    261   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  262    262   
        ::pretty_assertions::assert_eq!(uri.path(), "/NestedXmlMaps", "path was incorrect");
  263    263   
    }
  264    264   
  265    265   
    /// Tests requests with nested flat maps. Since maps can only be
  266    266   
    /// flattened when they're structure members, only the outer map is flat.
  267    267   
    /// Test ID: FlatNestedXmlMapRequest
  268    268   
    #[::tokio::test]
  269    269   
    #[::tracing_test::traced_test]
  270    270   
    async fn flat_nested_xml_map_request_request() {
  271         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         271  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  272    272   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  273    273   
  274    274   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  275    275   
        let result = client
  276    276   
            .nested_xml_maps()
  277    277   
            .set_flat_nested_map(::std::option::Option::Some({
  278    278   
                let mut ret = ::std::collections::HashMap::new();
  279    279   
                ret.insert("foo".to_owned(), {
  280    280   
                    let mut ret = ::std::collections::HashMap::new();
  281    281   
                    ret.insert(

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

@@ -204,204 +264,264 @@
  224    224   
  225    225   
#[allow(unreachable_code, unused_variables)]
  226    226   
#[cfg(test)]
  227    227   
mod no_input_and_no_output_test {
  228    228   
  229    229   
    /// No input serializes no payload
  230    230   
    /// Test ID: NoInputAndNoOutput
  231    231   
    #[::tokio::test]
  232    232   
    #[::tracing_test::traced_test]
  233    233   
    async fn no_input_and_no_output_request() {
  234         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         234  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  235    235   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  236    236   
  237    237   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  238    238   
        let result = client.no_input_and_no_output().send().await;
  239    239   
        let _ = dbg!(result);
  240    240   
        let http_request = request_receiver.expect_request();
  241    241   
        let body = http_request.body().bytes().expect("body should be strict");
  242    242   
        // No body.
  243    243   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  244    244   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");

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

@@ -198,198 +258,258 @@
  218    218   
  219    219   
#[allow(unreachable_code, unused_variables)]
  220    220   
#[cfg(test)]
  221    221   
mod no_input_and_output_test {
  222    222   
  223    223   
    /// No input serializes no payload
  224    224   
    /// Test ID: NoInputAndOutput
  225    225   
    #[::tokio::test]
  226    226   
    #[::tracing_test::traced_test]
  227    227   
    async fn no_input_and_output_request() {
  228         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         228  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  229    229   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  230    230   
  231    231   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  232    232   
        let result = client.no_input_and_output().send().await;
  233    233   
        let _ = dbg!(result);
  234    234   
        let http_request = request_receiver.expect_request();
  235    235   
        let body = http_request.body().bytes().expect("body should be strict");
  236    236   
        // No body.
  237    237   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  238    238   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");

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

@@ -205,205 +265,265 @@
  225    225   
  226    226   
#[allow(unreachable_code, unused_variables)]
  227    227   
#[cfg(test)]
  228    228   
mod null_and_empty_headers_client_test {
  229    229   
  230    230   
    /// Do not send null values, but do send empty strings and empty lists over the wire in headers
  231    231   
    /// Test ID: NullAndEmptyHeaders
  232    232   
    #[::tokio::test]
  233    233   
    #[::tracing_test::traced_test]
  234    234   
    async fn null_and_empty_headers_request() {
  235         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         235  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  236    236   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  237    237   
  238    238   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  239    239   
        let result = client
  240    240   
            .null_and_empty_headers_client()
  241    241   
            .set_a(::std::option::Option::None)
  242    242   
            .set_b(::std::option::Option::Some("".to_owned()))
  243    243   
            .set_c(::std::option::Option::Some(vec![]))
  244    244   
            .send()
  245    245   
            .await;

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

@@ -224,224 +308,308 @@
  244    244   
  245    245   
#[allow(unreachable_code, unused_variables)]
  246    246   
#[cfg(test)]
  247    247   
mod omits_null_serializes_empty_string_test {
  248    248   
  249    249   
    /// Omits null query values
  250    250   
    /// Test ID: RestXmlOmitsNullQuery
  251    251   
    #[::tokio::test]
  252    252   
    #[::tracing_test::traced_test]
  253    253   
    async fn rest_xml_omits_null_query_request() {
  254         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         254  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  255    255   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  256    256   
  257    257   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  258    258   
        let result = client
  259    259   
            .omits_null_serializes_empty_string()
  260    260   
            .set_null_value(::std::option::Option::None)
  261    261   
            .send()
  262    262   
            .await;
  263    263   
        let _ = dbg!(result);
  264    264   
        let http_request = request_receiver.expect_request();
  265    265   
        let body = http_request.body().bytes().expect("body should be strict");
  266    266   
        // No body.
  267    267   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  268    268   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  269    269   
        ::pretty_assertions::assert_eq!(http_request.method(), "GET", "method was incorrect");
  270    270   
        ::pretty_assertions::assert_eq!(uri.path(), "/OmitsNullSerializesEmptyString", "path was incorrect");
  271    271   
    }
  272    272   
  273    273   
    /// Serializes empty query strings
  274    274   
    /// Test ID: RestXmlSerializesEmptyString
  275    275   
    #[::tokio::test]
  276    276   
    #[::tracing_test::traced_test]
  277    277   
    async fn rest_xml_serializes_empty_string_request() {
  278         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         278  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  279    279   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  280    280   
  281    281   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  282    282   
        let result = client
  283    283   
            .omits_null_serializes_empty_string()
  284    284   
            .set_empty_string(::std::option::Option::Some("".to_owned()))
  285    285   
            .send()
  286    286   
            .await;
  287    287   
        let _ = dbg!(result);
  288    288   
        let http_request = request_receiver.expect_request();

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

@@ -213,213 +301,301 @@
  233    233   
  234    234   
#[allow(unreachable_code, unused_variables)]
  235    235   
#[cfg(test)]
  236    236   
mod put_with_content_encoding_test {
  237    237   
  238    238   
    /// Compression algorithm encoding is appended to the Content-Encoding header.
  239    239   
    /// Test ID: SDKAppliedContentEncoding_restXml
  240    240   
    #[::tokio::test]
  241    241   
    #[::tracing_test::traced_test]
  242    242   
    async fn sdk_applied_content_encoding_rest_xml_request() {
  243         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         243  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  244    244   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  245    245   
  246    246   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  247    247   
        let result = client.put_with_content_encoding()
  248    248   
        .set_data(
  249    249   
            ::std::option::Option::Some(
  250    250   
                "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGm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ClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n".to_owned()
  251    251   
            )
  252    252   
        )
  253    253   
        .send().await;
  254    254   
        let _ = dbg!(result);
  255    255   
        let http_request = request_receiver.expect_request();
  256    256   
        let expected_headers = [("Content-Encoding", "gzip")];
  257    257   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  258    258   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  259    259   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  260    260   
        ::pretty_assertions::assert_eq!(uri.path(), "/requestcompression/putcontentwithencoding", "path was incorrect");
  261    261   
    }
  262    262   
  263    263   
    /// Compression algorithm encoding is appended to the Content-Encoding header, and the
  264    264   
    /// user-provided content-encoding is in the Content-Encoding header before the
  265    265   
    /// request compression encoding from the HTTP binding.
  266    266   
    ///
  267    267   
    /// Test ID: SDKAppendedGzipAfterProvidedEncoding_restXml
  268    268   
    #[::tokio::test]
  269    269   
    #[::tracing_test::traced_test]
  270    270   
    async fn sdk_appended_gzip_after_provided_encoding_rest_xml_request() {
  271         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         271  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  272    272   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  273    273   
  274    274   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  275    275   
        let result = client.put_with_content_encoding()
  276    276   
        .set_encoding(
  277    277   
            ::std::option::Option::Some(
  278    278   
                "custom".to_owned()
  279    279   
            )
  280    280   
        )
  281    281   
        .set_data(

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

@@ -227,227 +309,309 @@
  247    247   
  248    248   
#[allow(unreachable_code, unused_variables)]
  249    249   
#[cfg(test)]
  250    250   
mod query_idempotency_token_auto_fill_test {
  251    251   
  252    252   
    /// Automatically adds idempotency token when not set
  253    253   
    /// Test ID: QueryIdempotencyTokenAutoFill
  254    254   
    #[::tokio::test]
  255    255   
    #[::tracing_test::traced_test]
  256    256   
    async fn query_idempotency_token_auto_fill_request() {
  257         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         257  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  258    258   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  259    259   
  260    260   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  261    261   
        let result = client.query_idempotency_token_auto_fill().send().await;
  262    262   
        let _ = dbg!(result);
  263    263   
        let http_request = request_receiver.expect_request();
  264    264   
        let expected_query_params = &["token=00000000-0000-4000-8000-000000000000"];
  265    265   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_query_string(&http_request, expected_query_params));
  266    266   
        let body = http_request.body().bytes().expect("body should be strict");
  267    267   
        // No body.
  268    268   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  269    269   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  270    270   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  271    271   
        ::pretty_assertions::assert_eq!(uri.path(), "/QueryIdempotencyTokenAutoFill", "path was incorrect");
  272    272   
    }
  273    273   
  274    274   
    /// Uses the given idempotency token as-is
  275    275   
    /// Test ID: QueryIdempotencyTokenAutoFillIsSet
  276    276   
    #[::tokio::test]
  277    277   
    #[::tracing_test::traced_test]
  278    278   
    async fn query_idempotency_token_auto_fill_is_set_request() {
  279         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         279  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  280    280   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  281    281   
  282    282   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  283    283   
        let result = client
  284    284   
            .query_idempotency_token_auto_fill()
  285    285   
            .set_token(::std::option::Option::Some("00000000-0000-4000-8000-000000000000".to_owned()))
  286    286   
            .send()
  287    287   
            .await;
  288    288   
        let _ = dbg!(result);
  289    289   
        let http_request = request_receiver.expect_request();

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/query_params_as_string_list_map.rs

@@ -229,229 +289,289 @@
  249    249   
  250    250   
#[allow(unreachable_code, unused_variables)]
  251    251   
#[cfg(test)]
  252    252   
mod query_params_as_string_list_map_test {
  253    253   
  254    254   
    /// Serialize query params from map of list strings
  255    255   
    /// Test ID: RestXmlQueryParamsStringListMap
  256    256   
    #[::tokio::test]
  257    257   
    #[::tracing_test::traced_test]
  258    258   
    async fn rest_xml_query_params_string_list_map_request() {
  259         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         259  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  260    260   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  261    261   
  262    262   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  263    263   
        let result = client
  264    264   
            .query_params_as_string_list_map()
  265    265   
            .set_qux(::std::option::Option::Some("named".to_owned()))
  266    266   
            .set_foo(::std::option::Option::Some({
  267    267   
                let mut ret = ::std::collections::HashMap::new();
  268    268   
                ret.insert("baz".to_owned(), vec!["bar".to_owned(), "qux".to_owned()]);
  269    269   
                ret

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/query_precedence.rs

@@ -221,221 +281,281 @@
  241    241   
  242    242   
#[allow(unreachable_code, unused_variables)]
  243    243   
#[cfg(test)]
  244    244   
mod query_precedence_test {
  245    245   
  246    246   
    /// Prefer named query parameters when serializing
  247    247   
    /// Test ID: RestXmlQueryPrecedence
  248    248   
    #[::tokio::test]
  249    249   
    #[::tracing_test::traced_test]
  250    250   
    async fn rest_xml_query_precedence_request() {
  251         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         251  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  252    252   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  253    253   
  254    254   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  255    255   
        let result = client
  256    256   
            .query_precedence()
  257    257   
            .set_foo(::std::option::Option::Some("named".to_owned()))
  258    258   
            .set_baz(::std::option::Option::Some({
  259    259   
                let mut ret = ::std::collections::HashMap::new();
  260    260   
                ret.insert("bar".to_owned(), "fromMap".to_owned());
  261    261   
                ret.insert("qux".to_owned(), "alsoFromMap".to_owned());

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/recursive_shapes.rs

@@ -202,202 +262,262 @@
  222    222   
  223    223   
#[allow(unreachable_code, unused_variables)]
  224    224   
#[cfg(test)]
  225    225   
mod recursive_shapes_test {
  226    226   
  227    227   
    /// Serializes recursive structures
  228    228   
    /// Test ID: RecursiveShapes
  229    229   
    #[::tokio::test]
  230    230   
    #[::tracing_test::traced_test]
  231    231   
    async fn recursive_shapes_request() {
  232         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         232  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  233    233   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  234    234   
  235    235   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  236    236   
        let result = client
  237    237   
            .recursive_shapes()
  238    238   
            .set_nested(::std::option::Option::Some(
  239    239   
                crate::types::RecursiveShapesInputOutputNested1::builder()
  240    240   
                    .set_foo(::std::option::Option::Some("Foo1".to_owned()))
  241    241   
                    .set_nested(::std::option::Option::Some(::std::boxed::Box::new(
  242    242   
                        crate::types::RecursiveShapesInputOutputNested2::builder()

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/simple_scalar_properties.rs

@@ -212,212 +462,462 @@
  232    232   
#[allow(unreachable_code, unused_variables)]
  233    233   
#[cfg(test)]
  234    234   
mod simple_scalar_properties_test {
  235    235   
    use ::aws_smithy_protocol_test::FloatEquals;
  236    236   
  237    237   
    /// Serializes simple scalar properties
  238    238   
    /// Test ID: SimpleScalarProperties
  239    239   
    #[::tokio::test]
  240    240   
    #[::tracing_test::traced_test]
  241    241   
    async fn simple_scalar_properties_request() {
  242         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         242  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  243    243   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  244    244   
  245    245   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  246    246   
        let result = client
  247    247   
            .simple_scalar_properties()
  248    248   
            .set_foo(::std::option::Option::Some("Foo".to_owned()))
  249    249   
            .set_string_value(::std::option::Option::Some("string".to_owned()))
  250    250   
            .set_true_boolean_value(::std::option::Option::Some(true))
  251    251   
            .set_false_boolean_value(::std::option::Option::Some(false))
  252    252   
            .set_byte_value(::std::option::Option::Some(1))
  253    253   
            .set_short_value(::std::option::Option::Some(2))
  254    254   
            .set_integer_value(::std::option::Option::Some(3))
  255    255   
            .set_long_value(::std::option::Option::Some(4))
  256    256   
            .set_float_value(::std::option::Option::Some(5.5_f32))
  257    257   
            .set_double_value(::std::option::Option::Some(6.5_f64))
  258    258   
            .send()
  259    259   
            .await;
  260    260   
        let _ = dbg!(result);
  261    261   
        let http_request = request_receiver.expect_request();
  262    262   
        let expected_headers = [("Content-Type", "application/xml"), ("X-Foo", "Foo")];
  263    263   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  264    264   
        let body = http_request.body().bytes().expect("body should be strict");
  265    265   
        ::aws_smithy_protocol_test::assert_ok(
  266    266   
        ::aws_smithy_protocol_test::validate_body(body, "<SimpleScalarPropertiesRequest>\n    <stringValue>string</stringValue>\n    <trueBooleanValue>true</trueBooleanValue>\n    <falseBooleanValue>false</falseBooleanValue>\n    <byteValue>1</byteValue>\n    <shortValue>2</shortValue>\n    <integerValue>3</integerValue>\n    <longValue>4</longValue>\n    <floatValue>5.5</floatValue>\n    <DoubleDribble>6.5</DoubleDribble>\n</SimpleScalarPropertiesRequest>\n", ::aws_smithy_protocol_test::MediaType::from("application/xml"))
  267    267   
        );
  268    268   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  269    269   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  270    270   
        ::pretty_assertions::assert_eq!(uri.path(), "/SimpleScalarProperties", "path was incorrect");
  271    271   
    }
  272    272   
  273    273   
    /// Serializes string with escaping
  274    274   
    /// Test ID: SimpleScalarPropertiesWithEscapedCharacter
  275    275   
    #[::tokio::test]
  276    276   
    #[::tracing_test::traced_test]
  277    277   
    async fn simple_scalar_properties_with_escaped_character_request() {
  278         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         278  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  279    279   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  280    280   
  281    281   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  282    282   
        let result = client
  283    283   
            .simple_scalar_properties()
  284    284   
            .set_foo(::std::option::Option::Some("Foo".to_owned()))
  285    285   
            .set_string_value(::std::option::Option::Some("<string>".to_owned()))
  286    286   
            .send()
  287    287   
            .await;
  288    288   
        let _ = dbg!(result);
  289    289   
        let http_request = request_receiver.expect_request();
  290    290   
        let expected_headers = [("Content-Type", "application/xml"), ("X-Foo", "Foo")];
  291    291   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  292    292   
        let body = http_request.body().bytes().expect("body should be strict");
  293    293   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  294    294   
            body,
  295    295   
            "<SimpleScalarPropertiesRequest>\n    <stringValue>&lt;string&gt;</stringValue>\n</SimpleScalarPropertiesRequest>\n",
  296    296   
            ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  297    297   
        ));
  298    298   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  299    299   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  300    300   
        ::pretty_assertions::assert_eq!(uri.path(), "/SimpleScalarProperties", "path was incorrect");
  301    301   
    }
  302    302   
  303    303   
    /// Serializes string containing white space
  304    304   
    /// Test ID: SimpleScalarPropertiesWithWhiteSpace
  305    305   
    #[::tokio::test]
  306    306   
    #[::tracing_test::traced_test]
  307    307   
    async fn simple_scalar_properties_with_white_space_request() {
  308         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         308  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  309    309   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  310    310   
  311    311   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  312    312   
        let result = client
  313    313   
            .simple_scalar_properties()
  314    314   
            .set_foo(::std::option::Option::Some("Foo".to_owned()))
  315    315   
            .set_string_value(::std::option::Option::Some("  string with white    space  ".to_owned()))
  316    316   
            .send()
  317    317   
            .await;
  318    318   
        let _ = dbg!(result);
  319    319   
        let http_request = request_receiver.expect_request();
  320    320   
        let expected_headers = [("Content-Type", "application/xml"), ("X-Foo", "Foo")];
  321    321   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  322    322   
        let body = http_request.body().bytes().expect("body should be strict");
  323    323   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  324    324   
            body,
  325    325   
            "<SimpleScalarPropertiesRequest>\n    <stringValue>  string with white    space  </stringValue>\n</SimpleScalarPropertiesRequest>\n",
  326    326   
            ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  327    327   
        ));
  328    328   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  329    329   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  330    330   
        ::pretty_assertions::assert_eq!(uri.path(), "/SimpleScalarProperties", "path was incorrect");
  331    331   
    }
  332    332   
  333    333   
    /// Serializes string containing exclusively whitespace
  334    334   
    /// Test ID: SimpleScalarPropertiesPureWhiteSpace
  335    335   
    #[::tokio::test]
  336    336   
    #[::tracing_test::traced_test]
  337    337   
    async fn simple_scalar_properties_pure_white_space_request() {
  338         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         338  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  339    339   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  340    340   
  341    341   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  342    342   
        let result = client
  343    343   
            .simple_scalar_properties()
  344    344   
            .set_foo(::std::option::Option::Some("Foo".to_owned()))
  345    345   
            .set_string_value(::std::option::Option::Some("   ".to_owned()))
  346    346   
            .send()
  347    347   
            .await;
  348    348   
        let _ = dbg!(result);
  349    349   
        let http_request = request_receiver.expect_request();
  350    350   
        let expected_headers = [("Content-Type", "application/xml"), ("X-Foo", "Foo")];
  351    351   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  352    352   
        let body = http_request.body().bytes().expect("body should be strict");
  353    353   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  354    354   
            body,
  355    355   
            "<SimpleScalarPropertiesRequest>\n    <stringValue>   </stringValue>\n</SimpleScalarPropertiesRequest>\n",
  356    356   
            ::aws_smithy_protocol_test::MediaType::from("application/xml"),
  357    357   
        ));
  358    358   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  359    359   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  360    360   
        ::pretty_assertions::assert_eq!(uri.path(), "/SimpleScalarProperties", "path was incorrect");
  361    361   
    }
  362    362   
  363    363   
    /// Supports handling NaN float values.
  364    364   
    /// Test ID: RestXmlSupportsNaNFloatInputs
  365    365   
    #[::tokio::test]
  366    366   
    #[::tracing_test::traced_test]
  367    367   
    async fn rest_xml_supports_na_n_float_inputs_request() {
  368         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         368  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  369    369   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  370    370   
  371    371   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  372    372   
        let result = client
  373    373   
            .simple_scalar_properties()
  374    374   
            .set_float_value(::std::option::Option::Some(
  375    375   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("NaN").expect("invalid string for number"),
  376    376   
            ))
  377    377   
            .set_double_value(::std::option::Option::Some(
  378    378   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("NaN").expect("invalid string for number"),
  379    379   
            ))
  380    380   
            .send()
  381    381   
            .await;
  382    382   
        let _ = dbg!(result);
  383    383   
        let http_request = request_receiver.expect_request();
  384    384   
        let expected_headers = [("Content-Type", "application/xml")];
  385    385   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  386    386   
        let body = http_request.body().bytes().expect("body should be strict");
  387    387   
        ::aws_smithy_protocol_test::assert_ok(
  388    388   
        ::aws_smithy_protocol_test::validate_body(body, "<SimpleScalarPropertiesRequest>\n    <floatValue>NaN</floatValue>\n    <DoubleDribble>NaN</DoubleDribble>\n</SimpleScalarPropertiesRequest>\n", ::aws_smithy_protocol_test::MediaType::from("application/xml"))
  389    389   
        );
  390    390   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  391    391   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  392    392   
        ::pretty_assertions::assert_eq!(uri.path(), "/SimpleScalarProperties", "path was incorrect");
  393    393   
    }
  394    394   
  395    395   
    /// Supports handling Infinity float values.
  396    396   
    /// Test ID: RestXmlSupportsInfinityFloatInputs
  397    397   
    #[::tokio::test]
  398    398   
    #[::tracing_test::traced_test]
  399    399   
    async fn rest_xml_supports_infinity_float_inputs_request() {
  400         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         400  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  401    401   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  402    402   
  403    403   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  404    404   
        let result = client
  405    405   
            .simple_scalar_properties()
  406    406   
            .set_float_value(::std::option::Option::Some(
  407    407   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("Infinity").expect("invalid string for number"),
  408    408   
            ))
  409    409   
            .set_double_value(::std::option::Option::Some(
  410    410   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("Infinity").expect("invalid string for number"),
  411    411   
            ))
  412    412   
            .send()
  413    413   
            .await;
  414    414   
        let _ = dbg!(result);
  415    415   
        let http_request = request_receiver.expect_request();
  416    416   
        let expected_headers = [("Content-Type", "application/xml")];
  417    417   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  418    418   
        let body = http_request.body().bytes().expect("body should be strict");
  419    419   
        ::aws_smithy_protocol_test::assert_ok(
  420    420   
        ::aws_smithy_protocol_test::validate_body(body, "<SimpleScalarPropertiesRequest>\n    <floatValue>Infinity</floatValue>\n    <DoubleDribble>Infinity</DoubleDribble>\n</SimpleScalarPropertiesRequest>\n", ::aws_smithy_protocol_test::MediaType::from("application/xml"))
  421    421   
        );
  422    422   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  423    423   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  424    424   
        ::pretty_assertions::assert_eq!(uri.path(), "/SimpleScalarProperties", "path was incorrect");
  425    425   
    }
  426    426   
  427    427   
    /// Supports handling -Infinity float values.
  428    428   
    /// Test ID: RestXmlSupportsNegativeInfinityFloatInputs
  429    429   
    #[::tokio::test]
  430    430   
    #[::tracing_test::traced_test]
  431    431   
    async fn rest_xml_supports_negative_infinity_float_inputs_request() {
  432         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         432  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  433    433   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  434    434   
  435    435   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  436    436   
        let result = client
  437    437   
            .simple_scalar_properties()
  438    438   
            .set_float_value(::std::option::Option::Some(
  439    439   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("-Infinity").expect("invalid string for number"),
  440    440   
            ))
  441    441   
            .set_double_value(::std::option::Option::Some(
  442    442   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("-Infinity").expect("invalid string for number"),

tmp-codegen-diff/codegen-client-test/rest_xml/rust-client-codegen/src/operation/timestamp_format_headers.rs

@@ -205,205 +265,265 @@
  225    225   
  226    226   
#[allow(unreachable_code, unused_variables)]
  227    227   
#[cfg(test)]
  228    228   
mod timestamp_format_headers_test {
  229    229   
  230    230   
    /// Tests how timestamp request headers are serialized
  231    231   
    /// Test ID: TimestampFormatHeaders
  232    232   
    #[::tokio::test]
  233    233   
    #[::tracing_test::traced_test]
  234    234   
    async fn timestamp_format_headers_request() {
  235         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         235  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  236    236   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  237    237   
  238    238   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  239    239   
        let result = client
  240    240   
            .timestamp_format_headers()
  241    241   
            .set_member_epoch_seconds(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  242    242   
                1576540098, 0_f64,
  243    243   
            )))
  244    244   
            .set_member_http_date(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  245    245   
                1576540098, 0_f64,