Client Test

Client Test

rev. c4f9295a7b4566dca79c361e3a2aa9e63cdf82e7 (ignoring whitespace)

Files changed:

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

@@ -195,195 +335,335 @@
  215    215   
  216    216   
#[allow(unreachable_code, unused_variables)]
  217    217   
#[cfg(test)]
  218    218   
mod json_maps_test {
  219    219   
  220    220   
    /// Serializes JSON maps
  221    221   
    /// Test ID: RestJsonJsonMaps
  222    222   
    #[::tokio::test]
  223    223   
    #[::tracing_test::traced_test]
  224    224   
    async fn rest_json_json_maps_request() {
  225         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         225  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  226    226   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  227    227   
  228    228   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  229    229   
        let result = client
  230    230   
            .json_maps()
  231    231   
            .set_dense_struct_map(::std::option::Option::Some({
  232    232   
                let mut ret = ::std::collections::HashMap::new();
  233    233   
                ret.insert(
  234    234   
                    "foo".to_owned(),
  235    235   
                    crate::types::GreetingStruct::builder()
  236    236   
                        .set_hi(::std::option::Option::Some("there".to_owned()))
  237    237   
                        .build(),
  238    238   
                );
  239    239   
                ret.insert(
  240    240   
                    "baz".to_owned(),
  241    241   
                    crate::types::GreetingStruct::builder()
  242    242   
                        .set_hi(::std::option::Option::Some("bye".to_owned()))
  243    243   
                        .build(),
  244    244   
                );
  245    245   
                ret
  246    246   
            }))
  247    247   
            .send()
  248    248   
            .await;
  249    249   
        let _ = dbg!(result);
  250    250   
        let http_request = request_receiver.expect_request();
  251    251   
        let expected_headers = [("Content-Type", "application/json")];
  252    252   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  253    253   
        let body = http_request.body().bytes().expect("body should be strict");
  254    254   
        ::aws_smithy_protocol_test::assert_ok(
  255    255   
        ::aws_smithy_protocol_test::validate_body(body, "{\n    \"denseStructMap\": {\n        \"foo\": {\n            \"hi\": \"there\"\n        },\n        \"baz\": {\n            \"hi\": \"bye\"\n        }\n    }\n}", ::aws_smithy_protocol_test::MediaType::from("application/json"))
  256    256   
        );
  257    257   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  258    258   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  259    259   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonMaps", "path was incorrect");
  260    260   
    }
  261    261   
  262    262   
    /// Ensure that 0 and false are sent over the wire in all maps and lists
  263    263   
    /// Test ID: RestJsonSerializesZeroValuesInMaps
  264    264   
    #[::tokio::test]
  265    265   
    #[::tracing_test::traced_test]
  266    266   
    async fn rest_json_serializes_zero_values_in_maps_request() {
  267         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         267  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  268    268   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  269    269   
  270    270   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  271    271   
        let result = client
  272    272   
            .json_maps()
  273    273   
            .set_dense_number_map(::std::option::Option::Some({
  274    274   
                let mut ret = ::std::collections::HashMap::new();
  275    275   
                ret.insert("x".to_owned(), 0);
  276    276   
                ret
  277    277   
            }))
  278    278   
            .set_dense_boolean_map(::std::option::Option::Some({
  279    279   
                let mut ret = ::std::collections::HashMap::new();
  280    280   
                ret.insert("x".to_owned(), false);
  281    281   
                ret
  282    282   
            }))
  283    283   
            .send()
  284    284   
            .await;
  285    285   
        let _ = dbg!(result);
  286    286   
        let http_request = request_receiver.expect_request();
  287    287   
        let expected_headers = [("Content-Type", "application/json")];
  288    288   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  289    289   
        let body = http_request.body().bytes().expect("body should be strict");
  290    290   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  291    291   
            body,
  292    292   
            "{\n    \"denseNumberMap\": {\n        \"x\": 0\n    },\n    \"denseBooleanMap\": {\n        \"x\": false\n    }\n}",
  293    293   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  294    294   
        ));
  295    295   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  296    296   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  297    297   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonMaps", "path was incorrect");
  298    298   
    }
  299    299   
  300    300   
    /// A request that contains a dense map of sets.
  301    301   
    /// Test ID: RestJsonSerializesDenseSetMap
  302    302   
    #[::tokio::test]
  303    303   
    #[::tracing_test::traced_test]
  304    304   
    async fn rest_json_serializes_dense_set_map_request() {
  305         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         305  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  306    306   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  307    307   
  308    308   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  309    309   
        let result = client
  310    310   
            .json_maps()
  311    311   
            .set_dense_set_map(::std::option::Option::Some({
  312    312   
                let mut ret = ::std::collections::HashMap::new();
  313    313   
                ret.insert("x".to_owned(), vec![]);
  314    314   
                ret.insert("y".to_owned(), vec!["a".to_owned(), "b".to_owned()]);
  315    315   
                ret

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

@@ -202,202 +448,448 @@
  222    222   
  223    223   
#[allow(unreachable_code, unused_variables)]
  224    224   
#[cfg(test)]
  225    225   
mod json_timestamps_test {
  226    226   
  227    227   
    /// Tests how normal timestamps are serialized
  228    228   
    /// Test ID: RestJsonJsonTimestamps
  229    229   
    #[::tokio::test]
  230    230   
    #[::tracing_test::traced_test]
  231    231   
    async fn rest_json_json_timestamps_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   
            .json_timestamps()
  238    238   
            .set_normal(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  239    239   
                1398796238, 0_f64,
  240    240   
            )))
  241    241   
            .send()
  242    242   
            .await;
  243    243   
        let _ = dbg!(result);
  244    244   
        let http_request = request_receiver.expect_request();
  245    245   
        let expected_headers = [("Content-Type", "application/json")];
  246    246   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  247    247   
        let body = http_request.body().bytes().expect("body should be strict");
  248    248   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  249    249   
            body,
  250    250   
            "{\n    \"normal\": 1398796238\n}",
  251    251   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  252    252   
        ));
  253    253   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  254    254   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  255    255   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonTimestamps", "path was incorrect");
  256    256   
    }
  257    257   
  258    258   
    /// Ensures that the timestampFormat of date-time works like normal timestamps
  259    259   
    /// Test ID: RestJsonJsonTimestampsWithDateTimeFormat
  260    260   
    #[::tokio::test]
  261    261   
    #[::tracing_test::traced_test]
  262    262   
    async fn rest_json_json_timestamps_with_date_time_format_request() {
  263         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         263  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  264    264   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  265    265   
  266    266   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  267    267   
        let result = client
  268    268   
            .json_timestamps()
  269    269   
            .set_date_time(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  270    270   
                1398796238, 0_f64,
  271    271   
            )))
  272    272   
            .send()
  273    273   
            .await;
  274    274   
        let _ = dbg!(result);
  275    275   
        let http_request = request_receiver.expect_request();
  276    276   
        let expected_headers = [("Content-Type", "application/json")];
  277    277   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  278    278   
        let body = http_request.body().bytes().expect("body should be strict");
  279    279   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  280    280   
            body,
  281    281   
            "{\n    \"dateTime\": \"2014-04-29T18:30:38Z\"\n}",
  282    282   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  283    283   
        ));
  284    284   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  285    285   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  286    286   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonTimestamps", "path was incorrect");
  287    287   
    }
  288    288   
  289    289   
    /// Ensures that the timestampFormat of date-time on the target shape works like normal timestamps
  290    290   
    /// Test ID: RestJsonJsonTimestampsWithDateTimeOnTargetFormat
  291    291   
    #[::tokio::test]
  292    292   
    #[::tracing_test::traced_test]
  293    293   
    async fn rest_json_json_timestamps_with_date_time_on_target_format_request() {
  294         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         294  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  295    295   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  296    296   
  297    297   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  298    298   
        let result = client
  299    299   
            .json_timestamps()
  300    300   
            .set_date_time_on_target(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  301    301   
                1398796238, 0_f64,
  302    302   
            )))
  303    303   
            .send()
  304    304   
            .await;
  305    305   
        let _ = dbg!(result);
  306    306   
        let http_request = request_receiver.expect_request();
  307    307   
        let expected_headers = [("Content-Type", "application/json")];
  308    308   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  309    309   
        let body = http_request.body().bytes().expect("body should be strict");
  310    310   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  311    311   
            body,
  312    312   
            "{\n    \"dateTimeOnTarget\": \"2014-04-29T18:30:38Z\"\n}",
  313    313   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  314    314   
        ));
  315    315   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  316    316   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  317    317   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonTimestamps", "path was incorrect");
  318    318   
    }
  319    319   
  320    320   
    /// Ensures that the timestampFormat of epoch-seconds works
  321    321   
    /// Test ID: RestJsonJsonTimestampsWithEpochSecondsFormat
  322    322   
    #[::tokio::test]
  323    323   
    #[::tracing_test::traced_test]
  324    324   
    async fn rest_json_json_timestamps_with_epoch_seconds_format_request() {
  325         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         325  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  326    326   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  327    327   
  328    328   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  329    329   
        let result = client
  330    330   
            .json_timestamps()
  331    331   
            .set_epoch_seconds(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  332    332   
                1398796238, 0_f64,
  333    333   
            )))
  334    334   
            .send()
  335    335   
            .await;
  336    336   
        let _ = dbg!(result);
  337    337   
        let http_request = request_receiver.expect_request();
  338    338   
        let expected_headers = [("Content-Type", "application/json")];
  339    339   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  340    340   
        let body = http_request.body().bytes().expect("body should be strict");
  341    341   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  342    342   
            body,
  343    343   
            "{\n    \"epochSeconds\": 1398796238\n}",
  344    344   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  345    345   
        ));
  346    346   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  347    347   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  348    348   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonTimestamps", "path was incorrect");
  349    349   
    }
  350    350   
  351    351   
    /// Ensures that the timestampFormat of epoch-seconds on the target shape works
  352    352   
    /// Test ID: RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat
  353    353   
    #[::tokio::test]
  354    354   
    #[::tracing_test::traced_test]
  355    355   
    async fn rest_json_json_timestamps_with_epoch_seconds_on_target_format_request() {
  356         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         356  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  357    357   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  358    358   
  359    359   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  360    360   
        let result = client
  361    361   
            .json_timestamps()
  362    362   
            .set_epoch_seconds_on_target(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  363    363   
                1398796238, 0_f64,
  364    364   
            )))
  365    365   
            .send()
  366    366   
            .await;
  367    367   
        let _ = dbg!(result);
  368    368   
        let http_request = request_receiver.expect_request();
  369    369   
        let expected_headers = [("Content-Type", "application/json")];
  370    370   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  371    371   
        let body = http_request.body().bytes().expect("body should be strict");
  372    372   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  373    373   
            body,
  374    374   
            "{\n    \"epochSecondsOnTarget\": 1398796238\n}",
  375    375   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  376    376   
        ));
  377    377   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  378    378   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  379    379   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonTimestamps", "path was incorrect");
  380    380   
    }
  381    381   
  382    382   
    /// Ensures that the timestampFormat of http-date works
  383    383   
    /// Test ID: RestJsonJsonTimestampsWithHttpDateFormat
  384    384   
    #[::tokio::test]
  385    385   
    #[::tracing_test::traced_test]
  386    386   
    async fn rest_json_json_timestamps_with_http_date_format_request() {
  387         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         387  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  388    388   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  389    389   
  390    390   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  391    391   
        let result = client
  392    392   
            .json_timestamps()
  393    393   
            .set_http_date(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  394    394   
                1398796238, 0_f64,
  395    395   
            )))
  396    396   
            .send()
  397    397   
            .await;
  398    398   
        let _ = dbg!(result);
  399    399   
        let http_request = request_receiver.expect_request();
  400    400   
        let expected_headers = [("Content-Type", "application/json")];
  401    401   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  402    402   
        let body = http_request.body().bytes().expect("body should be strict");
  403    403   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  404    404   
            body,
  405    405   
            "{\n    \"httpDate\": \"Tue, 29 Apr 2014 18:30:38 GMT\"\n}",
  406    406   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  407    407   
        ));
  408    408   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  409    409   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  410    410   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonTimestamps", "path was incorrect");
  411    411   
    }
  412    412   
  413    413   
    /// Ensures that the timestampFormat of http-date on the target shape works
  414    414   
    /// Test ID: RestJsonJsonTimestampsWithHttpDateOnTargetFormat
  415    415   
    #[::tokio::test]
  416    416   
    #[::tracing_test::traced_test]
  417    417   
    async fn rest_json_json_timestamps_with_http_date_on_target_format_request() {
  418         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         418  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  419    419   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  420    420   
  421    421   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  422    422   
        let result = client
  423    423   
            .json_timestamps()
  424    424   
            .set_http_date_on_target(::std::option::Option::Some(::aws_smithy_types::DateTime::from_fractional_secs(
  425    425   
                1398796238, 0_f64,
  426    426   
            )))
  427    427   
            .send()
  428    428   
            .await;

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

@@ -199,199 +538,538 @@
  219    219   
  220    220   
#[allow(unreachable_code, unused_variables)]
  221    221   
#[cfg(test)]
  222    222   
mod json_unions_test {
  223    223   
  224    224   
    /// Serializes a string union value
  225    225   
    /// Test ID: RestJsonSerializeStringUnionValue
  226    226   
    #[::tokio::test]
  227    227   
    #[::tracing_test::traced_test]
  228    228   
    async fn rest_json_serialize_string_union_value_request() {
  229         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         229  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  230    230   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  231    231   
  232    232   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  233    233   
        let result = client
  234    234   
            .json_unions()
  235    235   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::StringValue("foo".to_owned())))
  236    236   
            .send()
  237    237   
            .await;
  238    238   
        let _ = dbg!(result);
  239    239   
        let http_request = request_receiver.expect_request();
  240    240   
        let expected_headers = [("Content-Type", "application/json")];
  241    241   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  242    242   
        let body = http_request.body().bytes().expect("body should be strict");
  243    243   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  244    244   
            body,
  245    245   
            "{\n    \"contents\": {\n        \"stringValue\": \"foo\"\n    }\n}",
  246    246   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  247    247   
        ));
  248    248   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  249    249   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  250    250   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  251    251   
    }
  252    252   
  253    253   
    /// Serializes a boolean union value
  254    254   
    /// Test ID: RestJsonSerializeBooleanUnionValue
  255    255   
    #[::tokio::test]
  256    256   
    #[::tracing_test::traced_test]
  257    257   
    async fn rest_json_serialize_boolean_union_value_request() {
  258         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         258  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  259    259   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  260    260   
  261    261   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  262    262   
        let result = client
  263    263   
            .json_unions()
  264    264   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::BooleanValue(true)))
  265    265   
            .send()
  266    266   
            .await;
  267    267   
        let _ = dbg!(result);
  268    268   
        let http_request = request_receiver.expect_request();
  269    269   
        let expected_headers = [("Content-Type", "application/json")];
  270    270   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  271    271   
        let body = http_request.body().bytes().expect("body should be strict");
  272    272   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  273    273   
            body,
  274    274   
            "{\n    \"contents\": {\n        \"booleanValue\": true\n    }\n}",
  275    275   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  276    276   
        ));
  277    277   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  278    278   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  279    279   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  280    280   
    }
  281    281   
  282    282   
    /// Serializes a number union value
  283    283   
    /// Test ID: RestJsonSerializeNumberUnionValue
  284    284   
    #[::tokio::test]
  285    285   
    #[::tracing_test::traced_test]
  286    286   
    async fn rest_json_serialize_number_union_value_request() {
  287         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         287  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  288    288   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  289    289   
  290    290   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  291    291   
        let result = client
  292    292   
            .json_unions()
  293    293   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::NumberValue(1)))
  294    294   
            .send()
  295    295   
            .await;
  296    296   
        let _ = dbg!(result);
  297    297   
        let http_request = request_receiver.expect_request();
  298    298   
        let expected_headers = [("Content-Type", "application/json")];
  299    299   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  300    300   
        let body = http_request.body().bytes().expect("body should be strict");
  301    301   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  302    302   
            body,
  303    303   
            "{\n    \"contents\": {\n        \"numberValue\": 1\n    }\n}",
  304    304   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  305    305   
        ));
  306    306   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  307    307   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  308    308   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  309    309   
    }
  310    310   
  311    311   
    /// Serializes a blob union value
  312    312   
    /// Test ID: RestJsonSerializeBlobUnionValue
  313    313   
    #[::tokio::test]
  314    314   
    #[::tracing_test::traced_test]
  315    315   
    async fn rest_json_serialize_blob_union_value_request() {
  316         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         316  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  317    317   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  318    318   
  319    319   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  320    320   
        let result = client
  321    321   
            .json_unions()
  322    322   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::BlobValue(
  323    323   
                ::aws_smithy_types::Blob::new("foo"),
  324    324   
            )))
  325    325   
            .send()
  326    326   
            .await;
  327    327   
        let _ = dbg!(result);
  328    328   
        let http_request = request_receiver.expect_request();
  329    329   
        let expected_headers = [("Content-Type", "application/json")];
  330    330   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  331    331   
        let body = http_request.body().bytes().expect("body should be strict");
  332    332   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  333    333   
            body,
  334    334   
            "{\n    \"contents\": {\n        \"blobValue\": \"Zm9v\"\n    }\n}",
  335    335   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  336    336   
        ));
  337    337   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  338    338   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  339    339   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  340    340   
    }
  341    341   
  342    342   
    /// Serializes a timestamp union value
  343    343   
    /// Test ID: RestJsonSerializeTimestampUnionValue
  344    344   
    #[::tokio::test]
  345    345   
    #[::tracing_test::traced_test]
  346    346   
    async fn rest_json_serialize_timestamp_union_value_request() {
  347         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         347  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  348    348   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  349    349   
  350    350   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  351    351   
        let result = client
  352    352   
            .json_unions()
  353    353   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::TimestampValue(
  354    354   
                ::aws_smithy_types::DateTime::from_fractional_secs(1398796238, 0_f64),
  355    355   
            )))
  356    356   
            .send()
  357    357   
            .await;
  358    358   
        let _ = dbg!(result);
  359    359   
        let http_request = request_receiver.expect_request();
  360    360   
        let expected_headers = [("Content-Type", "application/json")];
  361    361   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  362    362   
        let body = http_request.body().bytes().expect("body should be strict");
  363    363   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  364    364   
            body,
  365    365   
            "{\n    \"contents\": {\n        \"timestampValue\": 1398796238\n    }\n}",
  366    366   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  367    367   
        ));
  368    368   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  369    369   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  370    370   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  371    371   
    }
  372    372   
  373    373   
    /// Serializes an enum union value
  374    374   
    /// Test ID: RestJsonSerializeEnumUnionValue
  375    375   
    #[::tokio::test]
  376    376   
    #[::tracing_test::traced_test]
  377    377   
    async fn rest_json_serialize_enum_union_value_request() {
  378         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         378  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  379    379   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  380    380   
  381    381   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  382    382   
        let result = client
  383    383   
            .json_unions()
  384    384   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::EnumValue(
  385    385   
                "Foo".parse::<crate::types::FooEnum>().expect("static value validated to member"),
  386    386   
            )))
  387    387   
            .send()
  388    388   
            .await;
  389    389   
        let _ = dbg!(result);
  390    390   
        let http_request = request_receiver.expect_request();
  391    391   
        let expected_headers = [("Content-Type", "application/json")];
  392    392   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  393    393   
        let body = http_request.body().bytes().expect("body should be strict");
  394    394   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  395    395   
            body,
  396    396   
            "{\n    \"contents\": {\n        \"enumValue\": \"Foo\"\n    }\n}",
  397    397   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  398    398   
        ));
  399    399   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  400    400   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  401    401   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  402    402   
    }
  403    403   
  404    404   
    /// Serializes a list union value
  405    405   
    /// Test ID: RestJsonSerializeListUnionValue
  406    406   
    #[::tokio::test]
  407    407   
    #[::tracing_test::traced_test]
  408    408   
    async fn rest_json_serialize_list_union_value_request() {
  409         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         409  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  410    410   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  411    411   
  412    412   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  413    413   
        let result = client
  414    414   
            .json_unions()
  415    415   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::ListValue(vec![
  416    416   
                "foo".to_owned(),
  417    417   
                "bar".to_owned(),
  418    418   
            ])))
  419    419   
            .send()
  420    420   
            .await;
  421    421   
        let _ = dbg!(result);
  422    422   
        let http_request = request_receiver.expect_request();
  423    423   
        let expected_headers = [("Content-Type", "application/json")];
  424    424   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  425    425   
        let body = http_request.body().bytes().expect("body should be strict");
  426    426   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  427    427   
            body,
  428    428   
            "{\n    \"contents\": {\n        \"listValue\": [\"foo\", \"bar\"]\n    }\n}",
  429    429   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  430    430   
        ));
  431    431   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  432    432   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  433    433   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  434    434   
    }
  435    435   
  436    436   
    /// Serializes a map union value
  437    437   
    /// Test ID: RestJsonSerializeMapUnionValue
  438    438   
    #[::tokio::test]
  439    439   
    #[::tracing_test::traced_test]
  440    440   
    async fn rest_json_serialize_map_union_value_request() {
  441         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         441  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  442    442   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  443    443   
  444    444   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  445    445   
        let result = client
  446    446   
            .json_unions()
  447    447   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::MapValue({
  448    448   
                let mut ret = ::std::collections::HashMap::new();
  449    449   
                ret.insert("foo".to_owned(), "bar".to_owned());
  450    450   
                ret.insert("spam".to_owned(), "eggs".to_owned());
  451    451   
                ret
  452    452   
            })))
  453    453   
            .send()
  454    454   
            .await;
  455    455   
        let _ = dbg!(result);
  456    456   
        let http_request = request_receiver.expect_request();
  457    457   
        let expected_headers = [("Content-Type", "application/json")];
  458    458   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  459    459   
        let body = http_request.body().bytes().expect("body should be strict");
  460    460   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  461    461   
            body,
  462    462   
            "{\n    \"contents\": {\n        \"mapValue\": {\n            \"foo\": \"bar\",\n            \"spam\": \"eggs\"\n        }\n    }\n}",
  463    463   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  464    464   
        ));
  465    465   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  466    466   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  467    467   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  468    468   
    }
  469    469   
  470    470   
    /// Serializes a structure union value
  471    471   
    /// Test ID: RestJsonSerializeStructureUnionValue
  472    472   
    #[::tokio::test]
  473    473   
    #[::tracing_test::traced_test]
  474    474   
    async fn rest_json_serialize_structure_union_value_request() {
  475         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         475  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  476    476   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  477    477   
  478    478   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  479    479   
        let result = client
  480    480   
            .json_unions()
  481    481   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::StructureValue(
  482    482   
                crate::types::GreetingStruct::builder()
  483    483   
                    .set_hi(::std::option::Option::Some("hello".to_owned()))
  484    484   
                    .build(),
  485    485   
            )))
  486    486   
            .send()
  487    487   
            .await;
  488    488   
        let _ = dbg!(result);
  489    489   
        let http_request = request_receiver.expect_request();
  490    490   
        let expected_headers = [("Content-Type", "application/json")];
  491    491   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  492    492   
        let body = http_request.body().bytes().expect("body should be strict");
  493    493   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  494    494   
            body,
  495    495   
            "{\n    \"contents\": {\n        \"structureValue\": {\n            \"hi\": \"hello\"\n        }\n    }\n}",
  496    496   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  497    497   
        ));
  498    498   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  499    499   
        ::pretty_assertions::assert_eq!(http_request.method(), "PUT", "method was incorrect");
  500    500   
        ::pretty_assertions::assert_eq!(uri.path(), "/JsonUnions", "path was incorrect");
  501    501   
    }
  502    502   
  503    503   
    /// Serializes a renamed structure union value
  504    504   
    /// Test ID: RestJsonSerializeRenamedStructureUnionValue
  505    505   
    #[::tokio::test]
  506    506   
    #[::tracing_test::traced_test]
  507    507   
    async fn rest_json_serialize_renamed_structure_union_value_request() {
  508         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         508  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  509    509   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  510    510   
  511    511   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  512    512   
        let result = client
  513    513   
            .json_unions()
  514    514   
            .set_contents(::std::option::Option::Some(crate::types::MyUnion::RenamedStructureValue(
  515    515   
                crate::types::RenamedGreeting::builder()
  516    516   
                    .set_salutation(::std::option::Option::Some("hello!".to_owned()))
  517    517   
                    .build(),
  518    518   
            )))

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

@@ -199,199 +259,259 @@
  219    219   
  220    220   
#[allow(unreachable_code, unused_variables)]
  221    221   
#[cfg(test)]
  222    222   
mod media_type_header_test {
  223    223   
  224    224   
    /// Headers that target strings with a mediaType are base64 encoded
  225    225   
    /// Test ID: MediaTypeHeaderInputBase64
  226    226   
    #[::tokio::test]
  227    227   
    #[::tracing_test::traced_test]
  228    228   
    async fn media_type_header_input_base64_request() {
  229         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         229  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  230    230   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  231    231   
  232    232   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  233    233   
        let result = client
  234    234   
            .media_type_header()
  235    235   
            .set_json(::std::option::Option::Some("true".to_owned()))
  236    236   
            .send()
  237    237   
            .await;
  238    238   
        let _ = dbg!(result);
  239    239   
        let http_request = request_receiver.expect_request();

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

@@ -206,206 +266,266 @@
  226    226   
#[cfg(test)]
  227    227   
mod no_input_and_no_output_test {
  228    228   
  229    229   
    /// No input serializes no payload. When clients do not need to
  230    230   
    /// serialize any data in the payload, they should omit a payload
  231    231   
    /// altogether.
  232    232   
    /// Test ID: RestJsonNoInputAndNoOutput
  233    233   
    #[::tokio::test]
  234    234   
    #[::tracing_test::traced_test]
  235    235   
    async fn rest_json_no_input_and_no_output_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.no_input_and_no_output().send().await;
  241    241   
        let _ = dbg!(result);
  242    242   
        let http_request = request_receiver.expect_request();
  243    243   
        let body = http_request.body().bytes().expect("body should be strict");
  244    244   
        // No body.
  245    245   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  246    246   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");

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

@@ -200,200 +260,260 @@
  220    220   
#[cfg(test)]
  221    221   
mod no_input_and_output_test {
  222    222   
  223    223   
    /// No input serializes no payload. When clients do not need to
  224    224   
    /// serialize any data in the payload, they should omit a payload
  225    225   
    /// altogether.
  226    226   
    /// Test ID: RestJsonNoInputAndOutput
  227    227   
    #[::tokio::test]
  228    228   
    #[::tracing_test::traced_test]
  229    229   
    async fn rest_json_no_input_and_output_request() {
  230         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         230  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  231    231   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  232    232   
  233    233   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  234    234   
        let result = client.no_input_and_output().send().await;
  235    235   
        let _ = dbg!(result);
  236    236   
        let http_request = request_receiver.expect_request();
  237    237   
        let body = http_request.body().bytes().expect("body should be strict");
  238    238   
        // No body.
  239    239   
        ::pretty_assertions::assert_eq!(&body, &bytes::Bytes::new());
  240    240   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");

tmp-codegen-diff/codegen-client-test/rest_json/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: RestJsonNullAndEmptyHeaders
  232    232   
    #[::tokio::test]
  233    233   
    #[::tracing_test::traced_test]
  234    234   
    async fn rest_json_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_json/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: RestJsonOmitsNullQuery
  251    251   
    #[::tokio::test]
  252    252   
    #[::tracing_test::traced_test]
  253    253   
    async fn rest_json_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: RestJsonSerializesEmptyQueryValue
  275    275   
    #[::tokio::test]
  276    276   
    #[::tracing_test::traced_test]
  277    277   
    async fn rest_json_serializes_empty_query_value_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_json/rust-client-codegen/src/operation/omits_serializing_empty_lists.rs

@@ -264,264 +324,324 @@
  284    284   
  285    285   
#[allow(unreachable_code, unused_variables)]
  286    286   
#[cfg(test)]
  287    287   
mod omits_serializing_empty_lists_test {
  288    288   
  289    289   
    /// Supports omitting empty lists.
  290    290   
    /// Test ID: RestJsonOmitsEmptyListQueryValues
  291    291   
    #[::tokio::test]
  292    292   
    #[::tracing_test::traced_test]
  293    293   
    async fn rest_json_omits_empty_list_query_values_request() {
  294         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         294  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  295    295   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  296    296   
  297    297   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  298    298   
        let result = client
  299    299   
            .omits_serializing_empty_lists()
  300    300   
            .set_query_string_list(::std::option::Option::Some(vec![]))
  301    301   
            .set_query_integer_list(::std::option::Option::Some(vec![]))
  302    302   
            .set_query_double_list(::std::option::Option::Some(vec![]))
  303    303   
            .set_query_boolean_list(::std::option::Option::Some(vec![]))
  304    304   
            .set_query_timestamp_list(::std::option::Option::Some(vec![]))

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

@@ -212,212 +325,325 @@
  232    232   
#[cfg(test)]
  233    233   
mod operation_with_defaults_test {
  234    234   
    use ::aws_smithy_protocol_test::FloatEquals;
  235    235   
  236    236   
    /// Client populates default values in input.
  237    237   
    /// Test ID: RestJsonClientPopulatesDefaultValuesInInput
  238    238   
    #[::tokio::test]
  239    239   
    #[::tracing_test::traced_test]
  240    240   
    #[should_panic]
  241    241   
    async fn rest_json_client_populates_default_values_in_input_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   
            .operation_with_defaults()
  248    248   
            .set_defaults(::std::option::Option::Some(crate::types::Defaults::builder().build()))
  249    249   
            .send()
  250    250   
            .await;
  251    251   
        let _ = dbg!(result);
  252    252   
        let http_request = request_receiver.expect_request();
  253    253   
        let expected_headers = [("Content-Type", "application/json")];
  254    254   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  255    255   
        let body = http_request.body().bytes().expect("body should be strict");
  256    256   
        ::aws_smithy_protocol_test::assert_ok(
  257    257   
        ::aws_smithy_protocol_test::validate_body(body, "{\n    \"defaults\": {\n        \"defaultString\": \"hi\",\n        \"defaultBoolean\": true,\n        \"defaultList\": [],\n        \"defaultDocumentMap\": {},\n        \"defaultDocumentString\": \"hi\",\n        \"defaultDocumentBoolean\": true,\n        \"defaultDocumentList\": [],\n        \"defaultTimestamp\": 0,\n        \"defaultBlob\": \"YWJj\",\n        \"defaultByte\": 1,\n        \"defaultShort\": 1,\n        \"defaultInteger\": 10,\n        \"defaultLong\": 100,\n        \"defaultFloat\": 1.0,\n        \"defaultDouble\": 1.0,\n        \"defaultMap\": {},\n        \"defaultEnum\": \"FOO\",\n        \"defaultIntEnum\": 1,\n        \"emptyString\": \"\",\n        \"falseBoolean\": false,\n        \"emptyBlob\": \"\",\n        \"zeroByte\": 0,\n        \"zeroShort\": 0,\n        \"zeroInteger\": 0,\n        \"zeroLong\": 0,\n        \"zeroFloat\": 0.0,\n        \"zeroDouble\": 0.0\n    }\n}", ::aws_smithy_protocol_test::MediaType::from("application/json"))
  258    258   
        );
  259    259   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  260    260   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  261    261   
        ::pretty_assertions::assert_eq!(uri.path(), "/OperationWithDefaults", "path was incorrect");
  262    262   
    }
  263    263   
  264    264   
    /// Client skips top level default values in input.
  265    265   
    /// Test ID: RestJsonClientSkipsTopLevelDefaultValuesInInput
  266    266   
    #[::tokio::test]
  267    267   
    #[::tracing_test::traced_test]
  268    268   
    async fn rest_json_client_skips_top_level_default_values_in_input_request() {
  269         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         269  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  270    270   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  271    271   
  272    272   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  273    273   
        let result = client.operation_with_defaults().send().await;
  274    274   
        let _ = dbg!(result);
  275    275   
        let http_request = request_receiver.expect_request();
  276    276   
        let expected_headers = [("Content-Type", "application/json")];
  277    277   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  278    278   
        let body = http_request.body().bytes().expect("body should be strict");
  279    279   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  280    280   
            body,
  281    281   
            "{\n}",
  282    282   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  283    283   
        ));
  284    284   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  285    285   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  286    286   
        ::pretty_assertions::assert_eq!(uri.path(), "/OperationWithDefaults", "path was incorrect");
  287    287   
    }
  288    288   
  289    289   
    /// Client uses explicitly provided member values over defaults
  290    290   
    /// Test ID: RestJsonClientUsesExplicitlyProvidedMemberValuesOverDefaults
  291    291   
    #[::tokio::test]
  292    292   
    #[::tracing_test::traced_test]
  293    293   
    #[should_panic]
  294    294   
    async fn rest_json_client_uses_explicitly_provided_member_values_over_defaults_request() {
  295         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         295  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  296    296   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  297    297   
  298    298   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  299    299   
        let result = client
  300    300   
            .operation_with_defaults()
  301    301   
            .set_defaults(::std::option::Option::Some(
  302    302   
                crate::types::Defaults::builder()
  303    303   
                    .set_default_string(::std::option::Option::Some("bye".to_owned()))
  304    304   
                    .set_default_boolean(::std::option::Option::Some(true))
  305    305   
                    .set_default_list(::std::option::Option::Some(vec!["a".to_owned()]))
@@ -353,353 +443,443 @@
  373    373   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  374    374   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  375    375   
        ::pretty_assertions::assert_eq!(uri.path(), "/OperationWithDefaults", "path was incorrect");
  376    376   
    }
  377    377   
  378    378   
    /// Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.
  379    379   
    /// Test ID: RestJsonClientUsesExplicitlyProvidedValuesInTopLevel
  380    380   
    #[::tokio::test]
  381    381   
    #[::tracing_test::traced_test]
  382    382   
    async fn rest_json_client_uses_explicitly_provided_values_in_top_level_request() {
  383         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         383  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  384    384   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  385    385   
  386    386   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  387    387   
        let result = client
  388    388   
            .operation_with_defaults()
  389    389   
            .set_top_level_default(::std::option::Option::Some("hi".to_owned()))
  390    390   
            .set_other_top_level_default(::std::option::Option::Some(0))
  391    391   
            .send()
  392    392   
            .await;
  393    393   
        let _ = dbg!(result);
  394    394   
        let http_request = request_receiver.expect_request();
  395    395   
        let expected_headers = [("Content-Type", "application/json")];
  396    396   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  397    397   
        let body = http_request.body().bytes().expect("body should be strict");
  398    398   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  399    399   
            body,
  400    400   
            "{\n    \"topLevelDefault\": \"hi\",\n    \"otherTopLevelDefault\": 0\n}",
  401    401   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  402    402   
        ));
  403    403   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  404    404   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  405    405   
        ::pretty_assertions::assert_eq!(uri.path(), "/OperationWithDefaults", "path was incorrect");
  406    406   
    }
  407    407   
  408    408   
    /// Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.
  409    409   
    /// Test ID: RestJsonClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional
  410    410   
    #[::tokio::test]
  411    411   
    #[::tracing_test::traced_test]
  412    412   
    async fn rest_json_client_ignores_non_top_level_defaults_on_members_with_client_optional_request() {
  413         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         413  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  414    414   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  415    415   
  416    416   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  417    417   
        let result = client
  418    418   
            .operation_with_defaults()
  419    419   
            .set_client_optional_defaults(::std::option::Option::Some(crate::types::ClientOptionalDefaults::builder().build()))
  420    420   
            .send()
  421    421   
            .await;
  422    422   
        let _ = dbg!(result);
  423    423   
        let http_request = request_receiver.expect_request();

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

@@ -210,210 +270,270 @@
  230    230   
  231    231   
#[allow(unreachable_code, unused_variables)]
  232    232   
#[cfg(test)]
  233    233   
mod operation_with_nested_structure_test {
  234    234   
  235    235   
    /// Client populates nested default values when missing.
  236    236   
    /// Test ID: RestJsonClientPopulatesNestedDefaultValuesWhenMissing
  237    237   
    #[::tokio::test]
  238    238   
    #[::tracing_test::traced_test]
  239    239   
    async fn rest_json_client_populates_nested_default_values_when_missing_request() {
  240         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         240  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  241    241   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  242    242   
  243    243   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  244    244   
        let result = client
  245    245   
            .operation_with_nested_structure()
  246    246   
            .set_top_level(::std::option::Option::Some(
  247    247   
                crate::types::TopLevel::builder()
  248    248   
                    .set_dialog(::std::option::Option::Some(
  249    249   
                        crate::types::Dialog::builder()
  250    250   
                            .set_language(::std::option::Option::Some("en".to_owned()))

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

@@ -202,202 +262,262 @@
  222    222   
  223    223   
#[allow(unreachable_code, unused_variables)]
  224    224   
#[cfg(test)]
  225    225   
mod post_player_action_test {
  226    226   
  227    227   
    /// Unit types in unions are serialized like normal structures in requests.
  228    228   
    /// Test ID: RestJsonInputUnionWithUnitMember
  229    229   
    #[::tokio::test]
  230    230   
    #[::tracing_test::traced_test]
  231    231   
    async fn rest_json_input_union_with_unit_member_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   
            .post_player_action()
  238    238   
            .set_action(::std::option::Option::Some(crate::types::PlayerAction::Quit))
  239    239   
            .send()
  240    240   
            .await;
  241    241   
        let _ = dbg!(result);
  242    242   
        let http_request = request_receiver.expect_request();

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

@@ -210,210 +328,328 @@
  230    230   
  231    231   
#[allow(unreachable_code, unused_variables)]
  232    232   
#[cfg(test)]
  233    233   
mod post_union_with_json_name_test {
  234    234   
  235    235   
    /// Tests that jsonName works with union members.
  236    236   
    /// Test ID: PostUnionWithJsonNameRequest1
  237    237   
    #[::tokio::test]
  238    238   
    #[::tracing_test::traced_test]
  239    239   
    async fn post_union_with_json_name_request1_request() {
  240         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         240  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  241    241   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  242    242   
  243    243   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  244    244   
        let result = client
  245    245   
            .post_union_with_json_name()
  246    246   
            .set_value(::std::option::Option::Some(crate::types::UnionWithJsonName::Foo("hi".to_owned())))
  247    247   
            .send()
  248    248   
            .await;
  249    249   
        let _ = dbg!(result);
  250    250   
        let http_request = request_receiver.expect_request();
  251    251   
        let expected_headers = [("Content-Type", "application/json")];
  252    252   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  253    253   
        let body = http_request.body().bytes().expect("body should be strict");
  254    254   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  255    255   
            body,
  256    256   
            "{\n    \"value\": {\n        \"FOO\": \"hi\"\n    }\n}",
  257    257   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  258    258   
        ));
  259    259   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  260    260   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  261    261   
        ::pretty_assertions::assert_eq!(uri.path(), "/PostUnionWithJsonName", "path was incorrect");
  262    262   
    }
  263    263   
  264    264   
    /// Tests that jsonName works with union members.
  265    265   
    /// Test ID: PostUnionWithJsonNameRequest2
  266    266   
    #[::tokio::test]
  267    267   
    #[::tracing_test::traced_test]
  268    268   
    async fn post_union_with_json_name_request2_request() {
  269         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         269  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  270    270   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  271    271   
  272    272   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  273    273   
        let result = client
  274    274   
            .post_union_with_json_name()
  275    275   
            .set_value(::std::option::Option::Some(crate::types::UnionWithJsonName::Baz("hi".to_owned())))
  276    276   
            .send()
  277    277   
            .await;
  278    278   
        let _ = dbg!(result);
  279    279   
        let http_request = request_receiver.expect_request();
  280    280   
        let expected_headers = [("Content-Type", "application/json")];
  281    281   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  282    282   
        let body = http_request.body().bytes().expect("body should be strict");
  283    283   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  284    284   
            body,
  285    285   
            "{\n    \"value\": {\n        \"_baz\": \"hi\"\n    }\n}",
  286    286   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  287    287   
        ));
  288    288   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  289    289   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  290    290   
        ::pretty_assertions::assert_eq!(uri.path(), "/PostUnionWithJsonName", "path was incorrect");
  291    291   
    }
  292    292   
  293    293   
    /// Tests that jsonName works with union members.
  294    294   
    /// Test ID: PostUnionWithJsonNameRequest3
  295    295   
    #[::tokio::test]
  296    296   
    #[::tracing_test::traced_test]
  297    297   
    async fn post_union_with_json_name_request3_request() {
  298         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         298  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  299    299   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  300    300   
  301    301   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  302    302   
        let result = client
  303    303   
            .post_union_with_json_name()
  304    304   
            .set_value(::std::option::Option::Some(crate::types::UnionWithJsonName::Bar("hi".to_owned())))
  305    305   
            .send()
  306    306   
            .await;
  307    307   
        let _ = dbg!(result);
  308    308   
        let http_request = request_receiver.expect_request();

tmp-codegen-diff/codegen-client-test/rest_json/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_restJson1
  240    240   
    #[::tokio::test]
  241    241   
    #[::tracing_test::traced_test]
  242    242   
    async fn sdk_applied_content_encoding_rest_json1_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\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T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Enp25VOdMP46SQXS\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_restJson1
  268    268   
    #[::tokio::test]
  269    269   
    #[::tracing_test::traced_test]
  270    270   
    async fn sdk_appended_gzip_after_provided_encoding_rest_json1_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_json/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: RestJsonQueryIdempotencyTokenAutoFill
  254    254   
    #[::tokio::test]
  255    255   
    #[::tracing_test::traced_test]
  256    256   
    async fn rest_json_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: RestJsonQueryIdempotencyTokenAutoFillIsSet
  276    276   
    #[::tokio::test]
  277    277   
    #[::tracing_test::traced_test]
  278    278   
    async fn rest_json_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_json/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: RestJsonQueryParamsStringListMap
  256    256   
    #[::tokio::test]
  257    257   
    #[::tracing_test::traced_test]
  258    258   
    async fn rest_json_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