Server Test

Server Test

rev. 2613e17baabf9f07b5b1870ece26ed14bd4a641b (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_long.rs

@@ -91,91 +151,151 @@
  111    111   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  112    112   
            builder,
  113    113   
            ::http::header::CONTENT_TYPE,
  114    114   
            "application/json",
  115    115   
        );
  116    116   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  117    117   
        let http_status: u16 = 200;
  118    118   
        builder = builder.status(http_status);
  119    119   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  120    120   
        let payload =
  121         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         121  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  122    122   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  123    123   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  124    124   
        let content_length = payload.len();
  125    125   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  126    126   
            builder,
  127    127   
            ::http::header::CONTENT_LENGTH,
  128    128   
            content_length,
  129    129   
        );
  130    130   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  131    131   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_map.rs

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http::header::CONTENT_TYPE,
   70     70   
            "application/json",
   71     71   
        );
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   73     73   
        let http_status: u16 = 200;
   74     74   
        builder = builder.status(http_status);
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   76     76   
        let payload =
   77         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   80     80   
        let content_length = payload.len();
   81     81   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_request_body.rs

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http::header::CONTENT_TYPE,
   70     70   
            "application/json",
   71     71   
        );
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   73     73   
        let http_status: u16 = 200;
   74     74   
        builder = builder.status(http_status);
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   76     76   
        let payload =
   77         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   80     80   
        let content_length = payload.len();
   81     81   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_short.rs

@@ -93,93 +153,153 @@
  113    113   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  114    114   
            builder,
  115    115   
            ::http::header::CONTENT_TYPE,
  116    116   
            "application/json",
  117    117   
        );
  118    118   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  119    119   
        let http_status: u16 = 200;
  120    120   
        builder = builder.status(http_status);
  121    121   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  122    122   
        let payload =
  123         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         123  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  124    124   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  125    125   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  126    126   
        let content_length = payload.len();
  127    127   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  128    128   
            builder,
  129    129   
            ::http::header::CONTENT_LENGTH,
  130    130   
            content_length,
  131    131   
        );
  132    132   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  133    133   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_string.rs

@@ -38,38 +84,84 @@
   58     58   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   59     59   
            builder,
   60     60   
            ::http::header::CONTENT_TYPE,
   61     61   
            "application/json",
   62     62   
        );
   63     63   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   64     64   
        let http_status: u16 = 200;
   65     65   
        builder = builder.status(http_status);
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   67     67   
        let payload =
   68         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          68  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   70     70   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   71     71   
        let content_length = payload.len();
   72     72   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   73     73   
            builder,
   74     74   
            ::http::header::CONTENT_LENGTH,
   75     75   
            content_length,
   76     76   
        );
   77     77   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   78     78   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_body_date_time.rs

@@ -44,44 +104,104 @@
   64     64   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   65     65   
            builder,
   66     66   
            ::http::header::CONTENT_TYPE,
   67     67   
            "application/json",
   68     68   
        );
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   70     70   
        let http_status: u16 = 200;
   71     71   
        builder = builder.status(http_status);
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   73     73   
        let payload =
   74         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   77     77   
        let content_length = payload.len();
   78     78   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   79     79   
            builder,
   80     80   
            ::http::header::CONTENT_LENGTH,
   81     81   
            content_length,
   82     82   
        );
   83     83   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   84     84   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_body_default.rs

@@ -44,44 +104,104 @@
   64     64   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   65     65   
            builder,
   66     66   
            ::http::header::CONTENT_TYPE,
   67     67   
            "application/json",
   68     68   
        );
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   70     70   
        let http_status: u16 = 200;
   71     71   
        builder = builder.status(http_status);
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   73     73   
        let payload =
   74         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   77     77   
        let content_length = payload.len();
   78     78   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   79     79   
            builder,
   80     80   
            ::http::header::CONTENT_LENGTH,
   81     81   
            content_length,
   82     82   
        );
   83     83   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   84     84   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_body_http_date.rs

@@ -44,44 +104,104 @@
   64     64   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   65     65   
            builder,
   66     66   
            ::http::header::CONTENT_TYPE,
   67     67   
            "application/json",
   68     68   
        );
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   70     70   
        let http_status: u16 = 200;
   71     71   
        builder = builder.status(http_status);
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   73     73   
        let payload =
   74         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   77     77   
        let content_length = payload.len();
   78     78   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   79     79   
            builder,
   80     80   
            ::http::header::CONTENT_LENGTH,
   81     81   
            content_length,
   82     82   
        );
   83     83   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   84     84   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_header_date_time.rs

