Server Test

Server Test

rev. 68328d957380de11b79ab4063ea76205e4a95390 (ignoring whitespace)

Files changed:

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

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

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

@@ -38,38 +84,84 @@
   58     58   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   59     59   
            builder,
   60     60   
            ::http_1x::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_http::header::set_response_header_if_absent(
   73     73   
            builder,
   74     74   
            ::http_1x::header::CONTENT_LENGTH,
   75     75   
            content_length,
   76     76   
        );
   77     77   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   78     78   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -98,98 +158,158 @@
  118    118   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  119    119   
            builder,
  120    120   
            ::http_1x::header::CONTENT_TYPE,
  121    121   
            "application/json",
  122    122   
        );
  123    123   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  124    124   
        let http_status: u16 = 200;
  125    125   
        builder = builder.status(http_status);
  126    126   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  127    127   
        let payload =
  128         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         128  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  129    129   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  130    130   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  131    131   
        let content_length = payload.len();
  132    132   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  133    133   
            builder,
  134    134   
            ::http_1x::header::CONTENT_LENGTH,
  135    135   
            content_length,
  136    136   
        );
  137    137   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  138    138   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -96,96 +156,156 @@
  116    116   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  117    117   
            builder,
  118    118   
            ::http_1x::header::CONTENT_TYPE,
  119    119   
            "application/json",
  120    120   
        );
  121    121   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  122    122   
        let http_status: u16 = 200;
  123    123   
        builder = builder.status(http_status);
  124    124   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  125    125   
        let payload =
  126         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         126  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  127    127   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  128    128   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  129    129   
        let content_length = payload.len();
  130    130   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  131    131   
            builder,
  132    132   
            ::http_1x::header::CONTENT_LENGTH,
  133    133   
            content_length,
  134    134   
        );
  135    135   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  136    136   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -98,98 +158,158 @@
  118    118   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  119    119   
            builder,
  120    120   
            ::http_1x::header::CONTENT_TYPE,
  121    121   
            "application/json",
  122    122   
        );
  123    123   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  124    124   
        let http_status: u16 = 200;
  125    125   
        builder = builder.status(http_status);
  126    126   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  127    127   
        let payload =
  128         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         128  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  129    129   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  130    130   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  131    131   
        let content_length = payload.len();
  132    132   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  133    133   
            builder,
  134    134   
            ::http_1x::header::CONTENT_LENGTH,
  135    135   
            content_length,
  136    136   
        );
  137    137   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  138    138   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

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

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

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

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

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

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

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

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

@@ -96,96 +156,156 @@
  116    116   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  117    117   
            builder,
  118    118   
            ::http_1x::header::CONTENT_TYPE,
  119    119   
            "application/json",
  120    120   
        );
  121    121   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  122    122   
        let http_status: u16 = 200;
  123    123   
        builder = builder.status(http_status);
  124    124   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  125    125   
        let payload =
  126         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         126  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  127    127   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  128    128   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  129    129   
        let content_length = payload.len();
  130    130   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  131    131   
            builder,
  132    132   
            ::http_1x::header::CONTENT_LENGTH,
  133    133   
            content_length,
  134    134   
        );
  135    135   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  136    136   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -38,38 +84,84 @@
   58     58   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   59     59   
            builder,
   60     60   
            ::http_1x::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_http::header::set_response_header_if_absent(
   73     73   
            builder,
   74     74   
            ::http_1x::header::CONTENT_LENGTH,
   75     75   
            content_length,
   76     76   
        );
   77     77   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   78     78   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http_1x::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_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http_1x::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http_1x::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_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http_1x::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http_1x::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_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http_1x::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -37,37 +97,97 @@
   57     57   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   58     58   
            builder,
   59     59   
            ::http_1x::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_http::header::set_response_header_if_absent(
   72     72   
            builder,
   73     73   
            ::http_1x::header::CONTENT_LENGTH,
   74     74   
            content_length,
   75     75   
        );
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   77     77   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -36,36 +96,96 @@
   56     56   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   57     57   
            builder,
   58     58   
            ::http_1x::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_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http_1x::header::CONTENT_LENGTH,
   73     73   
            content_length,
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   76     76   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);