From: Arran Cudbard-Bell Date: Thu, 8 Dec 2022 19:16:08 +0000 (-0600) Subject: Formatting X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d18cd6caf55d5c210211fd14b6bf817d972f4614;p=thirdparty%2Ffreeradius-server.git Formatting --- diff --git a/src/modules/rlm_rest/rest.c b/src/modules/rlm_rest/rest.c index e9f32a60e9f..9b922280cb6 100644 --- a/src/modules/rlm_rest/rest.c +++ b/src/modules/rlm_rest/rest.c @@ -49,19 +49,19 @@ const http_body_type_t http_body_type_supported[REST_HTTP_BODY_NUM_ENTRIES] = { REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_UNSUPPORTED REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_UNAVAILABLE REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_INVALID - REST_HTTP_BODY_NONE, // REST_HTTP_BODY_NONE + REST_HTTP_BODY_NONE, // REST_HTTP_BODY_NONE REST_HTTP_BODY_CUSTOM_XLAT, // REST_HTTP_BODY_CUSTOM_XLAT REST_HTTP_BODY_CUSTOM_LITERAL, // REST_HTTP_BODY_CUSTOM_LITERAL - REST_HTTP_BODY_POST, // REST_HTTP_BODY_POST + REST_HTTP_BODY_POST, // REST_HTTP_BODY_POST #ifdef HAVE_JSON - REST_HTTP_BODY_JSON, // REST_HTTP_BODY_JSON + REST_HTTP_BODY_JSON, // REST_HTTP_BODY_JSON #else REST_HTTP_BODY_UNAVAILABLE, #endif REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_XML - REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_YAML + REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_YAML REST_HTTP_BODY_INVALID, // REST_HTTP_BODY_HTML - REST_HTTP_BODY_PLAIN // REST_HTTP_BODY_PLAIN + REST_HTTP_BODY_PLAIN // REST_HTTP_BODY_PLAIN }; /* @@ -184,14 +184,14 @@ size_t http_auth_table_len = NUM_ELEMENTS(http_auth_table); * @see fr_table_str_by_value */ fr_table_num_sorted_t const http_content_type_table[] = { - { L("application/json"), REST_HTTP_BODY_JSON }, + { L("application/json"), REST_HTTP_BODY_JSON }, { L("application/x-www-form-urlencoded"), REST_HTTP_BODY_POST }, { L("application/x-yaml"), REST_HTTP_BODY_YAML }, - { L("application/yaml"), REST_HTTP_BODY_YAML }, + { L("application/yaml"), REST_HTTP_BODY_YAML }, { L("text/html"), REST_HTTP_BODY_HTML }, { L("text/plain"), REST_HTTP_BODY_PLAIN }, { L("text/x-yaml"), REST_HTTP_BODY_YAML }, - { L("text/xml"), REST_HTTP_BODY_XML }, + { L("text/xml"), REST_HTTP_BODY_XML }, { L("text/yaml"), REST_HTTP_BODY_YAML } }; size_t http_content_type_table_len = NUM_ELEMENTS(http_content_type_table); diff --git a/src/tests/keywords/unspecified b/src/tests/keywords/unspecified new file mode 100644 index 00000000000..0f6de110c7f --- /dev/null +++ b/src/tests/keywords/unspecified @@ -0,0 +1,16 @@ +# +# PRE: if +# + +&reply.Reply-Message = 'foo' +&reply.User-Name = 'bar' + +if (&reply.[0] != 'foo') { + test_fail +} + +if (&reply.[1] != 'bar') { + test_fail +} + +success \ No newline at end of file