@@ -37,37 +97,97 @@
   57     57   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   58     58   
            builder,
   59     59   
            ::http::header::CONTENT_TYPE,
   60     60   
            "application/json",
   61     61   
        );
   62     62   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   63     63   
        let http_status: u16 = 200;
   64     64   
        builder = builder.status(http_status);
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   66     66   
        let payload =
   67         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          67  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   70     70   
        let content_length = payload.len();
   71     71   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   72     72   
            builder,
   73     73   
            ::http::header::CONTENT_LENGTH,
   74     74   
            content_length,
   75     75   
        );
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   77     77   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_header_default.rs

@@ -36,36 +96,96 @@
   56     56   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   57     57   
            builder,
   58     58   
            ::http::header::CONTENT_TYPE,
   59     59   
            "application/json",
   60     60   
        );
   61     61   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   62     62   
        let http_status: u16 = 200;
   63     63   
        builder = builder.status(http_status);
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   65     65   
        let payload =
   66         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   69     69   
        let content_length = payload.len();
   70     70   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http::header::CONTENT_LENGTH,
   73     73   
            content_length,
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   76     76   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_header_epoch.rs

@@ -36,36 +96,96 @@
   56     56   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   57     57   
            builder,
   58     58   
            ::http::header::CONTENT_TYPE,
   59     59   
            "application/json",
   60     60   
        );
   61     61   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   62     62   
        let http_status: u16 = 200;
   63     63   
        builder = builder.status(http_status);
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   65     65   
        let payload =
   66         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   69     69   
        let content_length = payload.len();
   70     70   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http::header::CONTENT_LENGTH,
   73     73   
            content_length,
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   76     76   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_path_default.rs

@@ -56,56 +116,116 @@
   76     76   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   77     77   
            builder,
   78     78   
            ::http::header::CONTENT_TYPE,
   79     79   
            "application/json",
   80     80   
        );
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   82     82   
        let http_status: u16 = 200;
   83     83   
        builder = builder.status(http_status);
   84     84   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   85     85   
        let payload =
   86         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          86  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   88     88   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   89     89   
        let content_length = payload.len();
   90     90   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   91     91   
            builder,
   92     92   
            ::http::header::CONTENT_LENGTH,
   93     93   
            content_length,
   94     94   
        );
   95     95   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   96     96   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_path_epoch.rs

@@ -56,56 +116,116 @@
   76     76   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   77     77   
            builder,
   78     78   
            ::http::header::CONTENT_TYPE,
   79     79   
            "application/json",
   80     80   
        );
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   82     82   
        let http_status: u16 = 200;
   83     83   
        builder = builder.status(http_status);
   84     84   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   85     85   
        let payload =
   86         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          86  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   88     88   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   89     89   
        let content_length = payload.len();
   90     90   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   91     91   
            builder,
   92     92   
            ::http::header::CONTENT_LENGTH,
   93     93   
            content_length,
   94     94   
        );
   95     95   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   96     96   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_path_http_date.rs

@@ -58,58 +118,118 @@
   78     78   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   79     79   
            builder,
   80     80   
            ::http::header::CONTENT_TYPE,
   81     81   
            "application/json",
   82     82   
        );
   83     83   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   84     84   
        let http_status: u16 = 200;
   85     85   
        builder = builder.status(http_status);
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   87     87   
        let payload =
   88         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          88  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   90     90   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   91     91   
        let content_length = payload.len();
   92     92   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   93     93   
            builder,
   94     94   
            ::http::header::CONTENT_LENGTH,
   95     95   
            content_length,
   96     96   
        );
   97     97   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   98     98   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_query_default.rs

@@ -48,48 +108,108 @@
   68     68   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http::header::CONTENT_TYPE,
   71     71   
            "application/json",
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   74     74   
        let http_status: u16 = 200;
   75     75   
        builder = builder.status(http_status);
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   77     77   
        let payload =
   78         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          78  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   81     81   
        let content_length = payload.len();
   82     82   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   83     83   
            builder,
   84     84   
            ::http::header::CONTENT_LENGTH,
   85     85   
            content_length,
   86     86   
        );
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   88     88   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_timestamp_query_epoch.rs

@@ -48,48 +108,108 @@
   68     68   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http::header::CONTENT_TYPE,
   71     71   
            "application/json",
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   74     74   
        let http_status: u16 = 200;
   75     75   
        builder = builder.status(http_status);
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   77     77   
        let payload =
   78         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          78  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   81     81   
        let content_length = payload.len();
   82     82   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   83     83   
            builder,
   84     84   
            ::http::header::CONTENT_LENGTH,
   85     85   
            content_length,
   86     86   
        );
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   88     88   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);