Client Test

Client Test

rev. 1fb202108840af7ccb1069c5b8afebf43a5e5aec

Files changed:

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

@@ -212,212 +272,272 @@
  232    232   
  233    233   
#[allow(unreachable_code, unused_variables)]
  234    234   
#[cfg(test)]
  235    235   
mod empty_input_and_empty_output_test {
  236    236   
  237    237   
    /// Clients must always send an empty object if input is modeled.
  238    238   
    /// Test ID: AwsJson10EmptyInputAndEmptyOutput
  239    239   
    #[::tokio::test]
  240    240   
    #[::tracing_test::traced_test]
  241    241   
    async fn aws_json10_empty_input_and_empty_output_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.empty_input_and_empty_output().send().await;
  247    247   
        let _ = dbg!(result);
  248    248   
        let http_request = request_receiver.expect_request();
  249    249   
        let expected_headers = [
  250    250   
            ("Content-Type", "application/x-amz-json-1.0"),
  251    251   
            ("X-Amz-Target", "JsonRpc10.EmptyInputAndEmptyOutput"),
  252    252   
        ];

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

@@ -209,209 +269,269 @@
  229    229   
#[allow(unreachable_code, unused_variables)]
  230    230   
#[cfg(test)]
  231    231   
mod endpoint_operation_test {
  232    232   
  233    233   
    /// Operations can prepend to the given host if they define the
  234    234   
    /// endpoint trait.
  235    235   
    /// Test ID: AwsJson10EndpointTrait
  236    236   
    #[::tokio::test]
  237    237   
    #[::tracing_test::traced_test]
  238    238   
    async fn aws_json10_endpoint_trait_request() {
  239         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         239  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  240    240   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  241    241   
  242    242   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  243    243   
        let result = client.endpoint_operation().send().await;
  244    244   
        let _ = dbg!(result);
  245    245   
        let http_request = request_receiver.expect_request();
  246    246   
        let body = http_request.body().bytes().expect("body should be strict");
  247    247   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  248    248   
            body,
  249    249   
            "{}",

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

@@ -234,234 +294,294 @@
  254    254   
#[cfg(test)]
  255    255   
mod endpoint_with_host_label_operation_test {
  256    256   
  257    257   
    /// Operations can prepend to the given host if they define the
  258    258   
    /// endpoint trait, and can use the host label trait to define
  259    259   
    /// further customization based on user input.
  260    260   
    /// Test ID: AwsJson10EndpointTraitWithHostLabel
  261    261   
    #[::tokio::test]
  262    262   
    #[::tracing_test::traced_test]
  263    263   
    async fn aws_json10_endpoint_trait_with_host_label_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   
            .endpoint_with_host_label_operation()
  270    270   
            .set_label(::std::option::Option::Some("bar".to_owned()))
  271    271   
            .send()
  272    272   
            .await;
  273    273   
        let _ = dbg!(result);
  274    274   
        let http_request = request_receiver.expect_request();

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

@@ -206,206 +266,266 @@
  226    226   
  227    227   
#[allow(unreachable_code, unused_variables)]
  228    228   
#[cfg(test)]
  229    229   
mod host_with_path_operation_test {
  230    230   
  231    231   
    /// Custom endpoints supplied by users can have paths
  232    232   
    /// Test ID: AwsJson10HostWithPath
  233    233   
    #[::tokio::test]
  234    234   
    #[::tracing_test::traced_test]
  235    235   
    async fn aws_json10_host_with_path_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()
  238    238   
            .with_test_defaults()
  239    239   
            .endpoint_url("https://example.com/custom");
  240    240   
  241    241   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  242    242   
        let result = client.host_with_path_operation().send().await;
  243    243   
        let _ = dbg!(result);
  244    244   
        let http_request = request_receiver.expect_request();
  245    245   
        let body = http_request.body().bytes().expect("body should be strict");
  246    246   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(

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

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

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

@@ -211,211 +271,271 @@
  231    231   
    /// Clients must always send an empty JSON object payload for
  232    232   
    /// operations with no input (that is, `{}`). While AWS service
  233    233   
    /// implementations support requests with no payload or requests
  234    234   
    /// that send `{}`, always sending `{}` from the client is
  235    235   
    /// preferred for forward compatibility in case input is ever
  236    236   
    /// added to an operation.
  237    237   
    /// Test ID: AwsJson10MustAlwaysSendEmptyJsonPayload
  238    238   
    #[::tokio::test]
  239    239   
    #[::tracing_test::traced_test]
  240    240   
    async fn aws_json10_must_always_send_empty_json_payload_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.no_input_and_no_output().send().await;
  246    246   
        let _ = dbg!(result);
  247    247   
        let http_request = request_receiver.expect_request();
  248    248   
        let expected_headers = [
  249    249   
            ("Content-Type", "application/x-amz-json-1.0"),
  250    250   
            ("X-Amz-Target", "JsonRpc10.NoInputAndNoOutput"),
  251    251   
        ];

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

@@ -203,203 +263,263 @@
  223    223   
  224    224   
#[allow(unreachable_code, unused_variables)]
  225    225   
#[cfg(test)]
  226    226   
mod no_input_and_output_test {
  227    227   
  228    228   
    /// A client should always send and empty JSON object payload.
  229    229   
    /// Test ID: AwsJson10NoInputAndOutput
  230    230   
    #[::tokio::test]
  231    231   
    #[::tracing_test::traced_test]
  232    232   
    async fn aws_json10_no_input_and_output_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.no_input_and_output().send().await;
  238    238   
        let _ = dbg!(result);
  239    239   
        let http_request = request_receiver.expect_request();
  240    240   
        let expected_headers = [
  241    241   
            ("Content-Type", "application/x-amz-json-1.0"),
  242    242   
            ("X-Amz-Target", "JsonRpc10.NoInputAndOutput"),
  243    243   
        ];

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

@@ -211,211 +324,324 @@
  231    231   
#[cfg(test)]
  232    232   
mod operation_with_defaults_test {
  233    233   
    use ::aws_smithy_protocol_test::FloatEquals;
  234    234   
  235    235   
    /// Client populates default values in input.
  236    236   
    /// Test ID: AwsJson10ClientPopulatesDefaultValuesInInput
  237    237   
    #[::tokio::test]
  238    238   
    #[::tracing_test::traced_test]
  239    239   
    #[should_panic]
  240    240   
    async fn aws_json10_client_populates_default_values_in_input_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   
            .operation_with_defaults()
  247    247   
            .set_defaults(::std::option::Option::Some(crate::types::Defaults::builder().build()))
  248    248   
            .send()
  249    249   
            .await;
  250    250   
        let _ = dbg!(result);
  251    251   
        let http_request = request_receiver.expect_request();
  252    252   
        let expected_headers = [("Content-Type", "application/x-amz-json-1.0")];
  253    253   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  254    254   
        let body = http_request.body().bytes().expect("body should be strict");
  255    255   
        ::aws_smithy_protocol_test::assert_ok(
  256    256   
        ::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"))
  257    257   
        );
  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(), "/", "path was incorrect");
  261    261   
    }
  262    262   
  263    263   
    /// Client skips top level default values in input.
  264    264   
    /// Test ID: AwsJson10ClientSkipsTopLevelDefaultValuesInInput
  265    265   
    #[::tokio::test]
  266    266   
    #[::tracing_test::traced_test]
  267    267   
    async fn aws_json10_client_skips_top_level_default_values_in_input_request() {
  268         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         268  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  269    269   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  270    270   
  271    271   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  272    272   
        let result = client.operation_with_defaults().send().await;
  273    273   
        let _ = dbg!(result);
  274    274   
        let http_request = request_receiver.expect_request();
  275    275   
        let expected_headers = [("Content-Type", "application/x-amz-json-1.0")];
  276    276   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  277    277   
        let body = http_request.body().bytes().expect("body should be strict");
  278    278   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  279    279   
            body,
  280    280   
            "{\n}",
  281    281   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  282    282   
        ));
  283    283   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  284    284   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  285    285   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  286    286   
    }
  287    287   
  288    288   
    /// Client uses explicitly provided member values over defaults
  289    289   
    /// Test ID: AwsJson10ClientUsesExplicitlyProvidedMemberValuesOverDefaults
  290    290   
    #[::tokio::test]
  291    291   
    #[::tracing_test::traced_test]
  292    292   
    #[should_panic]
  293    293   
    async fn aws_json10_client_uses_explicitly_provided_member_values_over_defaults_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   
            .operation_with_defaults()
  300    300   
            .set_defaults(::std::option::Option::Some(
  301    301   
                crate::types::Defaults::builder()
  302    302   
                    .set_default_string(::std::option::Option::Some("bye".to_owned()))
  303    303   
                    .set_default_boolean(::std::option::Option::Some(true))
  304    304   
                    .set_default_list(::std::option::Option::Some(vec!["a".to_owned()]))
@@ -352,352 +442,442 @@
  372    372   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  373    373   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  374    374   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  375    375   
    }
  376    376   
  377    377   
    /// Any time a value is provided for a member in the top level of input, it is used, regardless of if its the default.
  378    378   
    /// Test ID: AwsJson10ClientUsesExplicitlyProvidedValuesInTopLevel
  379    379   
    #[::tokio::test]
  380    380   
    #[::tracing_test::traced_test]
  381    381   
    async fn aws_json10_client_uses_explicitly_provided_values_in_top_level_request() {
  382         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         382  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  383    383   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  384    384   
  385    385   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  386    386   
        let result = client
  387    387   
            .operation_with_defaults()
  388    388   
            .set_top_level_default(::std::option::Option::Some("hi".to_owned()))
  389    389   
            .set_other_top_level_default(::std::option::Option::Some(0))
  390    390   
            .send()
  391    391   
            .await;
  392    392   
        let _ = dbg!(result);
  393    393   
        let http_request = request_receiver.expect_request();
  394    394   
        let expected_headers = [("Content-Type", "application/x-amz-json-1.0")];
  395    395   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  396    396   
        let body = http_request.body().bytes().expect("body should be strict");
  397    397   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  398    398   
            body,
  399    399   
            "{\n    \"topLevelDefault\": \"hi\",\n    \"otherTopLevelDefault\": 0\n}",
  400    400   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  401    401   
        ));
  402    402   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  403    403   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  404    404   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  405    405   
    }
  406    406   
  407    407   
    /// Typically, non top-level members would have defaults filled in, but if they have the clientOptional trait, the defaults should be ignored.
  408    408   
    /// Test ID: AwsJson10ClientIgnoresNonTopLevelDefaultsOnMembersWithClientOptional
  409    409   
    #[::tokio::test]
  410    410   
    #[::tracing_test::traced_test]
  411    411   
    async fn aws_json10_client_ignores_non_top_level_defaults_on_members_with_client_optional_request() {
  412         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         412  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  413    413   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  414    414   
  415    415   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  416    416   
        let result = client
  417    417   
            .operation_with_defaults()
  418    418   
            .set_client_optional_defaults(::std::option::Option::Some(crate::types::ClientOptionalDefaults::builder().build()))
  419    419   
            .send()
  420    420   
            .await;
  421    421   
        let _ = dbg!(result);
  422    422   
        let http_request = request_receiver.expect_request();

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

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

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

@@ -211,211 +299,299 @@
  231    231   
  232    232   
#[allow(unreachable_code, unused_variables)]
  233    233   
#[cfg(test)]
  234    234   
mod put_with_content_encoding_test {
  235    235   
  236    236   
    /// Compression algorithm encoding is appended to the Content-Encoding header.
  237    237   
    /// Test ID: SDKAppliedContentEncoding_awsJson1_0
  238    238   
    #[::tokio::test]
  239    239   
    #[::tracing_test::traced_test]
  240    240   
    async fn sdk_applied_content_encoding_aws_json1_0_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.put_with_content_encoding()
  246    246   
        .set_data(
  247    247   
            ::std::option::Option::Some(
  248    248   
                "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTR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6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n".to_owned()
  249    249   
            )
  250    250   
        )
  251    251   
        .send().await;
  252    252   
        let _ = dbg!(result);
  253    253   
        let http_request = request_receiver.expect_request();
  254    254   
        let expected_headers = [("Content-Encoding", "gzip")];
  255    255   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  256    256   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  257    257   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  258    258   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  259    259   
    }
  260    260   
  261    261   
    /// Compression algorithm encoding is appended to the Content-Encoding header, and the
  262    262   
    /// user-provided content-encoding is NOT in the Content-Encoding header since HTTP binding
  263    263   
    /// traits are ignored in the awsJson1_0 protocol.
  264    264   
    ///
  265    265   
    /// Test ID: SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0
  266    266   
    #[::tokio::test]
  267    267   
    #[::tracing_test::traced_test]
  268    268   
    async fn sdk_appends_gzip_and_ignores_http_provided_encoding_aws_json1_0_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.put_with_content_encoding()
  274    274   
        .set_encoding(
  275    275   
            ::std::option::Option::Some(
  276    276   
                "custom".to_owned()
  277    277   
            )
  278    278   
        )
  279    279   
        .set_data(

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

@@ -210,210 +344,344 @@
  230    230   
#[allow(unreachable_code, unused_variables)]
  231    231   
#[cfg(test)]
  232    232   
mod simple_scalar_properties_test {
  233    233   
    use ::aws_smithy_protocol_test::FloatEquals;
  234    234   
  235    235   
    /// Supports handling NaN float values.
  236    236   
    /// Test ID: AwsJson10SupportsNaNFloatInputs
  237    237   
    #[::tokio::test]
  238    238   
    #[::tracing_test::traced_test]
  239    239   
    async fn aws_json10_supports_na_n_float_inputs_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   
            .simple_scalar_properties()
  246    246   
            .set_float_value(::std::option::Option::Some(
  247    247   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("NaN").expect("invalid string for number"),
  248    248   
            ))
  249    249   
            .set_double_value(::std::option::Option::Some(
  250    250   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("NaN").expect("invalid string for number"),
  251    251   
            ))
  252    252   
            .send()
  253    253   
            .await;
  254    254   
        let _ = dbg!(result);
  255    255   
        let http_request = request_receiver.expect_request();
  256    256   
        let expected_headers = [
  257    257   
            ("Content-Type", "application/x-amz-json-1.0"),
  258    258   
            ("X-Amz-Target", "JsonRpc10.SimpleScalarProperties"),
  259    259   
        ];
  260    260   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  261    261   
        let body = http_request.body().bytes().expect("body should be strict");
  262    262   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  263    263   
            body,
  264    264   
            "{\n    \"floatValue\": \"NaN\",\n    \"doubleValue\": \"NaN\"\n}",
  265    265   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  266    266   
        ));
  267    267   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  268    268   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  269    269   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  270    270   
    }
  271    271   
  272    272   
    /// Supports handling Infinity float values.
  273    273   
    /// Test ID: AwsJson10SupportsInfinityFloatInputs
  274    274   
    #[::tokio::test]
  275    275   
    #[::tracing_test::traced_test]
  276    276   
    async fn aws_json10_supports_infinity_float_inputs_request() {
  277         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         277  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  278    278   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  279    279   
  280    280   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  281    281   
        let result = client
  282    282   
            .simple_scalar_properties()
  283    283   
            .set_float_value(::std::option::Option::Some(
  284    284   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("Infinity").expect("invalid string for number"),
  285    285   
            ))
  286    286   
            .set_double_value(::std::option::Option::Some(
  287    287   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("Infinity").expect("invalid string for number"),
  288    288   
            ))
  289    289   
            .send()
  290    290   
            .await;
  291    291   
        let _ = dbg!(result);
  292    292   
        let http_request = request_receiver.expect_request();
  293    293   
        let expected_headers = [
  294    294   
            ("Content-Type", "application/x-amz-json-1.0"),
  295    295   
            ("X-Amz-Target", "JsonRpc10.SimpleScalarProperties"),
  296    296   
        ];
  297    297   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  298    298   
        let body = http_request.body().bytes().expect("body should be strict");
  299    299   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_body(
  300    300   
            body,
  301    301   
            "{\n    \"floatValue\": \"Infinity\",\n    \"doubleValue\": \"Infinity\"\n}",
  302    302   
            ::aws_smithy_protocol_test::MediaType::from("application/json"),
  303    303   
        ));
  304    304   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  305    305   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  306    306   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  307    307   
    }
  308    308   
  309    309   
    /// Supports handling -Infinity float values.
  310    310   
    /// Test ID: AwsJson10SupportsNegativeInfinityFloatInputs
  311    311   
    #[::tokio::test]
  312    312   
    #[::tracing_test::traced_test]
  313    313   
    async fn aws_json10_supports_negative_infinity_float_inputs_request() {
  314         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         314  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  315    315   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  316    316   
  317    317   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  318    318   
        let result = client
  319    319   
            .simple_scalar_properties()
  320    320   
            .set_float_value(::std::option::Option::Some(
  321    321   
                <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("-Infinity").expect("invalid string for number"),
  322    322   
            ))
  323    323   
            .set_double_value(::std::option::Option::Some(
  324    324   
                <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("-Infinity").expect("invalid string for number"),

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/Cargo.toml

@@ -9,9 +62,63 @@
   29     29   
[dependencies.bytes]
   30     30   
version = "1.4.0"
   31     31   
[dependencies.flate2]
   32     32   
version = "1.0.30"
   33     33   
[dependencies.http]
   34     34   
version = "0.2.9"
   35     35   
[dependencies.http-body]
   36     36   
version = "0.4.4"
   37     37   
[dependencies.tracing]
   38     38   
version = "0.1"
          39  +
[dev-dependencies.aws-smithy-http-client]
          40  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-http-client"
          41  +
features = ["test-util"]
   39     42   
[dev-dependencies.aws-smithy-protocol-test]
   40     43   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-protocol-test"
   41         -
[dev-dependencies.aws-smithy-runtime]
   42         -
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-runtime"
   43         -
features = ["client", "test-util"]
   44     44   
[dev-dependencies.aws-smithy-types]
   45     45   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-types"
   46     46   
[dev-dependencies.pretty_assertions]
   47     47   
version = "1.3.0"
   48     48   
[dev-dependencies.tokio]
   49     49   
version = "1.23.1"
   50     50   
features = ["macros", "test-util", "rt-multi-thread"]
   51     51   
[dev-dependencies.tracing-test]
   52     52   
version = "0.2.5"
   53     53   
features = ["no-env-filter"]
   54     54   
[features]
   55     55   
test-util = ["aws-smithy-runtime/test-util"]
   56     56   
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-types/rt-tokio"]
   57     57   
behavior-version-latest = []
   58     58   
rustls = ["aws-smithy-runtime/tls-rustls"]
          59  +
default-https-client = ["aws-smithy-runtime/default-https-client"]
   59     60   
gated-tests = []
   60         -
default = ["rt-tokio", "rustls"]
          61  +
default = ["rt-tokio", "rustls", "default-https-client"]
   61     62   
   62     63   

tmp-codegen-diff/codegen-client-test/json_rpc11/rust-client-codegen/src/operation/empty_operation.rs

@@ -203,203 +312,312 @@
  223    223   
  224    224   
#[allow(unreachable_code, unused_variables)]
  225    225   
#[cfg(test)]
  226    226   
mod empty_operation_test {
  227    227   
  228    228   
    /// Sends requests to /
  229    229   
    /// Test ID: sends_requests_to_slash
  230    230   
    #[::tokio::test]
  231    231   
    #[::tracing_test::traced_test]
  232    232   
    async fn sends_requests_to_slash_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.empty_operation().send().await;
  238    238   
        let _ = dbg!(result);
  239    239   
        let http_request = request_receiver.expect_request();
  240    240   
        let expected_headers = [
  241    241   
            ("Content-Type", "application/x-amz-json-1.1"),
  242    242   
            ("X-Amz-Target", "JsonProtocol.EmptyOperation"),
  243    243   
        ];
  244    244   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  245    245   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  246    246   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  247    247   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  248    248   
    }
  249    249   
  250    250   
    /// Includes X-Amz-Target header and Content-Type
  251    251   
    /// Test ID: includes_x_amz_target_and_content_type
  252    252   
    #[::tokio::test]
  253    253   
    #[::tracing_test::traced_test]
  254    254   
    async fn includes_x_amz_target_and_content_type_request() {
  255         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         255  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  256    256   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  257    257   
  258    258   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  259    259   
        let result = client.empty_operation().send().await;
  260    260   
        let _ = dbg!(result);
  261    261   
        let http_request = request_receiver.expect_request();
  262    262   
        let expected_headers = [
  263    263   
            ("Content-Type", "application/x-amz-json-1.1"),
  264    264   
            ("X-Amz-Target", "JsonProtocol.EmptyOperation"),
  265    265   
        ];
  266    266   
        ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_headers(http_request.headers(), expected_headers));
  267    267   
        let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
  268    268   
        ::pretty_assertions::assert_eq!(http_request.method(), "POST", "method was incorrect");
  269    269   
        ::pretty_assertions::assert_eq!(uri.path(), "/", "path was incorrect");
  270    270   
    }
  271    271   
  272    272   
    /// Clients must always send an empty JSON object payload for
  273    273   
    /// operations with no input (that is, `{}`). While AWS service
  274    274   
    /// implementations support requests with no payload or requests
  275    275   
    /// that send `{}`, always sending `{}` from the client is
  276    276   
    /// preferred for forward compatibility in case input is ever
  277    277   
    /// added to an operation.
  278    278   
    /// Test ID: json_1_1_client_sends_empty_payload_for_no_input_shape
  279    279   
    #[::tokio::test]
  280    280   
    #[::tracing_test::traced_test]
  281    281   
    async fn json_1_1_client_sends_empty_payload_for_no_input_shape_request() {
  282         -
        let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
         282  +
        let (http_client, request_receiver) = ::aws_smithy_http_client::test_util::capture_request(None);
  283    283   
        let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
  284    284   
  285    285   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  286    286   
        let result = client.empty_operation().send().await;
  287    287   
        let _ = dbg!(result);
  288    288   
        let http_request = request_receiver.expect_request();
  289    289   
        let expected_headers = [
  290    290   
            ("Content-Type", "application/x-amz-json-1.1"),
  291    291   
            ("X-Amz-Target", "JsonProtocol.EmptyOperation"),
  292    292   
        ];

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

@@ -210,210 +270,270 @@
  230    230   
#[allow(unreachable_code, unused_variables)]
  231    231   
#[cfg(test)]
  232    232   
mod endpoint_operation_test {
  233    233   
  234    234   
    /// Operations can prepend to the given host if they define the
  235    235   
    /// endpoint trait.
  236    236   
    /// Test ID: AwsJson11EndpointTrait
  237    237   
    #[::tokio::test]
  238    238   
    #[::tracing_test::traced_test]
  239    239   
    async fn aws_json11_endpoint_trait_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.endpoint_operation().send().await;
  245    245   
        let _ = dbg!(result);
  246    246   
        let http_request = request_receiver.expect_request();
  247    247   
        let expected_headers = [
  248    248   
            ("Content-Type", "application/x-amz-json-1.1"),
  249    249   
            ("X-Amz-Target", "JsonProtocol.EndpointOperation"),
  250    250   
        ];

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

@@ -234,234 +294,294 @@
  254    254   
#[cfg(test)]
  255    255   
mod endpoint_with_host_label_operation_test {
  256    256   
  257    257   
    /// Operations can prepend to the given host if they define the
  258    258   
    /// endpoint trait, and can use the host label trait to define
  259    259   
    /// further customization based on user input.
  260    260   
    /// Test ID: AwsJson11EndpointTraitWithHostLabel
  261    261   
    #[::tokio::test]
  262    262   
    #[::tracing_test::traced_test]
  263    263   
    async fn aws_json11_endpoint_trait_with_host_label_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   
            .endpoint_with_host_label_operation()
  270    270   
            .set_label(::std::option::Option::Some("bar".to_owned()))
  271    271   
            .send()
  272    272   
            .await;
  273    273   
        let _ = dbg!(result);
  274    274   
        let http_request = request_receiver.expect_request();

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

@@ -212,212 +272,272 @@
  232    232   
  233    233   
#[allow(unreachable_code, unused_variables)]
  234    234   
#[cfg(test)]
  235    235   
mod host_with_path_operation_test {
  236    236   
  237    237   
    /// Custom endpoints supplied by users can have paths
  238    238   
    /// Test ID: AwsJson11HostWithPath
  239    239   
    #[::tokio::test]
  240    240   
    #[::tracing_test::traced_test]
  241    241   
    async fn aws_json11_host_with_path_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()
  244    244   
            .with_test_defaults()
  245    245   
            .endpoint_url("https://example.com/custom");
  246    246   
  247    247   
        let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
  248    248   
        let result = client.host_with_path_operation().send().await;
  249    249   
        let _ = dbg!(result);
  250    250   
        let http_request = request_receiver.expect_request();
  251    251   
        let expected_headers = [
  252    252   
            ("Content-Type", "application/x-amz-json-1.1"),