472 473 | let body = http_request.body().bytes().expect("body should be strict");
|
473 474 | // No body
|
474 475 | ::pretty_assertions::assert_eq!(::std::str::from_utf8(body).unwrap(), "");
|
475 476 | let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
|
476 477 | ::pretty_assertions::assert_eq!(http_request.method(), "GET", "method was incorrect");
|
477 478 | ::pretty_assertions::assert_eq!(uri.path(), "/AllQueryStringTypesInput", "path was incorrect");
|
478 479 | }
|
479 480 | /// Handles query string maps
|
480 481 | /// Test ID: RestXmlQueryStringMap
|
481 482 | #[::tokio::test]
|
482 - | #[allow(unused_mut)]
|
483 + | #[::tracing_test::traced_test]
|
483 484 | async fn rest_xml_query_string_map_request() {
|
484 485 | let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
|
485 486 | let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
|
486 487 |
|
487 488 | let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
|
488 489 | let result = client
|
489 490 | .all_query_string_types()
|
490 491 | .set_query_params_map_of_strings(::std::option::Option::Some({
|
491 492 | let mut ret = ::std::collections::HashMap::new();
|
492 493 | ret.insert("QueryParamsStringKeyA".to_owned(), "Foo".to_owned());
|
493 494 | ret.insert("QueryParamsStringKeyB".to_owned(), "Bar".to_owned());
|
494 495 | ret
|
495 496 | }))
|
496 497 | .send()
|
497 498 | .await;
|
498 499 | let _ = dbg!(result);
|
499 500 | let http_request = request_receiver.expect_request();
|
500 501 | let expected_query_params = &["QueryParamsStringKeyA=Foo", "QueryParamsStringKeyB=Bar"];
|
501 502 | ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_query_string(&http_request, expected_query_params));
|
502 503 | let body = http_request.body().bytes().expect("body should be strict");
|
503 504 | // No body
|
504 505 | ::pretty_assertions::assert_eq!(::std::str::from_utf8(body).unwrap(), "");
|
505 506 | let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
|
506 507 | ::pretty_assertions::assert_eq!(http_request.method(), "GET", "method was incorrect");
|
507 508 | ::pretty_assertions::assert_eq!(uri.path(), "/AllQueryStringTypesInput", "path was incorrect");
|
508 509 | }
|
509 510 | /// Handles escaping all required characters in the query string.
|
510 511 | /// Test ID: RestXmlQueryStringEscaping
|
511 512 | #[::tokio::test]
|
512 - | #[allow(unused_mut)]
|
513 + | #[::tracing_test::traced_test]
|
513 514 | async fn rest_xml_query_string_escaping_request() {
|
514 515 | let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
|
515 516 | let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
|
516 517 |
|
517 518 | let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
|
518 519 | let result = client
|
519 520 | .all_query_string_types()
|
520 521 | .set_query_string(::std::option::Option::Some(" %:/?#[]@!$&'()*+,;=😹".to_owned()))
|
521 522 | .send()
|
522 523 | .await;
|
523 524 | let _ = dbg!(result);
|
524 525 | let http_request = request_receiver.expect_request();
|
525 526 | let expected_query_params = &["String=%20%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%F0%9F%98%B9"];
|
526 527 | ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_query_string(&http_request, expected_query_params));
|
527 528 | let body = http_request.body().bytes().expect("body should be strict");
|
528 529 | // No body
|
529 530 | ::pretty_assertions::assert_eq!(::std::str::from_utf8(body).unwrap(), "");
|
530 531 | let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
|
531 532 | ::pretty_assertions::assert_eq!(http_request.method(), "GET", "method was incorrect");
|
532 533 | ::pretty_assertions::assert_eq!(uri.path(), "/AllQueryStringTypesInput", "path was incorrect");
|
533 534 | }
|
534 535 | /// Supports handling NaN float query values.
|
535 536 | /// Test ID: RestXmlSupportsNaNFloatQueryValues
|
536 537 | #[::tokio::test]
|
537 - | #[allow(unused_mut)]
|
538 + | #[::tracing_test::traced_test]
|
538 539 | async fn rest_xml_supports_na_n_float_query_values_request() {
|
539 540 | let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
|
540 541 | let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
|
541 542 |
|
542 543 | let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
|
543 544 | let result = client
|
544 545 | .all_query_string_types()
|
545 546 | .set_query_float(::std::option::Option::Some(
|
546 547 | <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("NaN").expect("invalid string for number"),
|
547 548 | ))
|
548 549 | .set_query_double(::std::option::Option::Some(
|
549 550 | <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("NaN").expect("invalid string for number"),
|
550 551 | ))
|
551 552 | .send()
|
552 553 | .await;
|
553 554 | let _ = dbg!(result);
|
554 555 | let http_request = request_receiver.expect_request();
|
555 556 | let expected_query_params = &["Float=NaN", "Double=NaN"];
|
556 557 | ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_query_string(&http_request, expected_query_params));
|
557 558 | let body = http_request.body().bytes().expect("body should be strict");
|
558 559 | // No body
|
559 560 | ::pretty_assertions::assert_eq!(::std::str::from_utf8(body).unwrap(), "");
|
560 561 | let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
|
561 562 | ::pretty_assertions::assert_eq!(http_request.method(), "GET", "method was incorrect");
|
562 563 | ::pretty_assertions::assert_eq!(uri.path(), "/AllQueryStringTypesInput", "path was incorrect");
|
563 564 | }
|
564 565 | /// Supports handling Infinity float query values.
|
565 566 | /// Test ID: RestXmlSupportsInfinityFloatQueryValues
|
566 567 | #[::tokio::test]
|
567 - | #[allow(unused_mut)]
|
568 + | #[::tracing_test::traced_test]
|
568 569 | async fn rest_xml_supports_infinity_float_query_values_request() {
|
569 570 | let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
|
570 571 | let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
|
571 572 |
|
572 573 | let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
|
573 574 | let result = client
|
574 575 | .all_query_string_types()
|
575 576 | .set_query_float(::std::option::Option::Some(
|
576 577 | <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("Infinity").expect("invalid string for number"),
|
577 578 | ))
|
578 579 | .set_query_double(::std::option::Option::Some(
|
579 580 | <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("Infinity").expect("invalid string for number"),
|
580 581 | ))
|
581 582 | .send()
|
582 583 | .await;
|
583 584 | let _ = dbg!(result);
|
584 585 | let http_request = request_receiver.expect_request();
|
585 586 | let expected_query_params = &["Float=Infinity", "Double=Infinity"];
|
586 587 | ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_query_string(&http_request, expected_query_params));
|
587 588 | let body = http_request.body().bytes().expect("body should be strict");
|
588 589 | // No body
|
589 590 | ::pretty_assertions::assert_eq!(::std::str::from_utf8(body).unwrap(), "");
|
590 591 | let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
|
591 592 | ::pretty_assertions::assert_eq!(http_request.method(), "GET", "method was incorrect");
|
592 593 | ::pretty_assertions::assert_eq!(uri.path(), "/AllQueryStringTypesInput", "path was incorrect");
|
593 594 | }
|
594 595 | /// Supports handling -Infinity float query values.
|
595 596 | /// Test ID: RestXmlSupportsNegativeInfinityFloatQueryValues
|
596 597 | #[::tokio::test]
|
597 - | #[allow(unused_mut)]
|
598 + | #[::tracing_test::traced_test]
|
598 599 | async fn rest_xml_supports_negative_infinity_float_query_values_request() {
|
599 600 | let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
|
600 601 | let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
|
601 602 |
|
602 603 | let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
|
603 604 | let result = client
|
604 605 | .all_query_string_types()
|
605 606 | .set_query_float(::std::option::Option::Some(
|
606 607 | <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("-Infinity").expect("invalid string for number"),
|
607 608 | ))
|
608 609 | .set_query_double(::std::option::Option::Some(
|
609 610 | <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive("-Infinity").expect("invalid string for number"),
|
610 611 | ))
|
611 612 | .send()
|
612 613 | .await;
|
613 614 | let _ = dbg!(result);
|
614 615 | let http_request = request_receiver.expect_request();
|
615 616 | let expected_query_params = &["Float=-Infinity", "Double=-Infinity"];
|
616 617 | ::aws_smithy_protocol_test::assert_ok(::aws_smithy_protocol_test::validate_query_string(&http_request, expected_query_params));
|
617 618 | let body = http_request.body().bytes().expect("body should be strict");
|
618 619 | // No body
|
619 620 | ::pretty_assertions::assert_eq!(::std::str::from_utf8(body).unwrap(), "");
|
620 621 | let uri: ::http::Uri = http_request.uri().parse().expect("invalid URI sent");
|
621 622 | ::pretty_assertions::assert_eq!(http_request.method(), "GET", "method was incorrect");
|
622 623 | ::pretty_assertions::assert_eq!(uri.path(), "/AllQueryStringTypesInput", "path was incorrect");
|
623 624 | }
|
624 625 | /// Query values of 0 and false are serialized
|
625 626 | /// Test ID: RestXmlZeroAndFalseQueryValues
|
626 627 | #[::tokio::test]
|
627 - | #[allow(unused_mut)]
|
628 + | #[::tracing_test::traced_test]
|
628 629 | async fn rest_xml_zero_and_false_query_values_request() {
|
629 630 | let (http_client, request_receiver) = ::aws_smithy_runtime::client::http::test_util::capture_request(None);
|
630 631 | let config_builder = crate::config::Config::builder().with_test_defaults().endpoint_url("https://example.com");
|
631 632 |
|
632 633 | let client = crate::Client::from_conf(config_builder.http_client(http_client).build());
|
633 634 | let result = client
|
634 635 | .all_query_string_types()
|
635 636 | .set_query_integer(::std::option::Option::Some(0))
|
636 637 | .set_query_boolean(::std::option::Option::Some(false))
|
637 638 | .send()
|